|
rapidyaml
0.7.0
parse and emit YAML, and do it fast
|
a c-style callbacks class. More...
#include <common.hpp>
Public Member Functions | |
| Callbacks () | |
| Construct an object with the default callbacks. More... | |
| Callbacks (void *user_data, pfn_allocate alloc, pfn_free free, pfn_error error) | |
| Construct an object with the given callbacks. More... | |
| bool | operator!= (Callbacks const &that) const |
| bool | operator== (Callbacks const &that) const |
Public Attributes | |
| void * | m_user_data |
| pfn_allocate | m_allocate |
| pfn_free | m_free |
| pfn_error | m_error |
a c-style callbacks class.
Can be used globally by the library and/or locally by Tree and Parser objects.
Definition at line 374 of file common.hpp.
| c4::yml::Callbacks::Callbacks | ( | ) |
Construct an object with the default callbacks.
If RYML_NO_DEFAULT_CALLBACKS is defined, the object will have null members.
Definition at line 79 of file common.cpp.
| c4::yml::Callbacks::Callbacks | ( | void * | user_data, |
| pfn_allocate | alloc, | ||
| pfn_free | free, | ||
| pfn_error | error | ||
| ) |
Construct an object with the given callbacks.
| user_data | Data to be forwarded in every call to a callback. |
| alloc | A pointer to an allocate function. Unless RYML_NO_DEFAULT_CALLBACKS is defined, when this parameter is null, will fall back to ryml's default alloc implementation. |
| free | A pointer to a free function. Unless RYML_NO_DEFAULT_CALLBACKS is defined, when this parameter is null, will fall back to ryml's default free implementation. |
| error | A pointer to an error function, which must never return (see pfn_error). Unless RYML_NO_DEFAULT_CALLBACKS is defined, when this parameter is null, will fall back to ryml's default error implementation. |
Definition at line 94 of file common.cpp.
References m_allocate, m_error, and m_free.
|
inline |
Definition at line 408 of file common.hpp.
References c4::operator==().
|
inline |
| void* c4::yml::Callbacks::m_user_data |
Definition at line 376 of file common.hpp.
Referenced by sample::PerTreeMemoryExample::callbacks(), c4::yml::error(), and operator==().
| pfn_allocate c4::yml::Callbacks::m_allocate |
Definition at line 377 of file common.hpp.
Referenced by Callbacks(), sample::PerTreeMemoryExample::callbacks(), sample::ErrorHandlerExample::check_effect(), operator==(), and sample::sample_global_allocator().
| pfn_free c4::yml::Callbacks::m_free |
Definition at line 378 of file common.hpp.
Referenced by Callbacks(), sample::PerTreeMemoryExample::callbacks(), sample::ErrorHandlerExample::check_effect(), operator==(), and sample::sample_global_allocator().
| pfn_error c4::yml::Callbacks::m_error |
Definition at line 379 of file common.hpp.
Referenced by Callbacks(), sample::ErrorHandlerExample::check_effect(), c4::yml::error(), and operator==().