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

#include <ROL_SampledScalar.hpp>

Public Member Functions

 SampledScalar (void)
 Constructor. More...
 
void update (const bool flag=true)
 Update for SampledScalar storage. More...
 
bool get (Real &x, const Key &param)
 Return vector corresponding to input parameter. More...
 
void set (const 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< Real > scalars_
 
int maxIndex_
 
bool updated_
 

Detailed Description

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

Definition at line 51 of file ROL_SampledScalar.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

template<class Real , class Key = std::vector<Real>>
std::map<Key, int> ROL::SampledScalar< Real, Key >::indices_
private
template<class Real , class Key = std::vector<Real>>
std::vector<bool> ROL::SampledScalar< Real, Key >::flags_
private
template<class Real , class Key = std::vector<Real>>
std::vector<Real> ROL::SampledScalar< Real, Key >::scalars_
private
template<class Real , class Key = std::vector<Real>>
int ROL::SampledScalar< Real, Key >::maxIndex_
private
template<class Real , class Key = std::vector<Real>>
bool ROL::SampledScalar< Real, Key >::updated_
private

Definition at line 60 of file ROL_SampledScalar.hpp.

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


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