#include <json.hpp>
|
template<typename Value > |
std::pair< bool, BasicJsonType * > | handle_value (Value &&v, const bool skip_callback=false) |
|
◆ binary_t
template<typename BasicJsonType , typename InputAdapterType >
◆ lexer_t
template<typename BasicJsonType , typename InputAdapterType >
◆ number_float_t
template<typename BasicJsonType , typename InputAdapterType >
◆ number_integer_t
template<typename BasicJsonType , typename InputAdapterType >
◆ number_unsigned_t
template<typename BasicJsonType , typename InputAdapterType >
◆ parse_event_t
template<typename BasicJsonType , typename InputAdapterType >
◆ parser_callback_t
template<typename BasicJsonType , typename InputAdapterType >
◆ string_t
template<typename BasicJsonType , typename InputAdapterType >
◆ json_sax_dom_callback_parser() [1/3]
template<typename BasicJsonType , typename InputAdapterType >
◆ json_sax_dom_callback_parser() [2/3]
template<typename BasicJsonType , typename InputAdapterType >
◆ json_sax_dom_callback_parser() [3/3]
template<typename BasicJsonType , typename InputAdapterType >
◆ ~json_sax_dom_callback_parser()
template<typename BasicJsonType , typename InputAdapterType >
◆ binary()
template<typename BasicJsonType , typename InputAdapterType >
◆ boolean()
template<typename BasicJsonType , typename InputAdapterType >
◆ end_array()
template<typename BasicJsonType , typename InputAdapterType >
◆ end_object()
template<typename BasicJsonType , typename InputAdapterType >
◆ handle_value()
template<typename BasicJsonType , typename InputAdapterType >
template<typename Value >
- Parameters
-
[in] | v | value to add to the JSON value we build during parsing |
[in] | skip_callback | whether we should skip calling the callback function; this is required after start_array() and start_object() SAX events, because otherwise we would call the callback function with an empty array or object, respectively. |
- Invariant
- If the ref stack is empty, then the passed value will be the new root.
-
If the ref stack contains a value, then it is an array or an object to which we can add elements
- Returns
- pair of boolean (whether value should be kept) and pointer (to the passed value in the ref_stack hierarchy; nullptr if not kept)
◆ is_errored()
template<typename BasicJsonType , typename InputAdapterType >
◆ key()
template<typename BasicJsonType , typename InputAdapterType >
◆ null()
template<typename BasicJsonType , typename InputAdapterType >
◆ number_float()
template<typename BasicJsonType , typename InputAdapterType >
◆ number_integer()
template<typename BasicJsonType , typename InputAdapterType >
◆ number_unsigned()
template<typename BasicJsonType , typename InputAdapterType >
◆ operator=() [1/2]
template<typename BasicJsonType , typename InputAdapterType >
◆ operator=() [2/2]
template<typename BasicJsonType , typename InputAdapterType >
◆ parse_error()
template<typename BasicJsonType , typename InputAdapterType >
template<class Exception >
◆ start_array()
template<typename BasicJsonType , typename InputAdapterType >
◆ start_object()
template<typename BasicJsonType , typename InputAdapterType >
◆ string()
template<typename BasicJsonType , typename InputAdapterType >
◆ allow_exceptions
template<typename BasicJsonType , typename InputAdapterType >
whether to throw exceptions in case of errors
◆ callback
template<typename BasicJsonType , typename InputAdapterType >
◆ discarded
template<typename BasicJsonType , typename InputAdapterType >
a discarded value for the callback
◆ errored
template<typename BasicJsonType , typename InputAdapterType >
whether a syntax error occurred
◆ keep_stack
template<typename BasicJsonType , typename InputAdapterType >
stack to manage which values to keep
◆ key_keep_stack
template<typename BasicJsonType , typename InputAdapterType >
stack to manage which object keys to keep
◆ m_lexer_ref
template<typename BasicJsonType , typename InputAdapterType >
the lexer reference to obtain the current position
◆ object_element
template<typename BasicJsonType , typename InputAdapterType >
helper to hold the reference for the next object element
◆ ref_stack
template<typename BasicJsonType , typename InputAdapterType >
stack to model hierarchy of values
◆ root
template<typename BasicJsonType , typename InputAdapterType >
The documentation for this class was generated from the following file:
- /home/runner/work/NDDEM/NDDEM/src/Dem/json.hpp