ROL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROL::SampledVector< Real, Key > Class Template Reference

#include <ROL_SampledVector.hpp>

Public Member Functions

 SampledVector (void)
 Constructor. More...
 
void update (const bool flag=true)
 Update for SampledVector storage. More...
 
bool get (Vector< Real > &x, const Key &param)
 Return vector corresponding to input parameter. More...
 
void set (const Vector< Real > &x, const Key &param)
 Set vector corresponding to input parameter. More...
 

Private Member Functions

void reset (const bool flag=true)
 

Private Attributes

std::map< Key, int > indices_
 
std::vector< bool > flags_
 
std::vector< ROL::Ptr< Vector
< Real > > > 
vectors_
 
int maxIndex_
 
bool updated_
 

Detailed Description

template<class Real, class Key = std::vector<Real>>
class ROL::SampledVector< Real, Key >

Definition at line 51 of file ROL_SampledVector.hpp.

Constructor & Destructor Documentation

template<class Real , class Key = std::vector<Real>>
ROL::SampledVector< Real, Key >::SampledVector ( void  )
inline

Member Function Documentation

template<class Real , class Key = std::vector<Real>>
void ROL::SampledVector< Real, Key >::reset ( const bool  flag = true)
inlineprivate
template<class Real , class Key = std::vector<Real>>
void ROL::SampledVector< Real, Key >::update ( const bool  flag = true)
inline
template<class Real , class Key = std::vector<Real>>
bool ROL::SampledVector< Real, Key >::get ( Vector< Real > &  x,
const Key &  param 
)
inline
template<class Real , class Key = std::vector<Real>>
void ROL::SampledVector< Real, Key >::set ( const Vector< Real > &  x,
const Key &  param 
)
inline

Member Data Documentation

template<class Real , class Key = std::vector<Real>>
std::map<Key, int> ROL::SampledVector< Real, Key >::indices_
private
template<class Real , class Key = std::vector<Real>>
std::vector<bool> ROL::SampledVector< Real, Key >::flags_
private
template<class Real , class Key = std::vector<Real>>
std::vector<ROL::Ptr<Vector<Real> > > ROL::SampledVector< Real, Key >::vectors_
private
template<class Real , class Key = std::vector<Real>>
int ROL::SampledVector< Real, Key >::maxIndex_
private
template<class Real , class Key = std::vector<Real>>
bool ROL::SampledVector< Real, Key >::updated_
private

Definition at line 60 of file ROL_SampledVector.hpp.

Referenced by ROL::SampledVector< Real, Key >::update().


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