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

#include <json.h>

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

公共类型

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

公共成员函数

 JsonNumber ()
 
template<typename FloatT , typename detail::IsSameT< FloatT, Float > * = nullptr>
 JsonNumber (FloatT value)
 
template<typename FloatT , typename detail::IsF64T< FloatT > * = nullptr>
 JsonNumber (FloatT value)
 
 JsonNumber (JsonNumber const &that)=delete
 
 JsonNumber (JsonNumber &&that) noexcept
 
void Save (JsonWriter *writer) const override
 
Float const & GetNumber () &&
 
Float const & GetNumber () const &
 
FloatGetNumber () &
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override=delete
 
- 从 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)
 

成员类型定义文档

◆ Float

构造函数与析构函数文档

◆ JsonNumber() [1/5]

xgboost::JsonNumber::JsonNumber ( )
inline

◆ JsonNumber() [2/5]

template<typename FloatT , typename detail::IsSameT< FloatT, Float > * = nullptr>
xgboost::JsonNumber::JsonNumber ( FloatT  value)
inline

◆ JsonNumber() [3/5]

template<typename FloatT , typename detail::IsF64T< FloatT > * = nullptr>
xgboost::JsonNumber::JsonNumber ( FloatT  value)
inline

◆ JsonNumber() [4/5]

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

◆ JsonNumber() [5/5]

xgboost::JsonNumber::JsonNumber ( JsonNumber &&  that)
inlinenoexcept

成员函数文档

◆ GetNumber() [1/3]

Float& xgboost::JsonNumber::GetNumber ( ) &
inline

◆ GetNumber() [2/3]

Float const& xgboost::JsonNumber::GetNumber ( ) &&
inline

◆ GetNumber() [3/3]

Float const& xgboost::JsonNumber::GetNumber ( ) const &
inline

◆ IsClassOf()

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

◆ operator=()

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

重新实现自 xgboost::Value

◆ operator==()

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

实现自 xgboost::Value

◆ Save()

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

实现自 xgboost::Value


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