Template Class MetaParameter
Defined in File parameter.hpp
-
template<typename ValueT>
class MetaParameter Class to define a parameter.
Public Functions
- MetaParameter() = default
-
inline explicit MetaParameter(ValueT &value)
Construct a new MetaParameter object.
- Parameters:
value – The value of the parameter.
-
inline explicit MetaParameter(ValueT &&value)
Construct a new MetaParameter object.
- Parameters:
value – The value of the parameter.
-
inline MetaParameter &operator=(const ValueT &value)
Define the assignment operator.
- Parameters:
- Returns:
value – The value of the parameter.
The reference to the parameter.
-
inline MetaParameter &&operator=(ValueT &&value)
Define the assignment operator.
- Parameters:
- Returns:
value – The value of the parameter.
The reference to the parameter.
-
inline const std::string &key() const
Get the key (name) of the parameter.
- Returns:
The key (name) of the parameter.
-
inline bool has_value() const
Check whether the parameter contains a value.
- Returns:
true if the parameter contains a value.
-
inline ValueT &get()
Get the value of the parameter.
- Returns:
The reference to the value of the parameter.
- inline void set_default_value()
Set the default value object if the parameter does not contain a value.
-
inline operator ValueT&()
Get the value of the argument.
- Returns:
The reference to the value of the parameter.