rapidyaml 0.15.2
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches

freestanding read() and read_key() implementing ryml's built-in deserialization of fundamental types. More...

Functions

template<class T>
ReadResult c4::yml::read (ConstNodeRef const &n, T *v)
template<class T>
ReadResult c4::yml::read (ConstNodeRef const &n, T const &wrapper)
template<class T>
ReadResult c4::yml::read_key (ConstNodeRef const &n, T *v)
template<class T>
ReadResult c4::yml::read_key (ConstNodeRef const &n, T const &wrapper)

Detailed Description

freestanding read() and read_key() implementing ryml's built-in deserialization of fundamental types.

Function Documentation

◆ read() [1/2]

template<class T>
ReadResult c4::yml::read ( ConstNodeRef const & n,
T * v )
inline

Definition at line 2074 of file node.hpp.

2075{
2076 // defer to the tree implementation
2077 return n.m_tree->deserialize(n.m_id, v);
2078}

Referenced by file_get_contents(), and read().

◆ read() [2/2]

template<class T>
ReadResult c4::yml::read ( ConstNodeRef const & n,
T const & wrapper )
inline

Definition at line 2080 of file node.hpp.

2081{
2082 // defer to the tree implementation
2083 return n.m_tree->deserialize(n.m_id, wrapper);
2084}

◆ read_key() [1/2]

◆ read_key() [2/2]

template<class T>
ReadResult c4::yml::read_key ( ConstNodeRef const & n,
T const & wrapper )
inline

Definition at line 2094 of file node.hpp.

2095{
2096 // defer to the tree implementation
2097 return n.m_tree->deserialize_key(n.m_id, wrapper);
2098}