Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
google::protobuf::compiler::csharp::FieldGeneratorBase Class Referenceabstract

#include <csharp_field_base.h>

Inheritance diagram for google::protobuf::compiler::csharp::FieldGeneratorBase:
Inheritance graph
[legend]

Public Member Functions

 FieldGeneratorBase (const FieldDescriptor *descriptor, int presenceIndex, const Options *options)
 
 FieldGeneratorBase (const FieldGeneratorBase &)=delete
 
virtual void GenerateCloningCode (io::Printer *printer)=0
 
virtual void GenerateCodecCode (io::Printer *printer)
 
virtual void GenerateExtensionCode (io::Printer *printer)
 
virtual void GenerateFreezingCode (io::Printer *printer)
 
virtual void GenerateMembers (io::Printer *printer)=0
 
virtual void GenerateMergingCode (io::Printer *printer)=0
 
virtual void GenerateParsingCode (io::Printer *printer)=0
 
virtual void GenerateSerializationCode (io::Printer *printer)=0
 
virtual void GenerateSerializedSizeCode (io::Printer *printer)=0
 
FieldGeneratorBaseoperator= (const FieldGeneratorBase &)=delete
 
virtual void WriteEquals (io::Printer *printer)=0
 
virtual void WriteHash (io::Printer *printer)=0
 
virtual void WriteToString (io::Printer *printer)=0
 
 ~FieldGeneratorBase ()
 

Protected Member Functions

void AddDeprecatedFlag (io::Printer *printer)
 
void AddNullCheck (io::Printer *printer)
 
void AddNullCheck (io::Printer *printer, const std::string &name)
 
void AddPublicMemberAttributes (io::Printer *printer)
 
std::string capitalized_type_name ()
 
std::string default_value ()
 
std::string default_value (const FieldDescriptor *descriptor)
 
bool has_default_value ()
 
std::string name ()
 
std::string number ()
 
std::string oneof_name ()
 
std::string oneof_property_name ()
 
std::string property_name ()
 
void SetCommonOneofFieldVariables (std::map< string, string > *variables)
 
std::string type_name ()
 
std::string type_name (const FieldDescriptor *descriptor)
 
- Protected Member Functions inherited from google::protobuf::compiler::csharp::SourceGeneratorBase
std::string class_access_level ()
 
SourceGeneratorBaseoperator= (const SourceGeneratorBase &)=delete
 
const Optionsoptions ()
 
 SourceGeneratorBase (const FileDescriptor *descriptor, const Options *options)
 
 SourceGeneratorBase (const SourceGeneratorBase &)=delete
 
void WriteGeneratedCodeAttributes (io::Printer *printer)
 
virtual ~SourceGeneratorBase ()
 

Protected Attributes

const FieldDescriptordescriptor_
 
const int presenceIndex_
 
std::map< string, stringvariables_
 

Private Member Functions

std::string GetBytesDefaultValueInternal (const FieldDescriptor *descriptor)
 
std::string GetStringDefaultValueInternal (const FieldDescriptor *descriptor)
 
void SetCommonFieldVariables (std::map< string, string > *variables)
 

Detailed Description

Definition at line 47 of file csharp_field_base.h.

Constructor & Destructor Documentation

◆ FieldGeneratorBase() [1/2]

google::protobuf::compiler::csharp::FieldGeneratorBase::FieldGeneratorBase ( const FieldDescriptor descriptor,
int  presenceIndex,
const Options options 
)

Definition at line 138 of file csharp_field_base.cc.

◆ ~FieldGeneratorBase()

google::protobuf::compiler::csharp::FieldGeneratorBase::~FieldGeneratorBase ( )

Definition at line 146 of file csharp_field_base.cc.

◆ FieldGeneratorBase() [2/2]

google::protobuf::compiler::csharp::FieldGeneratorBase::FieldGeneratorBase ( const FieldGeneratorBase )
delete

Member Function Documentation

◆ AddDeprecatedFlag()

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddDeprecatedFlag ( io::Printer printer)
protected

Definition at line 164 of file csharp_field_base.cc.

◆ AddNullCheck() [1/2]

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddNullCheck ( io::Printer printer)
protected

◆ AddNullCheck() [2/2]

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddNullCheck ( io::Printer printer,
const std::string name 
)
protected

◆ AddPublicMemberAttributes()

