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

#include <json.h>

Inheritance diagram for xgboost::JsonString:
Inheritance graph
Collaboration diagram for xgboost::JsonString:
Collaboration graph

Public Member Functions

 JsonString ()
 
 JsonString (std::string const &str)
 
 JsonString (std::string &&str)
 
void Save (JsonWriter *writer) override
 
Jsonoperator[] (std::string const &key) override
 
Jsonoperator[] (int ind) override
 
std::string const & getString () &&
 
std::string const & getString () const &
 
std::string & getString () &
 
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

◆ JsonString() [1/3]

xgboost::JsonString::JsonString ( )
inline

◆ JsonString() [2/3]

xgboost::JsonString::JsonString ( std::string const &  str)
inline

◆ JsonString() [3/3]

xgboost::JsonString::JsonString ( std::string &&  str)
inline

Member Function Documentation

◆ getString() [1/3]

std::string const& xgboost::JsonString::getString ( ) &&
inline

◆ getString() [2/3]

std::string const& xgboost::JsonString::getString ( ) const &
inline

◆ getString() [3/3]

std::string& xgboost::JsonString::getString ( ) &
inline

◆ isClassOf()

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

◆ operator=()

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

Implements xgboost::Value.

◆ operator==()

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

Implements xgboost::Value.

◆ operator[]() [1/2]

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

Implements xgboost::Value.

◆ operator[]() [2/2]

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

Implements xgboost::Value.

◆ Save()

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

Implements xgboost::Value.


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