|
bool | operator== (const dictionary &lhs, const dictionary &rhs) |
|
bool | operator!= (const dictionary &lhs, const dictionary &rhs) |
|
template<typename F > |
F::result_type | apply_visitor (F &visitor, dictionary::const_iterator it) |
| Const-access visitor to a value by an iterator. More...
|
|
template<typename F > |
F::result_type | apply_visitor (const F &visitor, dictionary::const_iterator it) |
| Const-access visitor to a value by an iterator. More...
|
|
params & | define_convenience_parameters (params ¶meters) |
| Defines a number of frequently-used parameters. Defines size_t timelimt , string outputfile , string checkpoint . More...
|
|
std::ostream & | operator<< (std::ostream &os, const dict_value &dv) |
| Print the value together with type in some human-readable format. More...
|
|
template<typename F > |
F::result_type | apply_visitor (F &visitor, const dict_value &dv) |
| Const-access visitor to the bound value. More...
|
|
template<typename F > |
F::result_type | apply_visitor (const F &visitor, const dict_value &dv) |
| Const-access visitor to the bound value. More...
|
|
template<typename T > |
bool | operator== (const T &lhs, const dict_value &rhs) |
|
template<typename T > |
bool | operator!= (const T &lhs, const dict_value &rhs) |
|
template<typename T > |
bool | operator== (const dict_value &lhs, const T &rhs) |
|
template<typename T > |
bool | operator!= (const dict_value &lhs, const T &rhs) |
|
bool | operator== (const dict_value &lhs, const dict_value &rhs) |
|
bool | operator!= (const dict_value &lhs, const dict_value &rhs) |
|
bool | operator== (const dict_value &lhs, const char *rhs) |
|
bool | operator!= (const dict_value &lhs, const char *rhs) |
|
bool | operator== (const char *lhs, const dict_value &rhs) |
|
bool | operator!= (const char *lhs, const dict_value &rhs) |
|
void | swap (params &p1, params &p2) |
|
std::string | origin_name (const params &p) |
| Convenience function to obtain the "origin" filename associated with the parameters object. More...
|
|
std::ostream & | print (std::ostream &s, const dict_value &dv, bool terse) |
|
std::ostream & | operator<< (std::ostream &s, const dictionary &d) |
|
std::ostream & | operator<< (std::ostream &s, const params &p) |
|
std::string alps::params_ns::origin_name |
( |
const params & |
p | ) |
|
Convenience function to obtain the "origin" filename associated with the parameters object.
The "origin" name can be used to generate, e.g., sensible output file names based on the parameter file names that passed to the program.
- If the parameters object is restored from an archive, the archive name is its origin.
- If the parameters object is constructed from INI file(s), the first INI file is its origin.
- If the parameters object is constructed from the command line without INI files, the origin is the executable name (if available) stripped of its path.
- Otherwise, the origin name is empty.
Definition at line 505 of file params.cpp.