rapidyaml 0.14.0
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
Node classes

High-level node classes. More...

Topics

 Serialization helpers
 

Namespaces

namespace  c4::yml::detail
 a CRTP base providing read-only methods for ConstNodeRef and NodeRef

Classes

class  c4::yml::ConstNodeRef
 Holds a pointer to an existing tree, and a node id. More...
class  c4::yml::NodeRef
 A reference to a node in an existing yaml tree, offering a more convenient API than the index-based API used in the tree. More...

construction

 c4::yml::ConstNodeRef::ConstNodeRef (NodeRef const &) noexcept
 c4::yml::ConstNodeRef::ConstNodeRef (NodeRef &&) noexcept

assignment

ConstNodeRefc4::yml::ConstNodeRef::operator= (NodeRef const &) noexcept
ConstNodeRefc4::yml::ConstNodeRef::operator= (NodeRef &&) noexcept

Detailed Description

High-level node classes.

See also
sample::sample_quick_overview
sample::sample_iterate_trees
sample::sample_create_trees
sample::sample_tree_arena

Function Documentation

◆ ConstNodeRef() [1/2]

c4::yml::ConstNodeRef::ConstNodeRef ( NodeRef const & that)
inlinenoexcept

Definition at line 1547 of file node.hpp.

1548 : m_tree(that.m_tree)
1549 , m_id(!that.is_seed() ? that.id() : (id_type)NONE)
1550{
1551}
Tree const * m_tree
Definition node.hpp:834
RYML_ID_TYPE id_type
The type of a node id in the YAML tree; to override the default type, define the macro RYML_ID_TYPE t...
Definition common.hpp:249
@ NONE
an index to none
Definition common.hpp:256

◆ ConstNodeRef() [2/2]

c4::yml::ConstNodeRef::ConstNodeRef ( NodeRef && that)
inlinenoexcept

Definition at line 1553 of file node.hpp.

1554 : m_tree(that.m_tree)
1555 , m_id(!that.is_seed() ? that.id() : (id_type)NONE)
1556{
1557}

◆ operator=() [1/2]

ConstNodeRef & c4::yml::ConstNodeRef::operator= ( NodeRef const & that)
inlinenoexcept

Definition at line 1560 of file node.hpp.

1561{
1562 m_tree = (that.m_tree);
1563 m_id = (!that.is_seed() ? that.id() : (id_type)NONE);
1564 return *this;
1565}

◆ operator=() [2/2]

ConstNodeRef & c4::yml::ConstNodeRef::operator= ( NodeRef && that)
inlinenoexcept

Definition at line 1567 of file node.hpp.

1568{
1569 m_tree = (that.m_tree);
1570 m_id = (!that.is_seed() ? that.id() : (id_type)NONE);
1571 return *this;
1572}