Treelite
|
handler which delegates JSON parsing to stack of delegates More...
#include <xgboost_json.h>
Public Member Functions | |
void | push_delegate (std::shared_ptr< BaseHandler > new_delegate) override |
push new handler onto stack, delegating ongoing parsing to it More... | |
void | pop_delegate () override |
pop handler off of stack, returning parsing responsibility to previous handler on stack | |
ParsedXGBoostModel | get_result () |
bool | Null () |
bool | Bool (bool b) |
bool | Int (int i) |
bool | Uint (unsigned u) |
bool | Int64 (int64_t i) |
bool | Uint64 (uint64_t u) |
bool | Double (double d) |
bool | String (const char *str, std::size_t length, bool copy) |
bool | StartObject () |
bool | Key (const char *str, std::size_t length, bool copy) |
bool | EndObject (std::size_t memberCount) |
bool | StartArray () |
bool | EndArray (std::size_t elementCount) |
Static Public Member Functions | |
static std::shared_ptr< DelegatedHandler > | create_empty () |
create DelegatedHandler with empty stack | |
static std::shared_ptr< DelegatedHandler > | create () |
create DelegatedHandler with initial RootHandler on stack | |
handler which delegates JSON parsing to stack of delegates
Definition at line 349 of file xgboost_json.h.
|
inlineoverridevirtual |
push new handler onto stack, delegating ongoing parsing to it
new_delegate | the delegate to push onto stack |
Implements Delegator.
Definition at line 373 of file xgboost_json.h.