|
rapidyaml
0.13.0
parse and emit YAML, and do it fast
|
To serialize/deserialize container types to a tree, implement the appropriate functions: More...
Classes | |
| struct | my_seq_type< T > |
| example user container type: seq-like More... | |
| struct | my_map_type< K, V > |
| example user container type: map-like More... | |
| struct | my_type |
| example user container type with nested container members. More... | |
Functions | |
| template<class T > | |
| void | write (ryml::NodeRef *n, my_seq_type< T > const &seq) |
| template<class K , class V > | |
| void | write (ryml::NodeRef *n, my_map_type< K, V > const &map) |
| void | write (ryml::NodeRef *n, my_type const &val) |
| template<class T > | |
| bool | read (ryml::ConstNodeRef const &n, my_seq_type< T > *seq) |
| template<class K , class V > | |
| bool | read (ryml::ConstNodeRef const &n, my_map_type< K, V > *map) |
| bool | read (ryml::ConstNodeRef const &n, my_type *val) |
To serialize/deserialize container types to a tree, implement the appropriate functions:
write() or read() implementation before any other headers that use functions from it. See the include order at the top of this source file. This constraint also applies to the conversion functions for your types; just like with the STL's headers, they should be included prior to ryml's headers. Lately, some effort was directed to provide forward declarations to alleviate this problem, but it may still occur.| void write | ( | ryml::NodeRef * | n, |
| my_seq_type< T > const & | seq | ||
| ) |
Definition at line 3764 of file quickstart.cpp.
| void write | ( | ryml::NodeRef * | n, |
| my_map_type< K, V > const & | map | ||
| ) |
Definition at line 3771 of file quickstart.cpp.
| void write | ( | ryml::NodeRef * | n, |
| my_type const & | val | ||
| ) |
Definition at line 3777 of file quickstart.cpp.
| bool read | ( | ryml::ConstNodeRef const & | n, |
| my_seq_type< T > * | seq | ||
| ) |
Definition at line 3790 of file quickstart.cpp.
| bool read | ( | ryml::ConstNodeRef const & | n, |
| my_map_type< K, V > * | map | ||
| ) |
Definition at line 3799 of file quickstart.cpp.
| bool read | ( | ryml::ConstNodeRef const & | n, |
| my_type * | val | ||
| ) |
Definition at line 3810 of file quickstart.cpp.