OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::valtree::attribute Class Reference

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.
 

Detailed Description

Handle class for value tree attributes.

See also
compound
compound_attribute

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.


The documentation for this class was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).