ROL
|
#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 ¶m) |
Return vector corresponding to input parameter. More... | |
void | set (const Real &x, const Key ¶m) |
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_ |
Definition at line 51 of file ROL_SampledScalar.hpp.
|
inline |
Constructor.
Definition at line 74 of file ROL_SampledScalar.hpp.
References ROL::SampledScalar< Real, Key >::flags_, ROL::SampledScalar< Real, Key >::indices_, and ROL::SampledScalar< Real, Key >::scalars_.
|
inlineprivate |
Definition at line 62 of file ROL_SampledScalar.hpp.
References ROL::SampledScalar< Real, Key >::flags_, and ROL::SampledScalar< Real, Key >::indices_.
Referenced by ROL::SampledScalar< Real, Key >::update().
|
inline |
Update for SampledScalar storage.
Definition at line 83 of file ROL_SampledScalar.hpp.
References ROL::SampledScalar< Real, Key >::reset(), and ROL::SampledScalar< Real, Key >::updated_.
|
inline |
Return vector corresponding to input parameter.
Definition at line 90 of file ROL_SampledScalar.hpp.
References ROL::SampledScalar< Real, Key >::flags_, ROL::SampledScalar< Real, Key >::indices_, ROL::SampledScalar< Real, Key >::maxIndex_, and ROL::SampledScalar< Real, Key >::scalars_.
|
inline |
Set vector corresponding to input parameter.
Definition at line 113 of file ROL_SampledScalar.hpp.
References ROL::SampledScalar< Real, Key >::flags_, ROL::SampledScalar< Real, Key >::indices_, ROL::SampledScalar< Real, Key >::maxIndex_, and ROL::SampledScalar< Real, Key >::scalars_.
|
private |
Definition at line 54 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::get(), ROL::SampledScalar< Real, Key >::reset(), ROL::SampledScalar< Real, Key >::SampledScalar(), and ROL::SampledScalar< Real, Key >::set().
|
private |
Definition at line 55 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::get(), ROL::SampledScalar< Real, Key >::reset(), ROL::SampledScalar< Real, Key >::SampledScalar(), and ROL::SampledScalar< Real, Key >::set().
|
private |
Definition at line 56 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::get(), ROL::SampledScalar< Real, Key >::SampledScalar(), and ROL::SampledScalar< Real, Key >::set().
|
private |
Definition at line 57 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::get(), and ROL::SampledScalar< Real, Key >::set().
|
private |
Definition at line 60 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::update().