Definition at line 31 of file parameter_data.hpp.
#include <parameter_data.hpp>
|
template<typename T > |
T & | _add_to_map (const std::string &nm, std::map< const std::string, T > &m) |
|
template<typename T > |
T | _get_from_map (const std::string &nm, const std::map< const std::string, T > &m) const |
|
std::map< const std::string, int_t > & | _get_map (int v) |
|
std::map< const std::string, real_t > & | _get_map (real_t v) |
|
const std::map< const std::string, int_t > & | _get_map (int v) const |
|
const std::map< const std::string, real_t > & | _get_map (real_t v) const |
|
◆ ParameterData()
MAST::Base::ParameterData::ParameterData |
( |
| ) |
|
|
inline |
◆ ~ParameterData()
virtual MAST::Base::ParameterData::~ParameterData |
( |
| ) |
|
|
inlinevirtual |
◆ _add_to_map()
template<typename T >
T& MAST::Base::ParameterData::_add_to_map |
( |
const std::string & |
nm, |
|
|
std::map< const std::string, T > & |
m |
|
) |
| |
|
inlineprivate |
Definition at line 90 of file parameter_data.hpp.
93 typename std::map<const std::string, T>::iterator
96 Assert0(it == m.end(),
"Data already exists for name: " + nm);
#define Assert0(cond, msg)
◆ _get_from_map()
template<typename T >
T MAST::Base::ParameterData::_get_from_map |
( |
const std::string & |
nm, |
|
|
const std::map< const std::string, T > & |
m |
|
) |
| const |
|
inlineprivate |
Definition at line 104 of file parameter_data.hpp.
107 typename std::map<const std::string, T>::const_iterator
110 Assert0(it != m.end(),
"Data does not exist for name: " + nm);
#define Assert0(cond, msg)
◆ _get_map() [1/4]
std::map<const std::string, int_t>& MAST::Base::ParameterData::_get_map |
( |
int |
v | ) |
|
|
inlineprivate |
◆ _get_map() [2/4]
std::map<const std::string, real_t>& MAST::Base::ParameterData::_get_map |
( |
real_t |
v | ) |
|
|
inlineprivate |
◆ _get_map() [3/4]
const std::map<const std::string, int_t>& MAST::Base::ParameterData::_get_map |
( |
int |
v | ) |
const |
|
inlineprivate |
◆ _get_map() [4/4]
const std::map<const std::string, real_t>& MAST::Base::ParameterData::_get_map |
( |
real_t |
v | ) |
const |
|
inlineprivate |
◆ add()
template<typename T >
T& MAST::Base::ParameterData::add |
( |
const std::string & |
nm | ) |
|
|
inline |
Definition at line 43 of file parameter_data.hpp.
45 return _add_to_map<T>(nm,
_get_map(T()));
std::map< const std::string, int_t > & _get_map(int v)
◆ get()
template<typename T >
T MAST::Base::ParameterData::get |
( |
const std::string & |
nm | ) |
const |
|
inline |
Definition at line 51 of file parameter_data.hpp.
53 return _get_from_map<T>(nm,
_get_map(T()));
std::map< const std::string, int_t > & _get_map(int v)
◆ _int_data
std::map<const std::string, int_t> MAST::Base::ParameterData::_int_data |
|
private |
◆ _real_data
std::map<const std::string, real_t> MAST::Base::ParameterData::_real_data |
|
private |
The documentation for this class was generated from the following file: