![]() |
OpenMS
|
Parameter entry used to store the actual information inside of a Param entry. More...
#include <OpenMS/DATASTRUCTURES/Param.h>
Public Member Functions | |
| ParamEntry () | |
| Default constructor. More... | |
| ParamEntry (const std::string &n, const ParamValue &v, const std::string &d, const std::vector< std::string > &t=std::vector< std::string >()) | |
| Constructor with name, description, value and advanced flag. More... | |
| ParamEntry (const ParamEntry &)=default | |
| Copy constructor. More... | |
| ParamEntry (ParamEntry &&)=default | |
| Move constructor. More... | |
| ~ParamEntry () | |
| Destructor. More... | |
| ParamEntry & | operator= (const ParamEntry &)=default |
| Assignment operator. More... | |
| ParamEntry & | operator= (ParamEntry &&) &=default |
| Move assignment operator. More... | |
| bool | isValid (std::string &message) const |
| Check if 'value' fulfills restrictions. More... | |
| bool | operator== (const ParamEntry &rhs) const |
| Equality operator (only name and value are compared) More... | |
Public Attributes | |
| std::string | name |
| Name of the entry. More... | |
| std::string | description |
| Description of the entry. More... | |
| ParamValue | value |
| Value associated with the entry. More... | |
| std::set< std::string > | tags |
| Tags list, used e.g. for advanced parameter tag. More... | |
Restrictions to accepted values (used in checkDefaults) | |
| double | min_float |
| Default: - std::numeric_limits<double>::max() More... | |
| double | max_float |
| Default: std::numeric_limits<double>::max() More... | |
| int | min_int |
| Default: - std::numeric_limits<Int>::max() More... | |
| int | max_int |
| Default: std::numeric_limits<Int>::max() More... | |
| std::vector< std::string > | valid_strings |
| Default: empty. More... | |
Parameter entry used to store the actual information inside of a Param entry.
| ParamEntry | ( | ) |
Default constructor.
| ParamEntry | ( | const std::string & | n, |
| const ParamValue & | v, | ||
| const std::string & | d, | ||
| const std::vector< std::string > & | t = std::vector< std::string >() |
||
| ) |
Constructor with name, description, value and advanced flag.
|
default |
Copy constructor.
|
default |
Move constructor.
| ~ParamEntry | ( | ) |
Destructor.
| bool isValid | ( | std::string & | message | ) | const |
Check if 'value' fulfills restrictions.
|
default |
Assignment operator.
|
default |
Move assignment operator.
| bool operator== | ( | const ParamEntry & | rhs | ) | const |
Equality operator (only name and value are compared)
| std::string description |
Description of the entry.
| double max_float |
Default: std::numeric_limits<double>::max()
| int max_int |
Default: std::numeric_limits<Int>::max()
| double min_float |
Default: - std::numeric_limits<double>::max()
| int min_int |
Default: - std::numeric_limits<Int>::max()
| std::string name |
Name of the entry.
| std::set<std::string> tags |
Tags list, used e.g. for advanced parameter tag.
| std::vector<std::string> valid_strings |
Default: empty.
| ParamValue value |
Value associated with the entry.