ROL
Public Member Functions | Public Attributes | Friends | List of all members
ROL::details::VectorWorkspace< Real >::VectorStack Struct Reference

Public Member Functions

 VectorStack (const V &x)
 
const VectorKeygetKey () const
 
size_type size () const
 
size_type number_assigned () const
 
Ptr< Vclone (const V &x)
 
vector< size_typegetRefCounts (void) const
 

Public Attributes

vector< Ptr< V > > vectors_
 
VectorKey key_
 

Friends

class VectorWorkspace< Real >
 

Detailed Description

template<typename Real>
struct ROL::details::VectorWorkspace< Real >::VectorStack

Definition at line 141 of file ROL_VectorWorkspace.hpp.

Constructor & Destructor Documentation

◆ VectorStack()

template<typename Real>
ROL::details::VectorWorkspace< Real >::VectorStack::VectorStack ( const V x)
inline

Definition at line 147 of file ROL_VectorWorkspace.hpp.

Member Function Documentation

◆ getKey()

template<typename Real>
const VectorKey& ROL::details::VectorWorkspace< Real >::VectorStack::getKey ( ) const
inline

Definition at line 150 of file ROL_VectorWorkspace.hpp.

◆ size()

template<typename Real>
size_type ROL::details::VectorWorkspace< Real >::VectorStack::size ( ) const
inline

Definition at line 152 of file ROL_VectorWorkspace.hpp.

◆ number_assigned()

template<typename Real>
size_type ROL::details::VectorWorkspace< Real >::VectorStack::number_assigned ( ) const
inline

Definition at line 154 of file ROL_VectorWorkspace.hpp.

◆ clone()

template<typename Real>
Ptr<V> ROL::details::VectorWorkspace< Real >::VectorStack::clone ( const V x)
inline

If no next element exists, clone it, increment the index, and return a the clone by pointer

Definition at line 163 of file ROL_VectorWorkspace.hpp.

References ROL::Vector< Real >::clone(), ROL::details::VectorWorkspace< Real >::VectorKey::dimension, and ROL::details::VectorWorkspace< Real >::VectorKey::hash_code.

◆ getRefCounts()

template<typename Real>
vector<size_type> ROL::details::VectorWorkspace< Real >::VectorStack::getRefCounts ( void  ) const
inline

Definition at line 188 of file ROL_VectorWorkspace.hpp.

Friends And Related Function Documentation

◆ VectorWorkspace< Real >

template<typename Real>
friend class VectorWorkspace< Real >
friend

Definition at line 143 of file ROL_VectorWorkspace.hpp.

Member Data Documentation

◆ vectors_

template<typename Real>
vector<Ptr<V> > ROL::details::VectorWorkspace< Real >::VectorStack::vectors_

Definition at line 144 of file ROL_VectorWorkspace.hpp.

◆ key_

template<typename Real>
VectorKey ROL::details::VectorWorkspace< Real >::VectorStack::key_

Definition at line 145 of file ROL_VectorWorkspace.hpp.


The documentation for this struct was generated from the following file: