ONE - On-device Neural Engine
|
#include <idl.h>
Public Types | |
enum | Presence { kRequired , kOptional , kDefault } |
Public Member Functions | |
FieldDef () | |
Offset< reflection::Field > | Serialize (FlatBufferBuilder *builder, uint16_t id, const Parser &parser) const |
bool | Deserialize (Parser &parser, const reflection::Field *field) |
bool | IsScalarOptional () const |
bool | IsOptional () const |
bool | IsRequired () const |
bool | IsDefault () const |
Public Member Functions inherited from flatbuffers::Definition | |
Definition () | |
flatbuffers::Offset< flatbuffers::Vector< flatbuffers::Offset< reflection::KeyValue > > > | SerializeAttributes (FlatBufferBuilder *builder, const Parser &parser) const |
bool | DeserializeAttributes (Parser &parser, const Vector< Offset< reflection::KeyValue > > *attrs) |
Static Public Member Functions | |
static Presence | MakeFieldPresence (bool optional, bool required) |
Data Fields | |
Value | value |
bool | deprecated |
bool | key |
bool | shared |
bool | native_inline |
bool | flexbuffer |
Presence | presence |
StructDef * | nested_flatbuffer |
size_t | padding |
Data Fields inherited from flatbuffers::Definition | |
std::string | name |
std::string | file |
std::vector< std::string > | doc_comment |
SymbolTable< Value > | attributes |
bool | generated |
Namespace * | defined_namespace |
uoffset_t | serialized_location |
int | index |
int | refcount |
Enumerator | |
---|---|
kRequired | |
kOptional | |
kDefault |
bool flatbuffers::FieldDef::Deserialize | ( | Parser & | parser, |
const reflection::Field * | field | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 315 of file idl.h.
References flatbuffers::Type::base_type, IsOptional(), flatbuffers::IsScalar(), flatbuffers::Value::type, and value.
|
inlinestatic |
Definition at line 340 of file idl.h.
References FLATBUFFERS_ASSERT, kDefault, kOptional, and kRequired.
Offset< reflection::Field > flatbuffers::FieldDef::Serialize | ( | FlatBufferBuilder * | builder, |
uint16_t | id, | ||
const Parser & | parser | ||
) | const |
Presence flatbuffers::FieldDef::presence |
Definition at line 349 of file idl.h.
Referenced by IsDefault(), IsOptional(), and IsRequired().
Value flatbuffers::FieldDef::value |
Definition at line 320 of file idl.h.
Referenced by IsScalarOptional().