Treelite
Public Member Functions | List of all members
ArrayHandler< ElemType, HandlerType > Class Template Reference

handler for array of objects of given type More...

#include <xgboost_json.h>

Inheritance diagram for ArrayHandler< ElemType, HandlerType >:
Inheritance graph
[legend]
Collaboration diagram for ArrayHandler< ElemType, HandlerType >:
Collaboration graph
[legend]

Public Member Functions

bool Bool (ElemType b)
 
template<typename ArgType , typename IntType = ElemType>
std::enable_if< std::is_integral< IntType >::value, bool >::type store_int (ArgType i)
 
template<typename ArgType , typename IntType = ElemType>
std::enable_if<!std::is_integral< IntType >::value, bool >::type store_int (ArgType)
 
bool Int (int i) override
 
bool Uint (unsigned u) override
 
bool Int64 (int64_t i) override
 
bool Uint64 (uint64_t u) override
 
bool Double (ElemType d)
 
template<typename StringType = ElemType>
std::enable_if< std::is_same< StringType, std::string >::value, bool >::type store_string (const char *str, std::size_t length, bool copy)
 
template<typename StringType = ElemType>
std::enable_if<!std::is_same< StringType, std::string >::value, bool >::type store_string (const char *, std::size_t, bool)
 
bool String (const char *str, std::size_t length, bool copy) override
 
bool StartObject (std::true_type)
 
bool StartObject (std::false_type)
 
bool StartObject () override
 
- Public Member Functions inherited from OutputHandler< std::vector< ElemType > >
 OutputHandler (std::weak_ptr< Delegator > parent_delegator, std::vector< ElemType > &output_param)
 construct handler to be added to given delegator's stack More...
 
 OutputHandler (std::weak_ptr< Delegator > parent_delegator, std::vector< ElemType > &&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 Double (double)
 
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)
 

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)
 
- Protected Attributes inherited from OutputHandler< std::vector< ElemType > >
std::vector< ElemType > & output
 

Detailed Description

template<typename ElemType, typename HandlerType = BaseHandler>
class treelite::details::ArrayHandler< ElemType, HandlerType >

handler for array of objects of given type

Definition at line 162 of file xgboost_json.h.


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