ROL
|
#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 ¶m) |
Return vector corresponding to input parameter. More... | |
void | set (const Vector< 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< ROL::Ptr< Vector < Real > > > | vectors_ |
int | maxIndex_ |
bool | updated_ |
Definition at line 16 of file ROL_SampledVector.hpp.
|
inline |
Constructor.
Definition at line 40 of file ROL_SampledVector.hpp.
References ROL::SampledVector< Real, Key >::flags_, ROL::SampledVector< Real, Key >::indices_, and ROL::SampledVector< Real, Key >::vectors_.
|
inlineprivate |
Definition at line 27 of file ROL_SampledVector.hpp.
References ROL::SampledVector< Real, Key >::flags_.
Referenced by ROL::SampledVector< Real, Key >::update().
|
inline |
Update for SampledVector storage.
Definition at line 49 of file ROL_SampledVector.hpp.
References ROL::SampledVector< Real, Key >::reset(), and ROL::SampledVector< Real, Key >::updated_.
|
inline |
Return vector corresponding to input parameter.
Definition at line 56 of file ROL_SampledVector.hpp.
References ROL::SampledVector< Real, Key >::flags_, ROL::SampledVector< Real, Key >::indices_, ROL::SampledVector< Real, Key >::maxIndex_, and ROL::SampledVector< Real, Key >::vectors_.
|
inline |
Set vector corresponding to input parameter.
Definition at line 79 of file ROL_SampledVector.hpp.
References ROL::Vector< Real >::clone(), ROL::SampledVector< Real, Key >::flags_, ROL::SampledVector< Real, Key >::indices_, ROL::SampledVector< Real, Key >::maxIndex_, and ROL::SampledVector< Real, Key >::vectors_.
|
private |
Definition at line 19 of file ROL_SampledVector.hpp.
Referenced by ROL::SampledVector< Real, Key >::get(), ROL::SampledVector< Real, Key >::SampledVector(), and ROL::SampledVector< Real, Key >::set().
|
private |
Definition at line 20 of file ROL_SampledVector.hpp.
Referenced by ROL::SampledVector< Real, Key >::get(), ROL::SampledVector< Real, Key >::reset(), ROL::SampledVector< Real, Key >::SampledVector(), and ROL::SampledVector< Real, Key >::set().
|
private |
Definition at line 21 of file ROL_SampledVector.hpp.
Referenced by ROL::SampledVector< Real, Key >::get(), ROL::SampledVector< Real, Key >::SampledVector(), and ROL::SampledVector< Real, Key >::set().
|
private |
Definition at line 22 of file ROL_SampledVector.hpp.
Referenced by ROL::SampledVector< Real, Key >::get(), and ROL::SampledVector< Real, Key >::set().
|
private |
Definition at line 25 of file ROL_SampledVector.hpp.
Referenced by ROL::SampledVector< Real, Key >::update().