Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
google::protobuf::compiler::cpp::EnumGenerator Class Reference

#include <cpp_enum.h>

Public Member Functions

 EnumGenerator (const EnumDescriptor *descriptor, const std::map< std::string, std::string > &vars, const Options &options)
 
void GenerateDefinition (io::Printer *printer)
 
void GenerateGetEnumDescriptorSpecializations (io::Printer *printer)
 
void GenerateMethods (int idx, io::Printer *printer)
 
void GenerateSymbolImports (io::Printer *printer) const
 
 ~EnumGenerator ()
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (EnumGenerator)
 

Private Attributes

const std::string classname_
 
const EnumDescriptordescriptor_
 
const bool generate_array_size_
 
const Optionsoptions_
 
std::map< std::string, std::stringvariables_
 

Friends

class FileGenerator
 

Detailed Description

Definition at line 57 of file cpp_enum.h.

Constructor & Destructor Documentation

◆ EnumGenerator()

google::protobuf::compiler::cpp::EnumGenerator::EnumGenerator ( const EnumDescriptor descriptor,
const std::map< std::string, std::string > &  vars,
const Options options 
)

Definition at line 73 of file cpp_enum.cc.

◆ ~EnumGenerator()

google::protobuf::compiler::cpp::EnumGenerator::~EnumGenerator ( )

Definition at line 90 of file cpp_enum.cc.

Member Function Documentation

◆ GenerateDefinition()

void google::protobuf::compiler::cpp::EnumGenerator::GenerateDefinition ( io::Printer printer)

Definition at line 92 of file cpp_enum.cc.

◆ GenerateGetEnumDescriptorSpecializations()

void google::protobuf::compiler::cpp::EnumGenerator::GenerateGetEnumDescriptorSpecializations ( io::Printer printer)

Definition at line 196 of file cpp_enum.cc.

◆ GenerateMethods()

void google::protobuf::compiler::cpp::EnumGenerator::GenerateMethods ( int  idx,
io::Printer printer 
)

Definition at line 264 of file cpp_enum.cc.

◆ GenerateSymbolImports()

void google::protobuf::compiler::cpp::EnumGenerator::GenerateSymbolImports ( io::Printer printer) const

Definition at line 211 of file cpp_enum.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::compiler::cpp::EnumGenerator::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( EnumGenerator  )
private

Friends And Related Function Documentation

◆ FileGenerator

friend class FileGenerator
friend

Definition at line 96 of file cpp_enum.h.

Member Data Documentation

◆ classname_

const std::string google::protobuf::compiler::cpp::EnumGenerator::classname_
private

Definition at line 89 of file cpp_enum.h.

◆ descriptor_

const EnumDescriptor* google::protobuf::compiler::cpp::EnumGenerator::descriptor_
private

Definition at line 88 of file cpp_enum.h.

◆ generate_array_size_

const bool google::protobuf::compiler::cpp::EnumGenerator::generate_array_size_
private

Definition at line 92 of file cpp_enum.h.

◆ options_

const Options& google::protobuf::compiler::cpp::EnumGenerator::options_
private

Definition at line 90 of file cpp_enum.h.

◆ variables_

std::map<std::string, std::string> google::protobuf::compiler::cpp::EnumGenerator::variables_
private

Definition at line 94 of file cpp_enum.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09