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)
 
 JsonBoolean (JsonBoolean &&value) noexcept
 
void Save (JsonWriter *writer) const override
 
bool const & GetBoolean () &&
 
bool const & GetBoolean () const &
 
bool & GetBoolean () &
 
bool operator== (Value const &rhs) const override
 
- Public Member Functions inherited from xgboost::Value
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
virtual Jsonoperator[] (std::string const &key)
 
virtual Jsonoperator[] (int ind)
 
virtual Valueoperator= (Value const &rhs)=delete
 
std::string TypeStr () const
 

Static Public Member Functions

static bool IsClassOf (Value const *value)
 

Additional Inherited Members

- Public Types inherited from xgboost::Value
enum class  ValueKind {
  kString , kNumber , kInteger , kObject ,
  kArray , kBoolean , kNull , kNumberArray ,
  kU8Array , kI32Array , kI64Array
}
 Simplified implementation of LLVM RTTI. More...
 

Detailed Description

Describes both true and false.

Constructor & Destructor Documentation

◆ JsonBoolean() [1/3]

xgboost::JsonBoolean::JsonBoolean ( )
inline

◆ JsonBoolean() [2/3]

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

◆ JsonBoolean() [3/3]

xgboost::JsonBoolean::JsonBoolean ( JsonBoolean &&  value)
inlinenoexcept

Member Function Documentation

◆ GetBoolean() [1/3]

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

◆ GetBoolean() [2/3]

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

◆ GetBoolean() [3/3]

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

◆ IsClassOf()

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

◆ operator==()

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

Implements xgboost::Value.

◆ Save()

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

Implements xgboost::Value.


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