rapidyaml  0.16.0
parseandemitYAML,anddoitfast

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

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

Definition at line 2074 of file node.hpp.

Referenced by c4::yml::file_get_contents(), and c4::yml::read().

2075 {
2076  // defer to the tree implementation
2077  return n.m_tree->deserialize(n.m_id, v);
2078 }
template<class T >
ReadResult c4::yml::read ( ConstNodeRef const &  n,
T const &  wrapper 
)
inline

Definition at line 2080 of file node.hpp.

Referenced by c4::yml::detail::RoNodeMethods< NodeRef, ConstNodeRef >::deserialize(), and c4::yml::detail::RoNodeMethods< NodeRef, ConstNodeRef >::load().

2081 {
2082  // defer to the tree implementation
2083  return n.m_tree->deserialize(n.m_id, wrapper);
2084 }
template<class T >
ReadResult c4::yml::read_key ( ConstNodeRef const &  n,
T *  v 
)
inline

Definition at line 2088 of file node.hpp.

2089 {
2090  // defer to the tree implementation
2091  return n.m_tree->deserialize_key(n.m_id, v);
2092 }
template<class T >
ReadResult c4::yml::read_key ( ConstNodeRef const &  n,
T const &  wrapper 
)
inline

Definition at line 2094 of file node.hpp.

Referenced by c4::yml::detail::RoNodeMethods< NodeRef, ConstNodeRef >::deserialize_key(), and c4::yml::detail::RoNodeMethods< NodeRef, ConstNodeRef >::load_key().

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