rapidyaml  0.8.0
parse and emit YAML, and do it fast
Node classes

High-level node classes. More...

Modules

 Serialization helpers
 

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 1572 of file node.hpp.

1573  : m_tree(that.m_tree)
1574  , m_id(!that.is_seed() ? that.id() : (id_type)NONE)
1575 {
1576 }
Tree const * m_tree
Definition: node.hpp:845
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:253
@ NONE
an index to none
Definition: common.hpp:260

◆ ConstNodeRef() [2/2]

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

Definition at line 1578 of file node.hpp.

1579  : m_tree(that.m_tree)
1580  , m_id(!that.is_seed() ? that.id() : (id_type)NONE)
1581 {
1582 }

◆ operator=() [1/2]

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

Definition at line 1585 of file node.hpp.

1586 {
1587  m_tree = (that.m_tree);
1588  m_id = (!that.is_seed() ? that.id() : (id_type)NONE);
1589  return *this;
1590 }

References c4::yml::NONE.

◆ operator=() [2/2]

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

Definition at line 1592 of file node.hpp.

1593 {
1594  m_tree = (that.m_tree);
1595  m_id = (!that.is_seed() ? that.id() : (id_type)NONE);
1596  return *this;
1597 }

References c4::yml::NONE.