xgboost
|
Typed array for Universal Binary JSON. More...
#include <json.h>
Public Types | |
using | Type = T |
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 | |
JsonTypedArray () | |
JsonTypedArray (std::size_t n) | |
JsonTypedArray (JsonTypedArray &&that) noexcept | |
bool | operator== (Value const &rhs) const override |
Value & | operator= (Value const &rhs) override=delete |
void | Set (size_t i, T v) |
size_t | Size () const |
void | Save (JsonWriter *writer) const override |
std::vector< T > const & | GetArray () && |
std::vector< T > const & | GetArray () const & |
std::vector< T > & | GetArray () & |
Public Member Functions inherited from xgboost::Value | |
Value (ValueKind _kind) | |
ValueKind | Type () const |
virtual | ~Value ()=default |
virtual Json & | operator[] (std::string const &key) |
virtual Json & | operator[] (int ind) |
std::string | TypeStr () const |
Static Public Member Functions | |
static bool | IsClassOf (Value const *value) |
Typed array for Universal Binary JSON.
T | The underlying primitive type. |
kind | Value kind defined by JSON type. |
using xgboost::JsonTypedArray< T, kind >::Type = T |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
overridevirtualdelete |
Reimplemented from xgboost::Value.
|
overridevirtual |
Implements xgboost::Value.
|
overridevirtual |
Implements xgboost::Value.
|
inline |
|
inline |