|
rapidyaml 0.14.0
parse and emit YAML, and do it fast
|
Helper utilities used in the sample. More...
Topics | |
| Serialize/deserialize scalar types | |
| Serialize/deserialize container types | |
| To serialize/deserialize container types to a tree, implement the appropriate functions: | |
Classes | |
| struct | ErrorHandlerExample |
| an example error handler, required for some of the quickstart examples. More... | |
| struct | ScopedErrorHandlerExample |
| Shows how to create a scoped error handler. More... | |
| struct | GlobalAllocatorExample |
| struct | PerTreeMemoryExample |
| an example for a per-tree memory allocator More... | |
Macros | |
| #define | CHECK(predicate) |
| a quick'n'dirty assertion to verify a predicate | |
Functions | |
| void | ensure_callbacks () |
| set up default callbacks when ryml does not provide them (ie when RYML_NO_DEFAULT_CALLBACKS is defined) | |
| ryml::Callbacks | default_callbacks () |
| a bare-bones implementation of the callbacks | |
| bool | report_check (int line, const char *predicate, bool result) |
| void | handle_args (int argc, const char *argv[]) |
| int | report_checks () |
| template<class Fn> | |
| bool | ErrorHandlerExample::check_assertion_occurs (Fn &&fn) |
| checking that an assertion occurs while calling fn. | |
| template<class Fn> | |
| bool | ErrorHandlerExample::check_error_occurs (Fn &&fn) |
| checking that an error occurs while calling fn | |
| void | ErrorHandlerExample::on_error_basic (ryml::csubstr msg, ryml::ErrorDataBasic const &errdata) |
| this is where the callback implementation goes. | |
| void | ErrorHandlerExample::on_error_parse (ryml::csubstr msg, ryml::ErrorDataParse const &errdata) |
| this is where the callback implementation goes. | |
| void | ErrorHandlerExample::on_error_visit (ryml::csubstr msg, ryml::ErrorDataVisit const &errdata) |
| this is where the callback implementation goes. | |
| static void | ErrorHandlerExample::s_error_basic (ryml::csubstr msg, ryml::ErrorDataBasic const &errdata, void *this_) |
| trampoline function to call the object's method | |
| static void | ErrorHandlerExample::s_error_parse (ryml::csubstr msg, ryml::ErrorDataParse const &errdata, void *this_) |
| trampoline function to call the object's method | |
| static void | ErrorHandlerExample::s_error_visit (ryml::csubstr msg, ryml::ErrorDataVisit const &errdata, void *this_) |
| trampoline function to call the object's method | |
| ryml::Callbacks | ErrorHandlerExample::callbacks () |
| a helper to create the Callbacks object for the custom error handler | |
| void | ErrorHandlerExample::check_enabled () const |
| test that this handler is currently set | |
| void | ErrorHandlerExample::check_disabled () const |
| test that this handler is currently not set | |
Variables | |
| static std::jmp_buf | s_jmp_env |
| static std::string | s_jmp_msg |
Helper utilities used in the sample.
| #define CHECK | ( | predicate | ) |
a quick'n'dirty assertion to verify a predicate
Definition at line 305 of file quickstart.cpp.
| void ensure_callbacks | ( | ) |
set up default callbacks when ryml does not provide them (ie when RYML_NO_DEFAULT_CALLBACKS is defined)
Definition at line 6376 of file quickstart.cpp.
| ryml::Callbacks default_callbacks | ( | ) |
a bare-bones implementation of the callbacks
Definition at line 6336 of file quickstart.cpp.
| bool report_check | ( | int | line, |
| const char * | predicate, | ||
| bool | result ) |
Definition at line 6282 of file quickstart.cpp.
| void handle_args | ( | int | argc, |
| const char * | argv[] ) |
Definition at line 6272 of file quickstart.cpp.
| int report_checks | ( | ) |
Definition at line 6299 of file quickstart.cpp.
| bool ErrorHandlerExample::check_assertion_occurs | ( | Fn && | fn | ) |
checking that an assertion occurs while calling fn.
assertions are enabled if RYML_USE_ASSERT is defined.
Definition at line 6397 of file quickstart.cpp.
| bool ErrorHandlerExample::check_error_occurs | ( | Fn && | fn | ) |
checking that an error occurs while calling fn
Definition at line 6409 of file quickstart.cpp.
| void ErrorHandlerExample::on_error_basic | ( | ryml::csubstr | msg, |
| ryml::ErrorDataBasic const & | errdata ) |
this is where the callback implementation goes.
Remember that it must not return.
Definition at line 6457 of file quickstart.cpp.
| void ErrorHandlerExample::on_error_parse | ( | ryml::csubstr | msg, |
| ryml::ErrorDataParse const & | errdata ) |
this is where the callback implementation goes.
Remember that it must not return.
Definition at line 6473 of file quickstart.cpp.
| void ErrorHandlerExample::on_error_visit | ( | ryml::csubstr | msg, |
| ryml::ErrorDataVisit const & | errdata ) |
this is where the callback implementation goes.
Remember that it must not return.
Definition at line 6495 of file quickstart.cpp.
|
static |
trampoline function to call the object's method
Definition at line 6517 of file quickstart.cpp.
|
static |
trampoline function to call the object's method
Definition at line 6522 of file quickstart.cpp.
|
static |
trampoline function to call the object's method
Definition at line 6527 of file quickstart.cpp.
| ryml::Callbacks ErrorHandlerExample::callbacks | ( | ) |
a helper to create the Callbacks object for the custom error handler
Definition at line 6536 of file quickstart.cpp.
| void ErrorHandlerExample::check_enabled | ( | ) | const |
test that this handler is currently set
Definition at line 6547 of file quickstart.cpp.
| void ErrorHandlerExample::check_disabled | ( | ) | const |
test that this handler is currently not set
Definition at line 6557 of file quickstart.cpp.
|
static |
Definition at line 6389 of file quickstart.cpp.
|
static |
Definition at line 6390 of file quickstart.cpp.