Parameter<T> class High level interface to register simple parameter values (int, float, ...).
More...
|
| Parameter ()=delete |
| Deleted constructor. More...
|
|
| Parameter (const Parameter< T > &)=default |
| Default copy constructor. More...
|
|
Parameter< T > & | operator= (const Parameter< T > &)=default |
| Default assignement operator. More...
|
|
| ~Parameter ()=default |
| Default destructor. More...
|
|
| Parameter (const std::string &na, const std::string &desc) |
| Constructor. More...
|
|
| Parameter (const std::string &na, const std::string &desc, const T &defVal) |
| Constructor. More...
|
|
| Parameter (Configurable &conf, const std::string &na, const std::string &desc) |
| Constructor. More...
|
|
| Parameter (Configurable &conf, const std::string &na, const std::string &desc, const T &defVal) |
| Constructor. More...
|
|
virtual | ~ParameterBase ()=default |
| Default destructor. More...
|
|
| ParameterBase (EParameterType paramType, const std::string &na, const std::string &desc) |
| Constructor. More...
|
|
| ParameterBase (EParameterType paramType, const std::string &na, const std::string &desc, const T &defVal) |
| Constructor. More...
|
|
| ParameterBase (Configurable &conf, EParameterType paramType, const std::string &na, const std::string &desc) |
| Constructor. More...
|
|
| ParameterBase (Configurable &conf, EParameterType paramType, const std::string &na, const std::string &desc, const T &defVal) |
| Constructor. More...
|
|
EParameterType | type () const |
| Get the parameter type. More...
|
|
const std::string & | name () const |
| Get the property name. More...
|
|
const std::string & | description () const |
| Get the parameter description. More...
|
|
bool | isSet () const |
| Whether the parameter has been set. More...
|
|
bool | hasDefault () const |
| Whether the parameter has a default value. More...
|
|
std::string | str () const |
| Get the parameter value as string. More...
|
|
std::string | defaultStr () const |
| Get the parameter default value as string. More...
|
|
std::string | typeStr () const |
| Get the parameter type as string. More...
|
|
const std::type_index & | typeIndex () const |
| Get a type index object of the underlying type. More...
|
|
| operator T () const |
| Implicit conversion operator to get the parameter value. More...
|
|
T | get () const |
| Get the parameter value. More...
|
|
T | get (const T &fallback) const |
| Get the parameter value. More...
|
|
void | set (const T &value) |
| Set the parameter value. More...
|
|
void | reset () |
| Reset the parameter value (only) More...
|
|
void | setValidator (ValidatorFunctionT< T > validator) |
| Set the validator function. More...
|
|
template<typename T>
class marlinmt::Parameter< T >
Parameter<T> class High level interface to register simple parameter values (int, float, ...).
Definition at line 608 of file Parameter.h.