rapidyaml  0.7.2
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
 
 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 >
std::enable_if< ! std::is_floating_point< T >::value, bool >::type c4::yml::read (NodeRef const &n, T *v)
 convert the val of a scalar node to a floating point type, by forwarding its val to from_chars_float<T>(). More...
 
template<class T >
std::enable_if< std::is_floating_point< T >::value, bool >::type c4::yml::read (NodeRef const &n, T *v)
 convert the val of a scalar node to a floating point type, by forwarding its val to from_chars_float<T>(). More...
 
template<class T >
auto c4::yml::detail::read_skip_plus (csubstr val, T *v) -> typename std::enable_if< std::is_arithmetic< T >::value, bool >::type
 
template<class T >
auto c4::yml::read (NodeRef const &n, T *v) -> typename std::enable_if< ! std::is_floating_point< T >::value, bool >::type
 convert the val of a scalar node to a particular type, by forwarding its val to from_chars<T>(). More...
 
template<class T >
auto c4::yml::read (ConstNodeRef const &n, T *v) -> typename std::enable_if< ! std::is_floating_point< T >::value, bool >::type
 convert the val of a scalar node to a particular type, by forwarding its val to from_chars<T>(). More...
 
template<class T >
std::enable_if< std::is_floating_point< T >::value, bool >::type c4::yml::read (ConstNodeRef const &n, T *v)
 convert the val of a scalar node to a floating point type, by forwarding its val to from_chars_float<T>(). More...
 

Detailed Description

Node classes.

Definition in file node.hpp.

Macro Definition Documentation

◆ _C4RR

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

Definition at line 1002 of file node.hpp.

◆ _C4RID

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

Definition at line 1006 of file node.hpp.