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

#include <json.h>

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

公共成员函数

 JsonArray ()
 
 JsonArray (std::vector< Json > &&arr) noexcept
 
 JsonArray (std::vector< Json > const &arr)
 
 JsonArray (JsonArray const &that)=delete
 
 JsonArray (JsonArray &&that) noexcept
 
void Save (JsonWriter *writer) const override
 
Jsonoperator[] (int ind) override
 
Jsonoperator[] (std::string const &key) override
 
std::vector< Json > const & GetArray () &&
 
std::vector< Json > const & GetArray () const &
 
std::vector< Json > & GetArray () &
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override=delete
 
- 继承自 xgboost::Value 的公共成员函数
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
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 的简化实现。 更多...
 

构造函数和析构函数文档

◆ JsonArray() [1/5]

xgboost::JsonArray::JsonArray ( )
inline

◆ JsonArray() [2/5]

xgboost::JsonArray::JsonArray ( std::vector< Json > &&  arr)
inlinenoexcept

◆ JsonArray() [3/5]

xgboost::JsonArray::JsonArray ( std::vector< Json > const &  arr)
inline

◆ JsonArray() [4/5]

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

◆ JsonArray() [5/5]

xgboost::JsonArray::JsonArray ( JsonArray &&  that)
noexcept

成员函数文档

◆ GetArray() [1/3]

std::vector<Json>& xgboost::JsonArray::GetArray ( ) &
inline

◆ GetArray() [2/3]

std::vector<Json> const& xgboost::JsonArray::GetArray ( ) &&
inline

◆ GetArray() [3/3]

std::vector<Json> const& xgboost::JsonArray::GetArray ( ) const &
inline

◆ IsClassOf()

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

◆ operator=()

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

重新实现自 xgboost::Value

◆ operator==()

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

实现自 xgboost::Value

◆ operator[]() [1/2]

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

重新实现自 xgboost::Value

◆ operator[]() [2/2]

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

重新实现自 xgboost::Value

◆ Save()

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

实现自 xgboost::Value


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