ONE - On-device Neural Engine
|
#include <idl.h>
Public Member Functions | |
EnumDef () | |
Offset< reflection::Enum > | Serialize (FlatBufferBuilder *builder, const Parser &parser) const |
bool | Deserialize (Parser &parser, const reflection::Enum *values) |
template<typename T > | |
void | ChangeEnumValue (EnumVal *ev, T new_val) |
void | SortByValue () |
void | RemoveDuplicates () |
std::string | AllFlags () const |
const EnumVal * | MinValue () const |
const EnumVal * | MaxValue () const |
uint64_t | Distance (const EnumVal *v1, const EnumVal *v2) const |
uint64_t | Distance () const |
EnumVal * | ReverseLookup (int64_t enum_idx, bool skip_union_default=false) const |
EnumVal * | FindByValue (const std::string &constant) const |
std::string | ToString (const EnumVal &ev) const |
size_t | size () const |
const std::vector< EnumVal * > & | Vals () const |
const EnumVal * | Lookup (const std::string &enum_name) 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) |
Data Fields | |
bool | is_union |
bool | uses_multiple_type_instances |
Type | underlying_type |
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 |
|
inline |
std::string flatbuffers::EnumDef::AllFlags | ( | ) | const |
void flatbuffers::EnumDef::ChangeEnumValue | ( | EnumVal * | ev, |
T | new_val | ||
) |
bool flatbuffers::EnumDef::Deserialize | ( | Parser & | parser, |
const reflection::Enum * | values | ||
) |
|
inline |
Definition at line 433 of file idl.h.
References Distance(), MaxValue(), and MinValue().
Referenced by Distance().
EnumVal * flatbuffers::EnumDef::FindByValue | ( | const std::string & | constant | ) | const |
|
inline |
const EnumVal * flatbuffers::EnumDef::MaxValue | ( | ) | const |
Referenced by Distance().
const EnumVal * flatbuffers::EnumDef::MinValue | ( | ) | const |
Referenced by Distance().
void flatbuffers::EnumDef::RemoveDuplicates | ( | ) |
EnumVal * flatbuffers::EnumDef::ReverseLookup | ( | int64_t | enum_idx, |
bool | skip_union_default = false |
||
) | const |
Offset< reflection::Enum > flatbuffers::EnumDef::Serialize | ( | FlatBufferBuilder * | builder, |
const Parser & | parser | ||
) | const |
|
inline |
void flatbuffers::EnumDef::SortByValue | ( | ) |
|
inline |
Definition at line 438 of file idl.h.
References flatbuffers::EnumVal::GetAsInt64(), flatbuffers::EnumVal::GetAsUInt64(), and flatbuffers::NumToString().
|
inline |