MADNESS
0.10.1
|
structure holding the value for a given parameter More...
#include <QCCalculationParametersBase.h>
Public Types | |
enum | { def , derived , defined } |
Public Member Functions | |
QCParameter () | |
QCParameter (const std::string v, const std::string t, const std::string comment="", const std::vector< std::string > allowed_values1={}) | |
std::string | get_comment () const |
int | get_print_order () const |
std::string | get_type () const |
std::string | get_value () const |
hashT | hash () const |
bool | is_user_defined () const |
std::string | print_line (const std::string &key) const |
std::string | print_precedence () const |
template<typename Archive > | |
void | serialize (Archive &ar) |
void | set_derived_value (const std::string val) |
void | set_user_defined_value (const std::string val) |
Public Attributes | |
enum madness::QCParameter:: { ... } | precedence =def |
Private Member Functions | |
bool | check_allowed () |
std::string | not_allowed_errmsg () const |
void | set_all () |
Private Attributes | |
std::vector< std::string > | allowed_values =std::vector<std::string>() |
std::string | comment ="" |
std::string | default_value ="" |
std::string | derived_value ="" |
std::string | null ="" |
int | print_order =0 |
std::string | type ="" |
std::string | user_defined_value ="" |
std::string | value |
structure holding the value for a given parameter
keeps logic about default, derived and user-defined settings (with increasing priority), as well as comments for the user (e.g. a recommended range for a given parameter).
might be extended to hold allowed values for certain parameters, e.g. localization procedures.
all values are stored as strings and must be converted to their respective types by the QCCalculationParametersBase class (see below)
|
inline |
|
inline |
|
inlineprivate |
References allowed_values, and value.
Referenced by set_all().
|
inline |
References comment.
Referenced by print_line().
|
inline |
References print_order.
|
inline |
|
inline |
References value.
Referenced by madness::QCCalculationParametersBase::check_type(), madness::QCCalculationParametersBase::get(), and print_line().
|
inline |
References madness::hash_value(), and value.
|
inline |
References defined, and precedence.
Referenced by madness::QCCalculationParametersBase::is_user_defined().
|
inlineprivate |
References allowed_values, errmsg(), and value.
Referenced by set_all().
|
inline |
References allowed_values, get_comment(), get_value(), max, print_precedence(), and madness::commandlineparser::split().
|
inline |
References def, defined, derived, and precedence.
Referenced by print_line().
|
inline |
References allowed_values, comment, default_value, derived_value, precedence, print_order, type, user_defined_value, and value.
|
inlineprivate |
References check_allowed(), default_value, derived_value, not_allowed_errmsg(), user_defined_value, and value.
Referenced by set_derived_value(), and set_user_defined_value().
|
inline |
References derived, derived_value, max, precedence, and set_all().
Referenced by madness::QCCalculationParametersBase::set_derived_value().
|
inline |
References defined, max, precedence, set_all(), and user_defined_value.
Referenced by madness::QCCalculationParametersBase::from_json(), and madness::QCCalculationParametersBase::set_user_defined_value().
|
private |
Referenced by check_allowed(), not_allowed_errmsg(), print_line(), and serialize().
|
private |
Referenced by get_comment(), and serialize().
|
private |
Referenced by serialize(), and set_all().
|
private |
Referenced by serialize(), set_all(), and set_derived_value().
|
private |
enum { ... } madness::QCParameter::precedence |
Referenced by is_user_defined(), print_precedence(), serialize(), set_derived_value(), and set_user_defined_value().
|
private |
Referenced by get_print_order(), and serialize().
|
private |
Referenced by get_type(), and serialize().
|
private |
Referenced by serialize(), set_all(), and set_user_defined_value().
|
private |
Referenced by check_allowed(), get_value(), hash(), not_allowed_errmsg(), serialize(), and set_all().