Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions
xgboost::JsonBoolean Class Reference

Describes both true and false. More...

#include <json.h>

Inheritance diagram for xgboost::JsonBoolean:
xgboost::Value

Public Member Functions

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 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.
 

Detailed Description

Describes both true and false.

Member Function Documentation

◆ 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 files: