ONE - On-device Neural Engine
|
#include <idl.h>
Public Member Functions | |
Parser (const IDLOptions &options=IDLOptions()) | |
~Parser () | |
bool | Parse (const char *_source, const char **include_paths=nullptr, const char *source_filename=nullptr) |
bool | ParseJson (const char *json, const char *json_filename=nullptr) |
bool | SetRootType (const char *name) |
void | MarkGenerated () |
std::set< std::string > | GetIncludedFilesRecursive (const std::string &file_name) const |
void | Serialize () |
bool | Deserialize (const uint8_t *buf, const size_t size) |
bool | Deserialize (const reflection::Schema *schema) |
Type * | DeserializeType (const reflection::Type *type) |
std::string | ConformTo (const Parser &base) |
bool | ParseFlexBuffer (const char *source, const char *source_filename, flexbuffers::Builder *builder) |
StructDef * | LookupStruct (const std::string &id) const |
StructDef * | LookupStructThruParentNamespaces (const std::string &id) const |
std::string | UnqualifiedName (const std::string &fullQualifiedName) |
FLATBUFFERS_CHECKED_ERROR | Error (const std::string &msg) |
Public Member Functions inherited from flatbuffers::ParserState | |
ParserState () | |
Static Public Member Functions | |
static bool | SupportsOptionalScalars (const flatbuffers::IDLOptions &opts) |
Data Fields | |
SymbolTable< Type > | types_ |
SymbolTable< StructDef > | structs_ |
SymbolTable< EnumDef > | enums_ |
SymbolTable< ServiceDef > | services_ |
std::vector< Namespace * > | namespaces_ |
Namespace * | current_namespace_ |
Namespace * | empty_namespace_ |
std::string | error_ |
FlatBufferBuilder | builder_ |
flexbuffers::Builder | flex_builder_ |
flexbuffers::Reference | flex_root_ |
StructDef * | root_struct_def_ |
std::string | file_identifier_ |
std::string | file_extension_ |
std::map< uint64_t, std::string > | included_files_ |
std::map< std::string, std::set< std::string > > | files_included_per_file_ |
std::vector< std::string > | native_included_files_ |
std::map< std::string, bool > | known_attributes_ |
IDLOptions | opts |
bool | uses_flexbuffers_ |
uint64_t | advanced_features_ |
Additional Inherited Members | |
Protected Member Functions inherited from flatbuffers::ParserState | |
void | ResetState (const char *source) |
void | MarkNewLine () |
int64_t | CursorPosition () const |
Protected Attributes inherited from flatbuffers::ParserState | |
const char * | cursor_ |
const char * | line_start_ |
int | line_ |
int | token_ |
bool | attr_is_trivial_ascii_string_ |
std::string | attribute_ |
std::vector< std::string > | doc_comment_ |
|
inlineexplicit |
Definition at line 753 of file idl.h.
References builder_, current_namespace_, empty_namespace_, flatbuffers::IDLOptions::force_defaults, flatbuffers::FlatBufferBuilder::ForceDefaults(), known_attributes_, namespaces_, and opts.
|
inline |
Definition at line 794 of file idl.h.
References namespaces_.
std::string flatbuffers::Parser::ConformTo | ( | const Parser & | base | ) |
bool flatbuffers::Parser::Deserialize | ( | const reflection::Schema * | schema | ) |
bool flatbuffers::Parser::Deserialize | ( | const uint8_t * | buf, |
const size_t | size | ||
) |
Type * flatbuffers::Parser::DeserializeType | ( | const reflection::Type * | type | ) |
FLATBUFFERS_CHECKED_ERROR flatbuffers::Parser::Error | ( | const std::string & | msg | ) |
std::set< std::string > flatbuffers::Parser::GetIncludedFilesRecursive | ( | const std::string & | file_name | ) | const |
StructDef * flatbuffers::Parser::LookupStruct | ( | const std::string & | id | ) | const |
StructDef * flatbuffers::Parser::LookupStructThruParentNamespaces | ( | const std::string & | id | ) | const |
void flatbuffers::Parser::MarkGenerated | ( | ) |
bool flatbuffers::Parser::Parse | ( | const char * | _source, |
const char ** | include_paths = nullptr , |
||
const char * | source_filename = nullptr |
||
) |
bool flatbuffers::Parser::ParseFlexBuffer | ( | const char * | source, |
const char * | source_filename, | ||
flexbuffers::Builder * | builder | ||
) |
bool flatbuffers::Parser::ParseJson | ( | const char * | json, |
const char * | json_filename = nullptr |
||
) |
void flatbuffers::Parser::Serialize | ( | ) |
bool flatbuffers::Parser::SetRootType | ( | const char * | name | ) |
|
static |
References SupportsOptionalScalars().
Referenced by SupportsOptionalScalars().
std::string flatbuffers::Parser::UnqualifiedName | ( | const std::string & | fullQualifiedName | ) |
FlatBufferBuilder flatbuffers::Parser::builder_ |
Namespace* flatbuffers::Parser::current_namespace_ |
Namespace* flatbuffers::Parser::empty_namespace_ |
SymbolTable<EnumDef> flatbuffers::Parser::enums_ |
std::map<std::string, std::set<std::string> > flatbuffers::Parser::files_included_per_file_ |
flexbuffers::Reference flatbuffers::Parser::flex_root_ |
std::map<uint64_t, std::string> flatbuffers::Parser::included_files_ |
std::map<std::string, bool> flatbuffers::Parser::known_attributes_ |
std::vector<Namespace *> flatbuffers::Parser::namespaces_ |
std::vector<std::string> flatbuffers::Parser::native_included_files_ |
IDLOptions flatbuffers::Parser::opts |
SymbolTable<ServiceDef> flatbuffers::Parser::services_ |
SymbolTable<StructDef> flatbuffers::Parser::structs_ |
SymbolTable<Type> flatbuffers::Parser::types_ |