Treelite
Public Member Functions | Protected Attributes | List of all members
OutputHandler< OutputType > Class Template Reference

base handler for updating some output object More...

#include <xgboost_json.h>

Inheritance diagram for OutputHandler< OutputType >:
Inheritance graph
[legend]
Collaboration diagram for OutputHandler< OutputType >:
Collaboration graph
[legend]

Public Member Functions

 OutputHandler (std::weak_ptr< Delegator > parent_delegator, OutputType &output_param)
 construct handler to be added to given delegator's stack More...
 
 OutputHandler (std::weak_ptr< Delegator > parent_delegator, OutputType &&output)=delete
 
- Public Member Functions inherited from BaseHandler
 BaseHandler (std::weak_ptr< Delegator > parent_delegator)
 construct handler to be added to given delegator's stack More...
 
virtual bool Null ()
 
virtual bool Bool (bool)
 
virtual bool Int (int)
 
virtual bool Uint (unsigned)
 
virtual bool Int64 (int64_t)
 
virtual bool Uint64 (uint64_t)
 
virtual bool Double (double)
 
virtual bool String (const char *, std::size_t, bool)
 
virtual bool StartObject ()
 
virtual bool Key (const char *str, std::size_t length, bool)
 
virtual bool EndObject (std::size_t)
 
virtual bool StartArray ()
 
virtual bool EndArray (std::size_t)
 

Protected Attributes

OutputType & output
 

Additional Inherited Members

- Protected Member Functions inherited from BaseHandler
template<typename HandlerType , typename... ArgsTypes>
bool push_handler (ArgsTypes &... args)
 
template<typename HandlerType , typename... ArgsTypes>
bool push_key_handler (std::string key, ArgsTypes &... args)
 
bool pop_handler ()
 
void set_cur_key (const char *str, std::size_t length)
 
const std::string & get_cur_key ()
 
bool check_cur_key (const std::string &query_key)
 
template<typename ValueType >
bool assign_value (const std::string &key, ValueType &&value, ValueType &output)
 
template<typename ValueType >
bool assign_value (const std::string &key, const ValueType &value, ValueType &output)
 

Detailed Description

template<typename OutputType>
class treelite::details::OutputHandler< OutputType >

base handler for updating some output object

Definition at line 142 of file xgboost_json.h.

Constructor & Destructor Documentation

◆ OutputHandler()

OutputHandler ( std::weak_ptr< Delegator parent_delegator,
OutputType &  output_param 
)
inline

construct handler to be added to given delegator's stack

Parameters
parent_delegatorpointer to Delegator for this handler
outputthe object to be modified during parsing

Definition at line 149 of file xgboost_json.h.


The documentation for this class was generated from the following file: