Template Class Value

Inheritance Relationships

Base Type

Class Documentation

template<typename T, bool Nullable = true>
class Value : public options::ValueBase

Public Types

using ValueType = T
using ValidatorType = ValidatorFunc<T>

Public Functions

inline Value(const T &value, ValidatorType validator = {})
inline Value(ValidatorType validator = {})
inline T validate(T value)
inline virtual void from_yaml(const YAML::Node &node) override
inline virtual YAML::Node to_yaml() const override
inline const T &get_value() const
inline const T &operator()() const
inline void set_value(const T &value)
inline Value<T, Nullable> &operator=(const T &value)
inline Value<T, Nullable> &operator=(const Value<T> &value)
inline void set_validator(ValidatorType validator = {})
inline virtual bool is_nullable() const final
inline virtual bool is_null() const final
inline virtual void set_null() final

Protected Functions

inline virtual void unset_null() final