xgboost
公共成员函数 | 静态公共成员函数 | 所有成员列表
xgboost::JsonBoolean 类参考

描述 true 和 false。 更多...

#include <json.h>

xgboost::JsonBoolean 的继承图
Inheritance graph
xgboost::JsonBoolean 的协作图
Collaboration graph

公共成员函数

 JsonBoolean ()
 
template<typename Bool , typename detail::IsSameT< std::remove_cv_t< Bool >, bool > * = 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
 
Valueoperator= (Value const &rhs) override=delete
 
- 从 xgboost::Value 继承的公共成员函数
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
virtual Jsonoperator[] (std::string const &key)
 
virtual Jsonoperator[] (int ind)
 
std::string TypeStr () const
 

静态公共成员函数

static bool IsClassOf (Value const *value)
 

附加继承成员

- 从 xgboost::Value 继承的公共类型
enum class  ValueKind {
  kString , kNumber , kInteger , kObject ,
  kArray , kBoolean , kNull , kF32Array ,
  kF64Array , kI8Array , kU8Array , kI16Array ,
  kI32Array , kI64Array
}
 LLVM RTTI 的简化实现。 更多...
 

详细描述

描述 true 和 false。

构造函数和析构函数文档

◆ JsonBoolean() [1/3]

xgboost::JsonBoolean::JsonBoolean ( )
inline

◆ JsonBoolean() [2/3]

template<typename Bool , typename detail::IsSameT< std::remove_cv_t< Bool >, bool > * = nullptr>
xgboost::JsonBoolean::JsonBoolean ( Bool  value)
inline

◆ JsonBoolean() [3/3]

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

成员函数文档

◆ 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=()

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

重新实现自 xgboost::Value

◆ operator==()

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

实现 xgboost::Value

◆ Save()

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

实现 xgboost::Value


本类的文档生成自以下文件