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 16 of file ROL_SampledScalar.hpp.
|
inline |
Constructor.
Definition at line 39 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 27 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 48 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 55 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 78 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 19 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 20 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 21 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 22 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::get(), and ROL::SampledScalar< Real, Key >::set().
|
private |
Definition at line 25 of file ROL_SampledScalar.hpp.
Referenced by ROL::SampledScalar< Real, Key >::update().