A Parameter with a type.
More...
#include <Parameter.h>
|
|
using | Validator = std::function<bool(const T&)> |
|
|
| BOOST_TYPE_INDEX_REGISTER_RUNTIME_CLASS (Parameter) |
|
| ParameterTyped (const T &value) |
|
| ParameterTyped (const T &&value) |
|
ParameterTyped & | validator (Validator validator) |
|
ParameterTyped & | value (const T &value) |
| std::expected< Parameter *, std::string > | value_from_generic (const glz::generic_u64 &glz_value) override |
|
T | value () const |
| bool | validate () const override |
| std::unique_ptr< Parameter > | clone () const override |
|
boost::typeindex::type_index | type () const |
|
bool | has_value () const |
|
template<typename Self> |
| Self & | has_value (this Self &self, const bool new_val) |
|
|
Validator | validator_ {} |
|
T | value_ {} |
|
bool | has_value_ = false |
template<typename T>
class Simo::Parameter::ParameterTyped< T >
A Parameter with a type.
◆ clone()
template<typename T>
|
|
inlinenodiscardoverridevirtual |
◆ validate()
template<typename T>
|
|
inlinenodiscardoverridevirtual |
◆ value_from_generic()
template<typename T>
|
|
inlinenodiscardoverridevirtual |
The documentation for this class was generated from the following files: