Handle class for value tree attributes. More...
#include <eagine/value_tree/wrappers.hpp>
Public Member Functions | |
attribute () noexcept=default | |
Default constructor. Constructs empty attribute refering to nothing. | |
attribute (attribute &&temp) noexcept | |
Move constructor. | |
attribute (const attribute &that) | |
Copy constructor. Handles attribute reference counting. | |
auto | operator= (attribute &&temp) noexcept -> attribute & |
Move assignment operator. | |
auto | operator= (const attribute &that) -> attribute & |
Copy assignment operator. Handles attribute reference counting. | |
~attribute () noexcept | |
Destructor. Handles attribute reference counting. | |
operator bool () const | |
Indicates if this attribute actually refers to something. | |
auto | type_id () const noexcept -> identifier_t |
Returns the implementation type id of this attribute. | |
auto | name () const -> string_view |
Returns the implementation type id of this attribute. | |
Handle class for value tree attributes.
Attributes act as key that allow access values and nested attributes of some structured tree data hierarchy (JSON, YAML, XML, filesystem hierarchy, etc.). An attribute represents a single node in such hierarchy and can be used to retrieve the values or data stored at that level in the tree hierarchy and enumerate or find nested nodes.