|
ONE - On-device Neural Engine
|
#include <idl.h>

Public Member Functions | |
| Parser (const IDLOptions &options=IDLOptions()) | |
| Parser (const Parser &)=delete | |
| Parser & | operator= (const Parser &)=delete |
| Parser (Parser &&)=default | |
| Parser & | operator= (Parser &&)=default |
| ~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) |
| std::ptrdiff_t | BytesConsumed () const |
| 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) |
| std::vector< IncludedFile > | GetIncludedFiles () const |
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< IncludedFile > > | files_included_per_file_ |
| std::vector< std::string > | native_included_files_ |
| std::map< std::string, bool > | known_attributes_ |
| IDLOptions | opts |
| bool | uses_flexbuffers_ |
| bool | has_warning_ |
| uint64_t | advanced_features_ |
| std::string | file_being_parsed_ |
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 * | prev_cursor_ |
| 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 917 of file idl.h.
References builder_, current_namespace_, empty_namespace_, flatbuffers::IDLOptions::force_defaults, flatbuffers::FlatBufferBuilderImpl< Is64Aware >::ForceDefaults(), known_attributes_, namespaces_, and opts.
|
delete |
|
default |
|
inline |
| std::ptrdiff_t flatbuffers::Parser::BytesConsumed | ( | ) | const |
| 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::vector< IncludedFile > flatbuffers::Parser::GetIncludedFiles | ( | ) | const |
References SupportsOptionalScalars().
| 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 |
Referenced by GetIncludedFiles().
| 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<IncludedFile> > 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_ |