Template Class ValueMap

Inheritance Relationships

Base Type

Class Documentation

template<typename VT>
class ValueMap : public options::ValueBase

Public Types

using ValueType = typename VT::ValueType

Public Functions

inline ValueMap(const VT &value = VT(), const std::map<std::string, ValueType> map = {})
inline void set_map(std::map<std::string, ValueType> m)
inline virtual void from_yaml(const YAML::Node &node)
inline virtual YAML::Node to_yaml() const
inline VT &operator[](const std::string &key)
inline std::map<std::string, ValueType> get_map() const
inline std::map<std::string, ValueType> operator()() const
inline virtual bool is_nullable() const
inline virtual bool is_null() const
inline virtual void set_null()

Protected Functions

inline virtual void unset_null()

Protected Attributes

std::map<std::string, VT> map_
VT default_