xgboost
Public Member Functions | Static Public Member Functions | List of all members
xgboost::JsonBoolean Class Reference

Describes both true and false. More...

#include <json.h>

Inheritance diagram for xgboost::JsonBoolean:
Inheritance graph
Collaboration diagram for xgboost::JsonBoolean:
Collaboration graph

Public Member Functions

 JsonBoolean ()
 
template<typename Bool , typename std::enable_if< std::is_same< Bool, bool >::value||std::is_same< Bool, bool const >::value >::type * = nullptr>
 JsonBoolean (Bool value)
 
void Save (JsonWriter *writer) override
 
Jsonoperator[] (std::string const &key) override
 
Jsonoperator[] (int ind) override
 
bool const & getBoolean () &&
 
bool const & getBoolean () const &
 
bool & getBoolean () &
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override
 
- Public Member Functions inherited from xgboost::Value
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
std::string TypeStr () const
 

Static Public Member Functions

static bool isClassOf (Value const *value)
 

Additional Inherited Members

- Public Types inherited from xgboost::Value
enum  ValueKind {
  ValueKind::String, ValueKind::Number, ValueKind::Integer, ValueKind::Object,
  ValueKind::Array, ValueKind::Boolean, ValueKind::Null
}
 Simplified implementation of LLVM RTTI. More...
 

Detailed Description

Describes both true and false.

Constructor & Destructor Documentation

◆ JsonBoolean() [1/2]

xgboost::JsonBoolean::JsonBoolean ( )
inline

◆ JsonBoolean() [2/2]

template<typename Bool , typename std::enable_if< std::is_same< Bool, bool >::value||std::is_same< Bool, bool const >::value >::type * = nullptr>
xgboost::JsonBoolean::JsonBoolean ( Bool  value)
inline

Member Function Documentation

◆ getBoolean() [1/3]

bool const& xgboost::JsonBoolean::getBoolean ( ) &&
inline

◆ getBoolean() [2/3]

bool const& xgboost::JsonBoolean::getBoolean ( ) const &
inline

◆ getBoolean() [3/3]

bool& xgboost::JsonBoolean::getBoolean ( ) &
inline

◆ isClassOf()

static bool xgboost::JsonBoolean::isClassOf ( Value const *  value)
inlinestatic

◆ operator=()

Value& xgboost::JsonBoolean::operator= ( Value const &  rhs)
overridevirtual

Implements xgboost::Value.

◆ operator==()

bool xgboost::JsonBoolean::operator== ( Value const &  rhs) const
overridevirtual

Implements xgboost::Value.

◆ operator[]() [1/2]

Json& xgboost::JsonBoolean::operator[] ( std::string const &  key)
overridevirtual

Implements xgboost::Value.

◆ operator[]() [2/2]

Json& xgboost::JsonBoolean::operator[] ( int  ind)
overridevirtual

Implements xgboost::Value.

◆ Save()

void xgboost::JsonBoolean::Save ( JsonWriter writer)
overridevirtual

Implements xgboost::Value.


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