|
Medial Code Documentation
|
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 , kNumberArray , kU8Array , kI32Array , kI64Array } |
| Simplified implementation of LLVM RTTI. | |
Public Member Functions | |
| JsonTypedArray (size_t n) | |
| JsonTypedArray (JsonTypedArray &&that) noexcept | |
| bool | operator== (Value const &rhs) const override |
| 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 Json & | operator[] (std::string const &key) |
| virtual Json & | operator[] (int ind) |
| virtual Value & | operator= (Value const &rhs)=delete |
| 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. |
|
overridevirtual |
Implements xgboost::Value.
|
overridevirtual |
Implements xgboost::Value.