Bridge++
Ver. 1.2.x
|
Class for parameters. More...
#include <parameters.h>
Classes | |
struct | Item |
Public Member Functions | |
Parameters () | |
virtual | ~Parameters () |
void | set_double (const string &key, const double value) |
void | set_int (const string &key, const int value) |
void | set_double_vector (const string &key, const std::valarray< double > &value) |
void | set_int_vector (const string &key, const std::valarray< int > &value) |
void | set_string (const string &key, const string &value) |
void | set_Parameters (const string &key, Parameters *const value) |
void | set_VerboseLevel (Bridge::VerboseLevel value) |
double | get_double (const string &key) const |
int | get_int (const string &key) const |
std::valarray< double > | get_double_vector (const string &key) const |
std::valarray< int > | get_int_vector (const string &key) const |
string | get_string (const string &key) const |
Parameters * | get_Parameters (const string &key) const |
Bridge::VerboseLevel | get_VerboseLevel () const |
int | fetch_double (const string &key, double &val) const |
int | fetch_int (const string &key, int &val) const |
int | fetch_double_vector (const string &key, std::valarray< double > &val) const |
int | fetch_int_vector (const string &key, std::valarray< int > &val) const |
int | fetch_string (const string &key, string &val) const |
int | fetch_VerboseLevel (Bridge::VerboseLevel &val) const |
void | Register_double (const string &, const double) |
void | Register_int (const string &, const int) |
void | Register_double_vector (const string &, const std::valarray< double > &) |
void | Register_int_vector (const string &, const std::valarray< int > &) |
void | Register_string (const string &, const string &) |
void | Register_Parameters (const string &, Parameters *const) |
bool | find_double (const string &) const |
bool | find_int (const string &) const |
bool | find_double_vector (const string &) const |
bool | find_int_vector (const string &) const |
bool | find_string (const string &) const |
bool | find_Parameters (const string &) const |
bool | is_set (const string &) const |
Private Attributes | |
std::map< string, Item< double > > | m_map_double |
std::map< string, Item< int > > | m_map_int |
std::map< string, Item < std::valarray< double > > > | m_map_double_vector |
std::map< string, Item < std::valarray< int > > > | m_map_int_vector |
std::map< string, Item< string > > | m_map_string |
std::map< string, Item < Parameters * > > | m_map_Parameters |
Item< Bridge::VerboseLevel > | m_vlevel |
Class for parameters.
Base class of Parameters. This class gives general basis of structured parameter sets. [17 Jul 2012 H.Matsufuru] fetch is modified to return int, instead of bool in the original Aoyama-san's code. [16 Jun 2013 Y.Namekawa]
Definition at line 40 of file parameters.h.
Parameters::Parameters | ( | ) |
Definition at line 17 of file parameters.cpp.
|
inlinevirtual |
Definition at line 89 of file parameters.h.
int Parameters::fetch_double | ( | const string & | key, |
double & | val | ||
) | const |
Definition at line 124 of file parameters.cpp.
int Parameters::fetch_double_vector | ( | const string & | key, |
std::valarray< double > & | val | ||
) | const |
Definition at line 158 of file parameters.cpp.
int Parameters::fetch_int | ( | const string & | key, |
int & | val | ||
) | const |
Definition at line 141 of file parameters.cpp.
int Parameters::fetch_int_vector | ( | const string & | key, |
std::valarray< int > & | val | ||
) | const |
Definition at line 176 of file parameters.cpp.
int Parameters::fetch_string | ( | const string & | key, |
string & | val | ||
) | const |
Definition at line 194 of file parameters.cpp.
int Parameters::fetch_VerboseLevel | ( | Bridge::VerboseLevel & | val | ) | const |
Definition at line 211 of file parameters.cpp.
bool Parameters::find_double | ( | const string & | key | ) | const |
Definition at line 227 of file parameters.cpp.
bool Parameters::find_double_vector | ( | const string & | key | ) | const |
Definition at line 241 of file parameters.cpp.
bool Parameters::find_int | ( | const string & | key | ) | const |
Definition at line 220 of file parameters.cpp.
bool Parameters::find_int_vector | ( | const string & | key | ) | const |
Definition at line 234 of file parameters.cpp.
bool Parameters::find_Parameters | ( | const string & | key | ) | const |
Definition at line 255 of file parameters.cpp.
bool Parameters::find_string | ( | const string & | key | ) | const |
Definition at line 248 of file parameters.cpp.
double Parameters::get_double | ( | const string & | key | ) | const |
Definition at line 25 of file parameters.cpp.
std::valarray< double > Parameters::get_double_vector | ( | const string & | key | ) | const |
Definition at line 55 of file parameters.cpp.
int Parameters::get_int | ( | const string & | key | ) | const |
Definition at line 40 of file parameters.cpp.
std::valarray< int > Parameters::get_int_vector | ( | const string & | key | ) | const |
Definition at line 70 of file parameters.cpp.
Parameters * Parameters::get_Parameters | ( | const string & | key | ) | const |
Definition at line 100 of file parameters.cpp.
string Parameters::get_string | ( | const string & | key | ) | const |
Definition at line 85 of file parameters.cpp.
Bridge::VerboseLevel Parameters::get_VerboseLevel | ( | ) | const |
Definition at line 116 of file parameters.cpp.
bool Parameters::is_set | ( | const string & | key | ) | const |
Definition at line 366 of file parameters.cpp.
void Parameters::Register_double | ( | const string & | key, |
const double | data | ||
) |
Definition at line 324 of file parameters.cpp.
void Parameters::Register_double_vector | ( | const string & | key, |
const std::valarray< double > & | data | ||
) |
Definition at line 338 of file parameters.cpp.
void Parameters::Register_int | ( | const string & | key, |
const int | data | ||
) |
Definition at line 331 of file parameters.cpp.
void Parameters::Register_int_vector | ( | const string & | key, |
const std::valarray< int > & | data | ||
) |
Definition at line 345 of file parameters.cpp.
void Parameters::Register_Parameters | ( | const string & | key, |
Parameters * const | data | ||
) |
Definition at line 359 of file parameters.cpp.
void Parameters::Register_string | ( | const string & | key, |
const string & | data | ||
) |
Definition at line 352 of file parameters.cpp.
void Parameters::set_double | ( | const string & | key, |
const double | value | ||
) |
Definition at line 271 of file parameters.cpp.
void Parameters::set_double_vector | ( | const string & | key, |
const std::valarray< double > & | value | ||
) |
Definition at line 289 of file parameters.cpp.
void Parameters::set_int | ( | const string & | key, |
const int | value | ||
) |
Definition at line 262 of file parameters.cpp.
void Parameters::set_int_vector | ( | const string & | key, |
const std::valarray< int > & | value | ||
) |
Definition at line 280 of file parameters.cpp.
void Parameters::set_Parameters | ( | const string & | key, |
Parameters *const | value | ||
) |
Definition at line 307 of file parameters.cpp.
void Parameters::set_string | ( | const string & | key, |
const string & | value | ||
) |
Definition at line 298 of file parameters.cpp.
void Parameters::set_VerboseLevel | ( | Bridge::VerboseLevel | value | ) |
Definition at line 317 of file parameters.cpp.
|
private |
Definition at line 77 of file parameters.h.
|
private |
Definition at line 79 of file parameters.h.
|
private |
Definition at line 78 of file parameters.h.
|
private |
Definition at line 80 of file parameters.h.
|
private |
Definition at line 82 of file parameters.h.
|
private |
Definition at line 81 of file parameters.h.
|
private |
Definition at line 83 of file parameters.h.