rapidyaml  0.13.0
parse and emit YAML, and do it fast
node.hpp File Reference

Node classes. More...

#include <cstddef>
#include "c4/yml/tree.hpp"
#include "c4/base64.hpp"

Go to the source code of this file.

Classes

struct  c4::yml::Key< K >
 
struct  c4::yml::Key< fmt::const_base64_wrapper >
 
struct  c4::yml::Key< fmt::base64_wrapper >
 
struct  c4::yml::detail::RoNodeMethods< Impl, ConstImpl >
 
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...
 

Namespaces

 c4
 (Undefined by default) Use shorter error message from checks/asserts: do not show the check condition in the error message.
 
 c4::yml
 
 c4::yml::detail
 a CRTP base providing read-only methods for ConstNodeRef and NodeRef
 

Macros

#define _C4RR()
 
#define _C4RID()
 

Functions

template<class K >
Key< K > c4::yml::key (K &k)
 
Key< fmt::const_base64_wrapper > c4::yml::key (fmt::const_base64_wrapper w)
 
Key< fmt::base64_wrapper > c4::yml::key (fmt::base64_wrapper w)
 
template<class T >
void c4::yml::write (NodeRef *n, T const &v)
 
template<class T >
bool c4::yml::read (ConstNodeRef const &n, T *v)
 
template<class T >
bool c4::yml::read (NodeRef const &n, T *v)
 
template<class T >
bool c4::yml::readkey (ConstNodeRef const &n, T *v)
 
template<class T >
bool c4::yml::readkey (NodeRef const &n, T *v)
 

Detailed Description

Node classes.

Definition in file node.hpp.

Macro Definition Documentation

◆ _C4RR

#define _C4RR ( )
Value:
_RYML_ASSERT_BASIC(m_tree != nullptr); \
_RYML_ASSERT_VISIT_(m_tree->m_callbacks, m_id != NONE && !is_seed(), m_tree, m_id)
@ NONE
an index to none
Definition: common.hpp:251

Definition at line 1023 of file node.hpp.

◆ _C4RID

#define _C4RID ( )
Value:
_RYML_ASSERT_BASIC(m_tree != nullptr); \
_RYML_ASSERT_VISIT_(m_tree->m_callbacks, m_id != NONE, m_tree, m_id)

Definition at line 1027 of file node.hpp.