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

#include <json.h>

Inheritance diagram for xgboost::JsonArray:
Inheritance graph
Collaboration diagram for xgboost::JsonArray:
Collaboration graph

Public Member Functions

 JsonArray ()
 
 JsonArray (std::vector< Json > &&arr)
 
 JsonArray (std::vector< Json > const &arr)
 
 JsonArray (JsonArray const &that)=delete
 
 JsonArray (JsonArray &&that)
 
void Save (JsonWriter *writer) override
 
Jsonoperator[] (std::string const &key) override
 
Jsonoperator[] (int ind) override
 
std::vector< Json > const & getArray () &&
 
std::vector< Json > const & getArray () const &
 
std::vector< Json > & getArray () &
 
bool operator== (Value const &rhs) const override
 
Valueoperator= (Value const &rhs) override
 
- 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)
 

Additional Inherited Members

- Public Types inherited from xgboost::Value
enum  ValueKind {
  ValueKind::String, ValueKind::Number, ValueKind::Integer, ValueKind::Object,
  ValueKind::Array, ValueKind::Boolean, ValueKind::Null
}
 Simplified implementation of LLVM RTTI. More...
 

Constructor & Destructor Documentation

◆ JsonArray() [1/5]

xgboost::JsonArray::JsonArray ( )
inline

◆ JsonArray() [2/5]

xgboost::JsonArray::JsonArray ( std::vector< Json > &&  arr)
inline

◆ JsonArray() [3/5]

xgboost::JsonArray::JsonArray ( std::vector< Json > const &  arr)
inline

◆ JsonArray() [4/5]

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

◆ JsonArray() [5/5]

xgboost::JsonArray::JsonArray ( JsonArray &&  that)

Member Function Documentation

◆ getArray() [1/3]

std::vector<Json> const& xgboost::JsonArray::getArray ( ) &&
inline

◆ getArray() [2/3]

std::vector<Json> const& xgboost::JsonArray::getArray ( ) const &
inline

◆ getArray() [3/3]

std::vector<Json>& xgboost::JsonArray::getArray ( ) &
inline

◆ isClassOf()

static bool xgboost::JsonArray::isClassOf ( Value const *  value)
inlinestatic

◆ operator=()

Value& xgboost::JsonArray::operator= ( Value const &  rhs)
overridevirtual

Implements xgboost::Value.

◆ operator==()

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

Implements xgboost::Value.

◆ operator[]() [1/2]

Json& xgboost::JsonArray::operator[] ( std::string const &  key)
overridevirtual

Implements xgboost::Value.

◆ operator[]() [2/2]

Json& xgboost::JsonArray::operator[] ( int  ind)
overridevirtual

Implements xgboost::Value.

◆ Save()

void xgboost::JsonArray::Save ( JsonWriter writer)
overridevirtual

Implements xgboost::Value.


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