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

#include <json.h>

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

公有类型

using Map = std::map< std::string, Json, std::less<> >
 
- 继承自 xgboost::Value 的公有类型
enum class  ValueKind {
  kString , kNumber , kInteger , kObject ,
  kArray , kBoolean , kNull , kF32Array ,
  kF64Array , kI8Array , kU8Array , kI16Array ,
  kI32Array , kI64Array
}
 LLVM RTTI 的简化实现。更多...
 

公有成员函数

 JsonObject ()
 
 JsonObject (Map &&object) noexcept
 
 JsonObject (JsonObject const &that)=delete
 
 JsonObject (JsonObject &&that) noexcept
 
void Save (JsonWriter *writer) const override
 
Jsonoperator[] (int ind) override
 
Jsonoperator[] (std::string const &key) override
 
Map const & GetObject () &&
 
Map const & GetObject () const &
 
MapGetObject () &
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override=delete
 
 ~JsonObject () override=default
 
- 继承自 xgboost::Value 的公有成员函数
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
std::string TypeStr () const
 

静态公有成员函数

static bool IsClassOf (Value const *value)
 

成员类型定义文档

◆ Map

using xgboost::JsonObject::Map = std::map<std::string, Json, std::less<> >

构造函数与析构函数文档

◆ JsonObject() [1/4]

xgboost::JsonObject::JsonObject ( )
inline

◆ JsonObject() [2/4]

xgboost::JsonObject::JsonObject ( Map &&  object)
noexcept

◆ JsonObject() [3/4]

xgboost::JsonObject::JsonObject ( JsonObject const &  that)
delete

◆ JsonObject() [4/4]

xgboost::JsonObject::JsonObject ( JsonObject &&  that)
noexcept

◆ ~JsonObject()

xgboost::JsonObject::~JsonObject ( )
overridedefault

成员函数文档

◆ GetObject() [1/3]

Map& xgboost::JsonObject::GetObject ( ) &
inline

◆ GetObject() [2/3]

Map const& xgboost::JsonObject::GetObject ( ) &&
inline

◆ GetObject() [3/3]

Map const& xgboost::JsonObject::GetObject ( ) const &
inline

◆ IsClassOf()

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

◆ operator=()

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

重新实现自 xgboost::Value.

◆ operator==()

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

实现 xgboost::Value.

◆ operator[]() [1/2]

Json& xgboost::JsonObject::operator[] ( int  ind)
inlineoverridevirtual

重新实现自 xgboost::Value.

◆ operator[]() [2/2]

Json& xgboost::JsonObject::operator[] ( std::string const &  key)
inlineoverridevirtual

重新实现自 xgboost::Value.

◆ Save()

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

实现 xgboost::Value.


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