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

#include <json.h>

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

公共类型

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

公共成员函数

 JsonInteger ()
 
template<typename IntT , typename detail::IsSameT< IntT, Int > * = nullptr>
 JsonInteger (IntT value)
 
template<typename IntT , typename detail::IsSameT< IntT, std::size_t > * = nullptr>
 JsonInteger (IntT value)
 
template<typename IntT , typename detail::IsSameT< IntT, std::int32_t > * = nullptr>
 JsonInteger (IntT value)
 
template<typename IntT , typename detail::Not32SizeT< IntT > * = nullptr>
 JsonInteger (IntT value)
 
 JsonInteger (JsonInteger &&that) noexcept
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override=delete
 
Int const & GetInteger () &&
 
Int const & GetInteger () const &
 
IntGetInteger () &
 
void Save (JsonWriter *writer) const override
 
- 继承自 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)
 

成员类型定义文档

◆ Int

using xgboost::JsonInteger::Int = int64_t

构造函数和析构函数文档

◆ JsonInteger() [1/6]

xgboost::JsonInteger::JsonInteger ( )
inline

◆ JsonInteger() [2/6]

template<typename IntT , typename detail::IsSameT< IntT, Int > * = nullptr>
xgboost::JsonInteger::JsonInteger ( IntT  value)
inline

◆ JsonInteger() [3/6]

template<typename IntT , typename detail::IsSameT< IntT, std::size_t > * = nullptr>
xgboost::JsonInteger::JsonInteger ( IntT  value)
inline

◆ JsonInteger() [4/6]

template<typename IntT , typename detail::IsSameT< IntT, std::int32_t > * = nullptr>
xgboost::JsonInteger::JsonInteger ( IntT  value)
inline

◆ JsonInteger() [5/6]

template<typename IntT , typename detail::Not32SizeT< IntT > * = nullptr>
xgboost::JsonInteger::JsonInteger ( IntT  value)
inline

◆ JsonInteger() [6/6]

xgboost::JsonInteger::JsonInteger ( JsonInteger &&  that)
inlinenoexcept

成员函数文档

◆ GetInteger() [1/3]

Int& xgboost::JsonInteger::GetInteger ( ) &
inline

◆ GetInteger() [2/3]

Int const& xgboost::JsonInteger::GetInteger ( ) &&
inline

◆ GetInteger() [3/3]

Int const& xgboost::JsonInteger::GetInteger ( ) const &
inline

◆ IsClassOf()

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

◆ operator=()

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

重新实现自 xgboost::Value

◆ operator==()

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

实现自 xgboost::Value

◆ Save()

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

实现自 xgboost::Value


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