xgboost
公共类型 | 公共成员函数 | 友元 | 所有成员列表
xgboost::Value 类参考抽象

#include <json.h>

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

公共类型

枚举类  ValueKind {
  kString , kNumber , kInteger , kObject ,
  kArray , kBoolean , kNull , kF32Array ,
  kF64Array , kI8Array , kU8Array , kI16Array ,
  kI32Array , kI64Array
}
 LLVM RTTI 的简化实现。 更多...
 

公共成员函数

 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
virtual void Save (JsonWriter *writer) const =0
 
virtual Jsonoperator[] (std::string const &key)
 
virtual Jsonoperator[] (int ind)
 
virtual bool operator== (Value const &rhs) const =0
 
virtual Valueoperator= (Value const &rhs)=delete
 
std::string TypeStr () const
 

友元

IntrusivePtrCellIntrusivePtrRefCount (xgboost::Value const *t) noexcept
 

成员枚举文档

◆ ValueKind

LLVM RTTI 的简化实现。

枚举成员
kString 
kNumber 
kInteger 
kObject 
kArray 
kBoolean 
kNull 
kF32Array 
kF64Array 
kI8Array 
kU8Array 
kI16Array 
kI32Array 
kI64Array 

构造函数和析构函数文档

◆ Value()

xgboost::Value::Value ( ValueKind  _kind)
inlineexplicit

◆ ~Value()

virtual xgboost::Value::~Value ( )
virtualdefault

成员函数文档

◆ operator=()

virtual Value& xgboost::Value::operator= ( Value const &  rhs)
virtualdelete

◆ operator==()

virtual bool xgboost::Value::operator== ( Value const &  rhs) const
pure virtual

◆ operator[]() [1/2]

virtual Json& xgboost::Value::operator[] ( int  ind)
virtual

xgboost::JsonObjectxgboost::JsonArray 中重新实现。

◆ operator[]() [2/2]

virtual Json& xgboost::Value::operator[] ( std::string const &  key)
virtual

xgboost::JsonObjectxgboost::JsonArray 中重新实现。

◆ Save()

virtual void xgboost::Value::Save ( JsonWriter writer) const
pure virtual

◆ Type()

ValueKind xgboost::Value::Type ( ) const
inline

◆ TypeStr()

std::string xgboost::Value::TypeStr ( ) const

友元及相关函数文档

◆ IntrusivePtrRefCount

IntrusivePtrCell& IntrusivePtrRefCount ( xgboost::Value const *  t)
friend

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