ROL
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)
std::vector< size_typegetRefCounts (void) const

Public Attributes

std::vector< Ptr< V > > vectors_
VectorKey key_

Friends

class VectorWorkspace< Real >

Detailed Description

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

Definition at line 104 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 110 of file ROL_VectorWorkspace.hpp.

References clone(), key_, and vectors_.

Member Function Documentation

◆ getKey()

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

Definition at line 113 of file ROL_VectorWorkspace.hpp.

References key_.

◆ size()

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

Definition at line 115 of file ROL_VectorWorkspace.hpp.

References vectors_.

◆ number_assigned()

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

Definition at line 117 of file ROL_VectorWorkspace.hpp.

References vectors_.

◆ 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 126 of file ROL_VectorWorkspace.hpp.

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

Referenced by VectorStack().

◆ getRefCounts()

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

Definition at line 151 of file ROL_VectorWorkspace.hpp.

References vectors_.

◆ VectorWorkspace< Real >

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

Definition at line 94 of file ROL_VectorWorkspace.hpp.

Member Data Documentation

◆ vectors_

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

Definition at line 107 of file ROL_VectorWorkspace.hpp.

Referenced by clone(), getRefCounts(), number_assigned(), size(), and VectorStack().

◆ key_

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

Definition at line 108 of file ROL_VectorWorkspace.hpp.

Referenced by clone(), getKey(), and VectorStack().


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