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) noexcept
 
 JsonArray (std::vector< Json > const &arr)
 
 JsonArray (JsonArray const &that)=delete
 
 JsonArray (JsonArray &&that) noexcept
 
void Save (JsonWriter *writer) const override
 
Jsonoperator[] (int ind) override
 
Jsonoperator[] (std::string const &key) 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=delete
 
- 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 class  ValueKind {
  kString , kNumber , kInteger , kObject ,
  kArray , kBoolean , kNull , kF32Array ,
  kF64Array , kU8Array , kI32Array , kI64Array
}
 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)
inlinenoexcept

◆ 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)
noexcept

Member Function Documentation

◆ GetArray() [1/3]

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

◆ GetArray() [2/3]

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

◆ GetArray() [3/3]

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

◆ IsClassOf()

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

◆ operator=()

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

Reimplemented from xgboost::Value.

◆ operator==()

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

Implements xgboost::Value.

◆ operator[]() [1/2]

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

Reimplemented from xgboost::Value.

◆ operator[]() [2/2]

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

Reimplemented from xgboost::Value.

◆ Save()

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

Implements xgboost::Value.


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