Medial Code Documentation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions
xgboost::JsonInteger Class Reference
Inheritance diagram for xgboost::JsonInteger:
xgboost::Value

Public Types

using Int = int64_t
 
- Public Types inherited from xgboost::Value
enum class  ValueKind {
  kString , kNumber , kInteger , kObject ,
  kArray , kBoolean , kNull , kNumberArray ,
  kU8Array , kI32Array , kI64Array
}
 Simplified implementation of LLVM RTTI.
 

Public Member Functions

template<typename IntT , typename std::enable_if< std::is_same< IntT, Int >::value >::type * = nullptr>
 JsonInteger (IntT value)
 
template<typename IntT , typename std::enable_if< std::is_same< IntT, size_t >::value >::type * = nullptr>
 JsonInteger (IntT value)
 
template<typename IntT , typename std::enable_if< std::is_same< IntT, int32_t >::value >::type * = nullptr>
 JsonInteger (IntT value)
 
template<typename IntT , typename std::enable_if< std::is_same< IntT, uint32_t >::value &&!std::is_same< std::size_t, uint32_t >::value >::type * = nullptr>
 JsonInteger (IntT value)
 
 JsonInteger (JsonInteger &&that) noexcept
 
bool operator== (Value const &rhs) const override
 
Int const & GetInteger () &&
 
Int const & GetInteger () const &
 
Int & GetInteger () &
 
void Save (JsonWriter *writer) const override
 
- Public Member Functions inherited from xgboost::Value
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual Jsonoperator[] (std::string const &key)
 
virtual Jsonoperator[] (int ind)
 
virtual Valueoperator= (Value const &rhs)=delete
 
std::string TypeStr () const
 

Static Public Member Functions

static bool IsClassOf (Value const *value)
 

Member Function Documentation

◆ operator==()

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

Implements xgboost::Value.

◆ Save()

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

Implements xgboost::Value.


The documentation for this class was generated from the following files: