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

#include <json.h>

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

公共成员函数

 JsonArray ()
 
 JsonArray (std::vector< Json > &&arr) 无异常
 
 JsonArray (std::vector< Json > const &arr)
 
 JsonArray (JsonArray const &that)=delete
 
 JsonArray (JsonArray &&that) 无异常
 
void Save (JsonWriter *writer) const 覆盖
 
Jsonoperator[] (int ind) 覆盖
 
Jsonoperator[] (std::string const &key) 覆盖
 
std::vector< Json > const & GetArray () &&
 
std::vector< Json > const & GetArray () const &
 
std::vector< Json > & GetArray () &
 
bool operator== (Value const &rhs) const 覆盖
 
operator= (Value const &rhs) 覆盖=delete
 
- 从 xgboost::Value 继承的公共成员函数
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
std::string TypeStr () const
 

静态公共成员函数

static bool IsClassOf (Value const *value)
 

附加继承成员

- 从 xgboost::Value 继承的公共类型
枚举类  ValueKind : std::int64_t {
  kString = 0 , kNumber = 1 , kInteger = 2 , kObject = 3 ,
  kArray = 4 , kBoolean = 5 , kNull = 6 , kF32Array = 7 ,
  kF64Array = 8 , kI8Array = 9 , kU8Array = 10 , kI16Array = 11 ,
  kU16Array = 12 , kI32Array = 13 , kU32Array = 14 , kI64Array = 15 ,
  kU64Array = 16
}
 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)
删除

◆ 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  索引)
inlineoverridevirtual

xgboost::Value 重新实现。

◆ operator[]() [2/2]

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

xgboost::Value 重新实现。

◆ Save()

void xgboost::JsonArray::Save ( JsonWriter 写入器) const
overridevirtual

实现自 xgboost::Value


此类的文档由以下文件生成