TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::compiler::cpp::MessageGenerator Class Reference

#include <cpp_message.h>

Public Member Functions

 MessageGenerator (const Descriptor *descriptor, const Options &options)
 
 ~MessageGenerator ()
 
void GenerateForwardDeclaration (io::Printer *printer)
 
void GenerateEnumDefinitions (io::Printer *printer)
 
void GenerateGetEnumDescriptorSpecializations (io::Printer *printer)
 
void GenerateClassDefinition (io::Printer *printer)
 
void GenerateInlineMethods (io::Printer *printer)
 
void GenerateDescriptorDeclarations (io::Printer *printer)
 
void GenerateDescriptorInitializer (io::Printer *printer, int index)
 
void GenerateTypeRegistrations (io::Printer *printer)
 
void GenerateDefaultInstanceAllocator (io::Printer *printer)
 
void GenerateDefaultInstanceInitializer (io::Printer *printer)
 
void GenerateShutdownCode (io::Printer *printer)
 
void GenerateClassMethods (io::Printer *printer)
 

Private Member Functions

void GenerateFieldAccessorDeclarations (io::Printer *printer)
 
void GenerateFieldAccessorDefinitions (io::Printer *printer)
 
void GenerateOffsets (io::Printer *printer)
 
void GenerateStructors (io::Printer *printer)
 
void GenerateSharedConstructorCode (io::Printer *printer)
 
void GenerateSharedDestructorCode (io::Printer *printer)
 
void GenerateClear (io::Printer *printer)
 
void GenerateOneofClear (io::Printer *printer)
 
void GenerateMergeFromCodedStream (io::Printer *printer)
 
void GenerateSerializeWithCachedSizes (io::Printer *printer)
 
void GenerateSerializeWithCachedSizesToArray (io::Printer *printer)
 
void GenerateSerializeWithCachedSizesBody (io::Printer *printer, bool to_array)
 
void GenerateByteSize (io::Printer *printer)
 
void GenerateMergeFrom (io::Printer *printer)
 
void GenerateCopyFrom (io::Printer *printer)
 
void GenerateSwap (io::Printer *printer)
 
void GenerateIsInitialized (io::Printer *printer)
 
void GenerateSerializeOneField (io::Printer *printer, const FieldDescriptor *field, bool unbounded)
 
void GenerateSerializeOneExtensionRange (io::Printer *printer, const Descriptor::ExtensionRange *range, bool unbounded)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (MessageGenerator)
 

Private Attributes

const Descriptordescriptor_
 
string classname_
 
Options options_
 
FieldGeneratorMap field_generators_
 
vector< vector< string > > runs_of_fields_
 
scoped_array< scoped_ptr
< MessageGenerator > > 
nested_generators_
 
scoped_array< scoped_ptr
< EnumGenerator > > 
enum_generators_
 
scoped_array< scoped_ptr
< ExtensionGenerator > > 
extension_generators_
 
bool uses_string_
 

Constructor & Destructor Documentation

google::protobuf::compiler::cpp::MessageGenerator::MessageGenerator ( const Descriptor descriptor,
const Options options 
)
explicit
google::protobuf::compiler::cpp::MessageGenerator::~MessageGenerator ( )

Member Function Documentation

void google::protobuf::compiler::cpp::MessageGenerator::GenerateByteSize ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateClassDefinition ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateClassMethods ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateClear ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateCopyFrom ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateDefaultInstanceAllocator ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateDefaultInstanceInitializer ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateDescriptorDeclarations ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateDescriptorInitializer ( io::Printer printer,
int  index 
)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateEnumDefinitions ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateFieldAccessorDeclarations ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateFieldAccessorDefinitions ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateForwardDeclaration ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateGetEnumDescriptorSpecializations ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateInlineMethods ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateIsInitialized ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateMergeFrom ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateMergeFromCodedStream ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateOffsets ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateOneofClear ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSerializeOneExtensionRange ( io::Printer printer,
const Descriptor::ExtensionRange range,
bool  unbounded 
)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSerializeOneField ( io::Printer printer,
const FieldDescriptor field,
bool  unbounded 
)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSerializeWithCachedSizes ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSerializeWithCachedSizesBody ( io::Printer printer,
bool  to_array 
)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSerializeWithCachedSizesToArray ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSharedConstructorCode ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSharedDestructorCode ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateShutdownCode ( io::Printer printer)
void google::protobuf::compiler::cpp::MessageGenerator::GenerateStructors ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateSwap ( io::Printer printer)
private
void google::protobuf::compiler::cpp::MessageGenerator::GenerateTypeRegistrations ( io::Printer printer)
google::protobuf::compiler::cpp::MessageGenerator::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( MessageGenerator  )
private

Member Data Documentation

string google::protobuf::compiler::cpp::MessageGenerator::classname_
private
const Descriptor* google::protobuf::compiler::cpp::MessageGenerator::descriptor_
private
scoped_array<scoped_ptr<EnumGenerator> > google::protobuf::compiler::cpp::MessageGenerator::enum_generators_
private
scoped_array<scoped_ptr<ExtensionGenerator> > google::protobuf::compiler::cpp::MessageGenerator::extension_generators_
private
FieldGeneratorMap google::protobuf::compiler::cpp::MessageGenerator::field_generators_
private
scoped_array<scoped_ptr<MessageGenerator> > google::protobuf::compiler::cpp::MessageGenerator::nested_generators_
private
Options google::protobuf::compiler::cpp::MessageGenerator::options_
private
vector< vector<string> > google::protobuf::compiler::cpp::MessageGenerator::runs_of_fields_
private
bool google::protobuf::compiler::cpp::MessageGenerator::uses_string_
private

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