void google::protobuf::compiler::csharp::FieldGeneratorBase::AddPublicMemberAttributes ( io::Printer printer)
protected

Definition at line 173 of file csharp_field_base.cc.

◆ capitalized_type_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::capitalized_type_name ( )
protected

Definition at line 398 of file csharp_field_base.cc.

◆ default_value() [1/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::default_value ( )
protected

Definition at line 319 of file csharp_field_base.cc.

◆ default_value() [2/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::default_value ( const FieldDescriptor descriptor)
protected

Definition at line 323 of file csharp_field_base.cc.

◆ GenerateCloningCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateCloningCode ( io::Printer printer)
pure virtual

◆ GenerateCodecCode()

void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateCodecCode ( io::Printer printer)
virtual

◆ GenerateExtensionCode()

void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateExtensionCode ( io::Printer printer)
virtual

◆ GenerateFreezingCode()

void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateFreezingCode ( io::Printer printer)
virtual

◆ GenerateMembers()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateMembers ( io::Printer printer)
pure virtual

◆ GenerateMergingCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateMergingCode ( io::Printer printer)
pure virtual

◆ GenerateParsingCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateParsingCode ( io::Printer printer)
pure virtual

◆ GenerateSerializationCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateSerializationCode ( io::Printer printer)
pure virtual

◆ GenerateSerializedSizeCode()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::GenerateSerializedSizeCode ( io::Printer printer)
pure virtual

◆ GetBytesDefaultValueInternal()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::GetBytesDefaultValueInternal ( const FieldDescriptor descriptor)
private

Definition at line 312 of file csharp_field_base.cc.

◆ GetStringDefaultValueInternal()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::GetStringDefaultValueInternal ( const FieldDescriptor descriptor)
private

Definition at line 305 of file csharp_field_base.cc.

◆ has_default_value()

bool google::protobuf::compiler::csharp::FieldGeneratorBase::has_default_value ( )
protected

Definition at line 254 of file csharp_field_base.cc.

◆ name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::name ( )
protected

Definition at line 190 of file csharp_field_base.cc.

◆ number()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::number ( )
protected

Definition at line 394 of file csharp_field_base.cc.

◆ oneof_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::oneof_name ( )
protected

Definition at line 182 of file csharp_field_base.cc.

◆ oneof_property_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::oneof_property_name ( )
protected

Definition at line 178 of file csharp_field_base.cc.

◆ operator=()

FieldGeneratorBase& google::protobuf::compiler::csharp::FieldGeneratorBase::operator= ( const FieldGeneratorBase )
delete

◆ property_name()

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::property_name ( )
protected

Definition at line 186 of file csharp_field_base.cc.

◆ SetCommonFieldVariables()

void google::protobuf::compiler::csharp::FieldGeneratorBase::SetCommonFieldVariables ( std::map< string, string > *  variables)
private

Definition at line 53 of file csharp_field_base.cc.

◆ SetCommonOneofFieldVariables()

void google::protobuf::compiler::csharp::FieldGeneratorBase::SetCommonOneofFieldVariables ( std::map< string, string > *  variables)
protected

Definition at line 125 of file csharp_field_base.cc.

◆ type_name() [1/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::type_name ( )
protected

Definition at line 194 of file csharp_field_base.cc.

◆ type_name() [2/2]

std::string google::protobuf::compiler::csharp::FieldGeneratorBase::type_name ( const FieldDescriptor descriptor)
protected

Definition at line 198 of file csharp_field_base.cc.

◆ WriteEquals()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::WriteEquals ( io::Printer printer)
pure virtual

◆ WriteHash()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::WriteHash ( io::Printer printer)
pure virtual

◆ WriteToString()

virtual void google::protobuf::compiler::csharp::FieldGeneratorBase::WriteToString ( io::Printer printer)
pure virtual

Member Data Documentation

◆ descriptor_

const FieldDescriptor* google::protobuf::compiler::csharp::FieldGeneratorBase::descriptor_
protected

Definition at line 73 of file csharp_field_base.h.

◆ presenceIndex_

const int google::protobuf::compiler::csharp::FieldGeneratorBase::presenceIndex_
protected

Definition at line 74 of file csharp_field_base.h.

◆ variables_

std::map<string, string> google::protobuf::compiler::csharp::FieldGeneratorBase::variables_
protected

Definition at line 75 of file csharp_field_base.h.


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


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