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

Public Types

using Map = std::map< std::string, Json, std::less<> >
 
- 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

 JsonObject (Map &&object) noexcept
 
 JsonObject (JsonObject const &that)=delete
 
 JsonObject (JsonObject &&that) noexcept
 
void Save (JsonWriter *writer) const override
 
Jsonoperator[] (int ind) override
 
Jsonoperator[] (std::string const &key) override
 
Map const & GetObject () &&
 
Map const & GetObject () const &
 
Map & GetObject () &
 
bool operator== (Value const &rhs) const override
 
- Public Member Functions inherited from xgboost::Value
 Value (ValueKind _kind)
 
ValueKind Type () const
 
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::JsonObject::operator== ( Value const &  rhs) const
overridevirtual

Implements xgboost::Value.

◆ operator[]() [1/2]

Json & xgboost::JsonObject::operator[] ( int  ind)
inlineoverridevirtual

Reimplemented from xgboost::Value.

◆ operator[]() [2/2]

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

Reimplemented from xgboost::Value.

◆ Save()

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

Implements xgboost::Value.


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