Measure Storage class. More...
Collaboration diagram for Feel::FeelModels::ModelMeasuresStorage:Public Member Functions | |
| ModelMeasuresStorage (ModelMeasuresStorage &&)=default | |
| ModelMeasuresStorage (ModelMeasuresStorage const &)=default | |
| ModelMeasuresStorage (std::string const &directory, worldcomm_ptr_t const &worldComm) | |
| template<typename T > | |
| void | setValue (std::string const &key, T &&val) |
| set value \val related to the key nammed by \key (the measure storage is associated to the default name, i.e. empty string) | |
Static Public Attributes | |
| static const std::string | default_storage = "" |
) | |
set a pair key/value defined by \keyVal (the measure storage is associated to the | |
| template<typename T > | |
| void | setValue (std::string const &name, std::string const &key, T &&val) |
| template<typename T > | |
| void | setKeyValue (T &&keyVal) |
| set a pair key/value defined by \keyVal (the measure storage is associated to the default name, i.e. empty string) | |
| template<typename T > | |
| void | setKeyValue (std::string const &name, T &&keyVal) |
| bool | hasValue (std::string const &key) const |
return true if a measure with key key is present in default storage (empty string) | |
| bool | hasValue (std::string const &name, std::string const &key) const |
return true if a measure with key key is present in storage name | |
| value_type | value (std::string const &key) const |
return value of measure with key key from default storage (empty string) | |
| value_type | value (std::string const &name, std::string const &key) const |
return value of measure with key key from storage 'name' | |
| std::map< std::string, value_type > const & | values () const |
| get the values dictionary from the default storage | |
| std::map< std::string, value_type > const & | values (std::string const &name) const |
get the values dictionary from the storage name | |
| bool | empty (std::string const &name=default_storage) const |
return true if there are no values in the storage name | |
| std::vector< double > const & | times () const |
| get the times | |
| void | setTable (std::string const &name, Feel::Table &&table) |
| void | save (double time) |
save current measure at time time | |
| bool | isUpdated () const |
| return true if at least one measure (value or table) has been set or updated | |
| void | resetState () |
| reset state of measures storage : new measure modification will be turn on the updated state | |
| void | updateParameterValues (std::map< std::string, double > &mp, std::string const &prefix_symbol) const |
| update measures values into the mapping of values \mp | |
| void | restart (double time) |
| restart measures | |
| fs::path | directory () const |
| get the directory where the measures are stored | |
| nl::json | metadata () const |
| get the metadata from the measure storage | |
Measure Storage class.
The class stores values and tables in maps