Class item
Defined in File item.hpp
Class Documentation
-
class item
Public Functions
-
item() = default
Default constructor, empty item.
-
inline item(std::string name)
constructor for an item with name name and as content the character ‘.’, i.e. an inapplicable value.
-
inline item(std::string name, item_value value)
Constructor using name and value.
-
inline const std::string &name() const
Return the name of the item.
-
inline const item_value &value() const &
Return the value of the item.
-
inline item_value &value() &
Return the value of the item.
-
inline void value(item_value v)
replace the content of the stored value with v
-
inline bool empty() const
empty means either null or unknown
-
inline bool is_null() const
returns true if the item contains ‘.’ or ‘?’
-
inline bool is_unknown() const
returns true if the item contains ‘?’
-
template<std::size_t N>
inline decltype(auto) get() const support for structured binding
-
item() = default