ROL
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROL::SampledScalar< Real > 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 std::vector< Real > &param)
 Return vector corresponding to input parameter. More...
 
void set (const Real &x, const std::vector< Real > &param)
 Set vector corresponding to input parameter. More...
 

Private Member Functions

void reset (const bool flag=true)
 

Private Attributes

std::map< std::vector< Real >
, int > 
indices_
 
std::vector< bool > flags_
 
std::vector< Real > scalars_
 
int maxIndex_
 
bool updated_
 

Detailed Description

template<class Real>
class ROL::SampledScalar< Real >

Definition at line 51 of file ROL_SampledScalar.hpp.

Constructor & Destructor Documentation

template<class Real >
ROL::SampledScalar< Real >::SampledScalar ( void  )
inline

Member Function Documentation

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

Member Data Documentation

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

Definition at line 60 of file ROL_SampledScalar.hpp.

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


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