ONE - On-device Neural Engine
Loading...
Searching...
No Matches
flatbuffers::BaseGenerator Class Referenceabstract

#include <code_generators.h>

Collaboration diagram for flatbuffers::BaseGenerator:

Public Member Functions

virtual bool generate ()=0
 
std::string GeneratedFileName (const std::string &path, const std::string &file_name, const IDLOptions &options) const
 

Static Public Member Functions

static std::string NamespaceDir (const Parser &parser, const std::string &path, const Namespace &ns, const bool dasherize=false)
 
static std::string ToDasherizedCase (const std::string pascal_case)
 

Protected Member Functions

 BaseGenerator (const Parser &parser, const std::string &path, const std::string &file_name, std::string qualifying_start, std::string qualifying_separator, std::string default_extension)
 
virtual ~BaseGenerator ()
 
BaseGeneratoroperator= (const BaseGenerator &)
 
 BaseGenerator (const BaseGenerator &)
 
std::string NamespaceDir (const Namespace &ns, const bool dasherize=false) const
 
virtual const NamespaceCurrentNameSpace () const
 
std::string WrapInNameSpace (const Namespace *ns, const std::string &name) const
 
std::string WrapInNameSpace (const Definition &def) const
 
std::string GetNameSpace (const Definition &def) const
 

Static Protected Member Functions

static const char * FlatBuffersGeneratedWarning ()
 
static std::string FullNamespace (const char *separator, const Namespace &ns)
 
static std::string LastNamespacePart (const Namespace &ns)
 

Protected Attributes

const Parserparser_
 
const std::string & path_
 
const std::string & file_name_
 
const std::string qualifying_start_
 
const std::string qualifying_separator_
 
const std::string default_extension_
 

Detailed Description

Definition at line 98 of file code_generators.h.

Constructor & Destructor Documentation

◆ BaseGenerator() [1/2]

flatbuffers::BaseGenerator::BaseGenerator ( const Parser parser,
const std::string &  path,
const std::string &  file_name,
std::string  qualifying_start,
std::string  qualifying_separator,
std::string  default_extension 
)
inlineprotected

Definition at line 112 of file code_generators.h.

115 : parser_(parser), path_(path), file_name_(file_name), qualifying_start_(qualifying_start),
116 qualifying_separator_(qualifying_separator), default_extension_(default_extension)
117 {
118 }
const std::string default_extension_
const std::string qualifying_separator_
const std::string qualifying_start_
const std::string & path_
const std::string & file_name_

◆ ~BaseGenerator()

virtual flatbuffers::BaseGenerator::~BaseGenerator ( )
inlineprotectedvirtual

Definition at line 119 of file code_generators.h.

119{}

◆ BaseGenerator() [2/2]

flatbuffers::BaseGenerator::BaseGenerator ( const BaseGenerator )
protected

Member Function Documentation

◆ CurrentNameSpace()

virtual const Namespace * flatbuffers::BaseGenerator::CurrentNameSpace ( ) const
inlineprotectedvirtual

Definition at line 137 of file code_generators.h.

137{ return nullptr; }

◆ FlatBuffersGeneratedWarning()

static const char * flatbuffers::BaseGenerator::FlatBuffersGeneratedWarning ( )
staticprotected

◆ FullNamespace()

static std::string flatbuffers::BaseGenerator::FullNamespace ( const char *  separator,
const Namespace ns 
)
staticprotected

◆ generate()

virtual bool flatbuffers::BaseGenerator::generate ( )
pure virtual

◆ GeneratedFileName()

std::string flatbuffers::BaseGenerator::GeneratedFileName ( const std::string &  path,
const std::string &  file_name,
const IDLOptions options 
) const

◆ GetNameSpace()

std::string flatbuffers::BaseGenerator::GetNameSpace ( const Definition def) const
protected

◆ LastNamespacePart()

static std::string flatbuffers::BaseGenerator::LastNamespacePart ( const Namespace ns)
staticprotected

◆ NamespaceDir() [1/2]

std::string flatbuffers::BaseGenerator::NamespaceDir ( const Namespace ns,
const bool  dasherize = false 
) const
protected

◆ NamespaceDir() [2/2]

static std::string flatbuffers::BaseGenerator::NamespaceDir ( const Parser parser,
const std::string &  path,
const Namespace ns,
const bool  dasherize = false 
)
static

◆ operator=()

BaseGenerator & flatbuffers::BaseGenerator::operator= ( const BaseGenerator )
protected

◆ ToDasherizedCase()

static std::string flatbuffers::BaseGenerator::ToDasherizedCase ( const std::string  pascal_case)
static

◆ WrapInNameSpace() [1/2]

std::string flatbuffers::BaseGenerator::WrapInNameSpace ( const Definition def) const
protected

◆ WrapInNameSpace() [2/2]

std::string flatbuffers::BaseGenerator::WrapInNameSpace ( const Namespace ns,
const std::string &  name 
) const
protected

Field Documentation

◆ default_extension_

const std::string flatbuffers::BaseGenerator::default_extension_
protected

Definition at line 153 of file code_generators.h.

◆ file_name_

const std::string& flatbuffers::BaseGenerator::file_name_
protected

Definition at line 150 of file code_generators.h.

◆ parser_

const Parser& flatbuffers::BaseGenerator::parser_
protected

Definition at line 148 of file code_generators.h.

◆ path_

const std::string& flatbuffers::BaseGenerator::path_
protected

Definition at line 149 of file code_generators.h.

◆ qualifying_separator_

const std::string flatbuffers::BaseGenerator::qualifying_separator_
protected

Definition at line 152 of file code_generators.h.

◆ qualifying_start_

const std::string flatbuffers::BaseGenerator::qualifying_start_
protected

Definition at line 151 of file code_generators.h.


The documentation for this class was generated from the following file: