|
rapidyaml
0.16.0
parseandemitYAML,anddoitfast
|
Functions | |
| void | sample_iterate_tree () |
| visit individual nodes and iterate through trees More... | |
| void | sample_location_tracking () |
| track node YAML source locations in the parsed tree More... | |
| void | sample_create_tree () |
| programatically create trees More... | |
| void | sample_create_tree_style () |
| set node styles while creating trees More... | |
| void | sample_tree_arena () |
| interact with the tree's serialization arena More... | |
| void sample_iterate_tree | ( | ) |
visit individual nodes and iterate through trees
shows how to programatically iterate through trees
Definition at line 2398 of file quickstart.cpp.
Referenced by main().
| void sample_location_tracking | ( | ) |
track node YAML source locations in the parsed tree
demonstrates how to obtain the (zero-based) location of a node from a recently parsed tree
Definition at line 2471 of file quickstart.cpp.
Referenced by main().
| void sample_create_tree | ( | ) |
programatically create trees
shows how to programatically create trees
Definition at line 2654 of file quickstart.cpp.
Referenced by main().
| void sample_create_tree_style | ( | ) |
set node styles while creating trees
Shows how to set styles when building a tree: this may be needed because you want to control the emitted YAML, but for scalars there is also a performance reason to do this.
Following this recommendation, ryml also explicitly sets the styles while parsing.
Definition at line 2764 of file quickstart.cpp.
Referenced by main().
| void sample_tree_arena | ( | ) |
interact with the tree's serialization arena
demonstrates explicit and implicit interaction with the tree's string arena.
Note that ryml only holds strings in the tree's nodes.
Definition at line 2852 of file quickstart.cpp.
Referenced by main().