ONE - On-device Neural Engine
|
#include <flexbuffers.h>
Public Member Functions | |
Reference () | |
Reference (const uint8_t *data, uint8_t parent_width, uint8_t byte_width, Type type) | |
Reference (const uint8_t *data, uint8_t parent_width, uint8_t packed_type) | |
Type | GetType () const |
bool | IsNull () const |
bool | IsBool () const |
bool | IsInt () const |
bool | IsUInt () const |
bool | IsIntOrUint () const |
bool | IsFloat () const |
bool | IsNumeric () const |
bool | IsString () const |
bool | IsKey () const |
bool | IsVector () const |
bool | IsUntypedVector () const |
bool | IsTypedVector () const |
bool | IsFixedTypedVector () const |
bool | IsAnyVector () const |
bool | IsMap () const |
bool | IsBlob () const |
bool | AsBool () const |
int64_t | AsInt64 () const |
int32_t | AsInt32 () const |
int16_t | AsInt16 () const |
int8_t | AsInt8 () const |
uint64_t | AsUInt64 () const |
uint32_t | AsUInt32 () const |
uint16_t | AsUInt16 () const |
uint8_t | AsUInt8 () const |
double | AsDouble () const |
float | AsFloat () const |
const char * | AsKey () const |
String | AsString () const |
std::string | ToString () const |
void | ToString (bool strings_quoted, bool keys_quoted, std::string &s) const |
Blob | AsBlob () const |
Vector | AsVector () const |
TypedVector | AsTypedVector () const |
FixedTypedVector | AsFixedTypedVector () const |
Map | AsMap () const |
template<typename T > | |
T | As () const |
bool | MutateInt (int64_t i) |
bool | MutateBool (bool b) |
bool | MutateUInt (uint64_t u) |
bool | MutateFloat (float f) |
bool | MutateFloat (double d) |
bool | MutateString (const char *str, size_t len) |
bool | MutateString (const char *str) |
bool | MutateString (const std::string &str) |
template<> | |
bool | As () const |
template<> | |
int8_t | As () const |
template<> | |
int16_t | As () const |
template<> | |
int32_t | As () const |
template<> | |
int64_t | As () const |
template<> | |
uint8_t | As () const |
template<> | |
uint16_t | As () const |
template<> | |
uint32_t | As () const |
template<> | |
uint64_t | As () const |
template<> | |
double | As () const |
template<> | |
float | As () const |
template<> | |
String | As () const |
template<> | |
Blob | As () const |
template<> | |
Vector | As () const |
template<> | |
TypedVector | As () const |
template<> | |
FixedTypedVector | As () const |
template<> | |
Map | As () const |
Definition at line 389 of file flexbuffers.h.
|
inline |
Definition at line 392 of file flexbuffers.h.
|
inline |
Definition at line 394 of file flexbuffers.h.
|
inline |
Definition at line 399 of file flexbuffers.h.
T flexbuffers::Reference::As | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 922 of file flexbuffers.h.
References AsFixedTypedVector().
|
inline |
|
inline |
Definition at line 681 of file flexbuffers.h.
References flexbuffers::Blob::EmptyBlob(), flexbuffers::FBT_BLOB, and flexbuffers::FBT_STRING.
Referenced by As(), and ToString().
|
inline |
Definition at line 424 of file flexbuffers.h.
References AsUInt64(), flexbuffers::FBT_BOOL, and flexbuffers::ReadUInt64().
Referenced by As(), and ToString().
|
inline |
Definition at line 510 of file flexbuffers.h.
References AsString(), AsVector(), flexbuffers::FBT_BOOL, flexbuffers::FBT_FLOAT, flexbuffers::FBT_INDIRECT_FLOAT, flexbuffers::FBT_INDIRECT_INT, flexbuffers::FBT_INDIRECT_UINT, flexbuffers::FBT_INT, flexbuffers::FBT_NULL, flexbuffers::FBT_STRING, flexbuffers::FBT_UINT, flexbuffers::FBT_VECTOR, flexbuffers::ReadDouble(), flexbuffers::ReadInt64(), flexbuffers::ReadUInt64(), flexbuffers::Sized::size(), and flatbuffers::StringToNumber().
Referenced by As(), AsFloat(), and ToString().
|
inline |
Definition at line 730 of file flexbuffers.h.
References flexbuffers::FixedTypedVector::EmptyFixedTypedVector(), IsFixedTypedVector(), and flexbuffers::ToFixedTypedVectorElementType().
Referenced by As(), and ToString().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 432 of file flexbuffers.h.
References AsString(), AsVector(), flexbuffers::FBT_BOOL, flexbuffers::FBT_FLOAT, flexbuffers::FBT_INDIRECT_FLOAT, flexbuffers::FBT_INDIRECT_INT, flexbuffers::FBT_INDIRECT_UINT, flexbuffers::FBT_INT, flexbuffers::FBT_NULL, flexbuffers::FBT_STRING, flexbuffers::FBT_UINT, flexbuffers::FBT_VECTOR, flexbuffers::ReadDouble(), flexbuffers::ReadInt64(), flexbuffers::ReadUInt64(), flexbuffers::Sized::size(), and flatbuffers::StringToInt().
Referenced by As(), AsInt16(), AsInt32(), AsInt8(), and ToString().
|
inline |
|
inline |
Definition at line 550 of file flexbuffers.h.
References flexbuffers::FBT_KEY, and flexbuffers::FBT_STRING.
Referenced by ToString().
|
inline |
Definition at line 744 of file flexbuffers.h.
References flexbuffers::Map::EmptyMap(), and flexbuffers::FBT_MAP.
Referenced by As(), circledump::CustomOpPrinter::options(), tfldump::CustomOpPrinter::options(), and ToString().
|
inline |
Definition at line 564 of file flexbuffers.h.
References flexbuffers::String::EmptyString(), flexbuffers::FBT_KEY, and flexbuffers::FBT_STRING.
Referenced by As(), AsDouble(), AsInt64(), AsUInt64(), and MutateString().
|
inline |
Definition at line 707 of file flexbuffers.h.
References flexbuffers::TypedVector::EmptyTypedVector(), flexbuffers::FBT_KEY, flexbuffers::FBT_STRING, IsTypedVector(), and flexbuffers::ToTypedVectorElementType().
Referenced by As(), and ToString().
|
inline |
|
inline |
|
inline |
Definition at line 472 of file flexbuffers.h.
References AsString(), AsVector(), flexbuffers::FBT_BOOL, flexbuffers::FBT_FLOAT, flexbuffers::FBT_INDIRECT_FLOAT, flexbuffers::FBT_INDIRECT_INT, flexbuffers::FBT_INDIRECT_UINT, flexbuffers::FBT_INT, flexbuffers::FBT_NULL, flexbuffers::FBT_STRING, flexbuffers::FBT_UINT, flexbuffers::FBT_VECTOR, flexbuffers::ReadDouble(), flexbuffers::ReadInt64(), flexbuffers::ReadUInt64(), flexbuffers::Sized::size(), and flatbuffers::StringToUInt().
Referenced by As(), AsBool(), AsUInt16(), AsUInt32(), AsUInt8(), and ToString().
|
inline |
|
inline |
Definition at line 695 of file flexbuffers.h.
References flexbuffers::FBT_MAP, and flexbuffers::FBT_VECTOR.
Referenced by As(), AsDouble(), AsInt64(), AsUInt64(), and ToString().
|
inline |
Definition at line 406 of file flexbuffers.h.
|
inline |
Definition at line 421 of file flexbuffers.h.
References IsFixedTypedVector(), IsTypedVector(), and IsVector().
|
inline |
Definition at line 423 of file flexbuffers.h.
References flexbuffers::FBT_BLOB.
Referenced by ToString().
|
inline |
Definition at line 409 of file flexbuffers.h.
References flexbuffers::FBT_BOOL.
Referenced by ToString().
|
inline |
Definition at line 420 of file flexbuffers.h.
References flexbuffers::IsFixedTypedVector().
Referenced by AsFixedTypedVector(), IsAnyVector(), and ToString().
|
inline |
Definition at line 413 of file flexbuffers.h.
References flexbuffers::FBT_FLOAT, and flexbuffers::FBT_INDIRECT_FLOAT.
Referenced by IsNumeric(), and ToString().
|
inline |
Definition at line 410 of file flexbuffers.h.
References flexbuffers::FBT_INDIRECT_INT, and flexbuffers::FBT_INT.
Referenced by IsIntOrUint(), and ToString().
|
inline |
Definition at line 412 of file flexbuffers.h.
References IsInt(), and IsUInt().
Referenced by IsNumeric().
|
inline |
Definition at line 416 of file flexbuffers.h.
References flexbuffers::FBT_KEY.
Referenced by ToString().
|
inline |
Definition at line 422 of file flexbuffers.h.
References flexbuffers::FBT_MAP.
Referenced by ToString().
|
inline |
Definition at line 408 of file flexbuffers.h.
References flexbuffers::FBT_NULL.
Referenced by ToString().
|
inline |
|
inline |
|
inline |
Definition at line 419 of file flexbuffers.h.
References flexbuffers::IsTypedVector().
Referenced by AsTypedVector(), IsAnyVector(), and ToString().
|
inline |
Definition at line 411 of file flexbuffers.h.
References flexbuffers::FBT_INDIRECT_UINT, and flexbuffers::FBT_UINT.
Referenced by IsIntOrUint(), and ToString().
|
inline |
|
inline |
Definition at line 417 of file flexbuffers.h.
References flexbuffers::FBT_MAP, and flexbuffers::FBT_VECTOR.
Referenced by IsAnyVector(), and ToString().
|
inline |
Definition at line 790 of file flexbuffers.h.
References flexbuffers::BIT_WIDTH_8, and flexbuffers::FBT_BOOL.
|
inline |
Definition at line 837 of file flexbuffers.h.
References flexbuffers::FBT_FLOAT, flexbuffers::FBT_INDIRECT_FLOAT, and flexbuffers::WidthF().
|
inline |
Definition at line 821 of file flexbuffers.h.
References flexbuffers::BIT_WIDTH_32, flexbuffers::FBT_FLOAT, and flexbuffers::FBT_INDIRECT_FLOAT.
|
inline |
Definition at line 764 of file flexbuffers.h.
References flexbuffers::FBT_INDIRECT_INT, flexbuffers::FBT_INDIRECT_UINT, flexbuffers::FBT_INT, flexbuffers::FBT_UINT, flexbuffers::WidthI(), and flexbuffers::WidthU().
|
inline |
Definition at line 865 of file flexbuffers.h.
References MutateString().
Referenced by MutateString().
|
inline |
Definition at line 853 of file flexbuffers.h.
References AsString().
|
inline |
Definition at line 866 of file flexbuffers.h.
References MutateString().
Referenced by MutateString().
|
inline |
Definition at line 795 of file flexbuffers.h.
References flexbuffers::FBT_INDIRECT_INT, flexbuffers::FBT_INDIRECT_UINT, flexbuffers::FBT_INT, flexbuffers::FBT_UINT, flexbuffers::WidthI(), and flexbuffers::WidthU().
|
inline |
Definition at line 582 of file flexbuffers.h.
References ToString().
Referenced by ToString().
|
inline |
Definition at line 593 of file flexbuffers.h.
References AsBlob(), AsBool(), AsDouble(), AsFixedTypedVector(), AsInt64(), AsKey(), AsMap(), AsTypedVector(), AsUInt64(), AsVector(), flatbuffers::EscapeString(), flexbuffers::FBT_STRING, IsBlob(), IsBool(), IsFixedTypedVector(), IsFloat(), IsInt(), IsKey(), IsMap(), IsNull(), IsTypedVector(), IsUInt(), IsVector(), m, and flatbuffers::NumToString().