xgboost
Public Types | Public Member Functions | Static Public Member Functions | List of all members
xgboost::JsonObject Class Reference

#include <json.h>

Inheritance diagram for xgboost::JsonObject:
Inheritance graph
Collaboration diagram for xgboost::JsonObject:
Collaboration graph

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 , kF32Array ,
  kF64Array , kU8Array , kI32Array , kI64Array
}
 Simplified implementation of LLVM RTTI. More...
 

Public Member Functions

 JsonObject ()
 
 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 &
 
MapGetObject () &
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override=delete
 
 ~JsonObject () override=default
 
- Public Member Functions inherited from xgboost::Value
 Value (ValueKind _kind)
 
ValueKind Type () const
 
virtual ~Value ()=default
 
std::string TypeStr () const
 

Static Public Member Functions

static bool IsClassOf (Value const *value)
 

Member Typedef Documentation

◆ Map

using xgboost::JsonObject::Map = std::map<std::string, Json, std::less<> >

Constructor & Destructor Documentation

◆ JsonObject() [1/4]

xgboost::JsonObject::JsonObject ( )
inline

◆ JsonObject() [2/4]

xgboost::JsonObject::JsonObject ( Map &&  object)
noexcept

◆ JsonObject() [3/4]

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

◆ JsonObject() [4/4]

xgboost::JsonObject::JsonObject ( JsonObject &&  that)
noexcept

◆ ~JsonObject()

xgboost::JsonObject::~JsonObject ( )
overridedefault

Member Function Documentation

◆ GetObject() [1/3]

Map& xgboost::JsonObject::GetObject ( ) &
inline

◆ GetObject() [2/3]

Map const& xgboost::JsonObject::GetObject ( ) &&
inline

◆ GetObject() [3/3]

Map const& xgboost::JsonObject::GetObject ( ) const &
inline

◆ IsClassOf()

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

◆ operator=()

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

Reimplemented from xgboost::Value.

◆ 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 file: