|
xgboost
|
Typed array for Universal Binary JSON. More...
#include <json.h>


Public Types | |
| using | value_type = T |
Public Types inherited from xgboost::Value | |
| enum class | ValueKind : std::int64_t { kString = 0 , kNumber = 1 , kInteger = 2 , kObject = 3 , kArray = 4 , kBoolean = 5 , kNull = 6 , kF32Array = 7 , kF64Array = 8 , kI8Array = 9 , kU8Array = 10 , kI16Array = 11 , kU16Array = 12 , kI32Array = 13 , kU32Array = 14 , kI64Array = 15 , kU64Array = 16 } |
| 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 >::value_type = T |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
overridevirtualdelete |
Reimplemented from xgboost::Value.
|
overridevirtual |
Implements xgboost::Value.
|
overridevirtual |
Implements xgboost::Value.
|
inline |
|
inline |