#include <csharp_field_base.h>
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 |
FieldGeneratorBase & | operator= (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 Attributes | |
const FieldDescriptor * | descriptor_ |
const int | presenceIndex_ |
std::map< string, string > | variables_ |
Private Member Functions | |
std::string | GetBytesDefaultValueInternal (const FieldDescriptor *descriptor) |
std::string | GetStringDefaultValueInternal (const FieldDescriptor *descriptor) |
void | SetCommonFieldVariables (std::map< string, string > *variables) |
Definition at line 47 of file csharp_field_base.h.
google::protobuf::compiler::csharp::FieldGeneratorBase::FieldGeneratorBase | ( | const FieldDescriptor * | descriptor, |
int | presenceIndex, | ||
const Options * | options | ||
) |
Definition at line 138 of file csharp_field_base.cc.
google::protobuf::compiler::csharp::FieldGeneratorBase::~FieldGeneratorBase | ( | ) |
Definition at line 146 of file csharp_field_base.cc.
|
delete |
|
protected |
Definition at line 164 of file csharp_field_base.cc.
|
protected |
|
protected |
|
protected |
Definition at line 173 of file csharp_field_base.cc.
|
protected |
Definition at line 398 of file csharp_field_base.cc.
|
protected |
Definition at line 319 of file csharp_field_base.cc.
|
protected |
Definition at line 323 of file csharp_field_base.cc.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::PrimitiveOneofFieldGenerator, google::protobuf::compiler::csharp::MessageOneofFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
|
virtual |
Reimplemented in google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::EnumFieldGenerator, and google::protobuf::compiler::csharp::MessageFieldGenerator.
Definition at line 154 of file csharp_field_base.cc.
|
virtual |
Reimplemented in google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator, and google::protobuf::compiler::csharp::EnumFieldGenerator.
Definition at line 159 of file csharp_field_base.cc.
|
virtual |
Reimplemented in google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
Definition at line 149 of file csharp_field_base.cc.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::PrimitiveOneofFieldGenerator, google::protobuf::compiler::csharp::WrapperOneofFieldGenerator, google::protobuf::compiler::csharp::MessageOneofFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::PrimitiveOneofFieldGenerator, google::protobuf::compiler::csharp::WrapperOneofFieldGenerator, google::protobuf::compiler::csharp::MessageOneofFieldGenerator, google::protobuf::compiler::csharp::EnumOneofFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::PrimitiveOneofFieldGenerator, google::protobuf::compiler::csharp::WrapperOneofFieldGenerator, google::protobuf::compiler::csharp::MessageOneofFieldGenerator, google::protobuf::compiler::csharp::EnumOneofFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator, and google::protobuf::compiler::csharp::EnumFieldGenerator.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::WrapperOneofFieldGenerator, google::protobuf::compiler::csharp::EnumOneofFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator, and google::protobuf::compiler::csharp::EnumFieldGenerator.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::WrapperOneofFieldGenerator, google::protobuf::compiler::csharp::EnumOneofFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator, and google::protobuf::compiler::csharp::EnumFieldGenerator.
|
private |
Definition at line 312 of file csharp_field_base.cc.
|
private |
Definition at line 305 of file csharp_field_base.cc.
|
protected |
Definition at line 254 of file csharp_field_base.cc.
|
protected |
Definition at line 190 of file csharp_field_base.cc.
|
protected |
Definition at line 394 of file csharp_field_base.cc.
|
protected |
Definition at line 182 of file csharp_field_base.cc.
|
protected |
Definition at line 178 of file csharp_field_base.cc.
|
delete |
|
protected |
Definition at line 186 of file csharp_field_base.cc.
|
private |
Definition at line 53 of file csharp_field_base.cc.
|
protected |
Definition at line 125 of file csharp_field_base.cc.
|
protected |
Definition at line 194 of file csharp_field_base.cc.
|
protected |
Definition at line 198 of file csharp_field_base.cc.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
|
pure virtual |
Implemented in google::protobuf::compiler::csharp::PrimitiveOneofFieldGenerator, google::protobuf::compiler::csharp::MessageOneofFieldGenerator, google::protobuf::compiler::csharp::RepeatedEnumFieldGenerator, google::protobuf::compiler::csharp::RepeatedMessageFieldGenerator, google::protobuf::compiler::csharp::PrimitiveFieldGenerator, google::protobuf::compiler::csharp::WrapperFieldGenerator, google::protobuf::compiler::csharp::MessageFieldGenerator, google::protobuf::compiler::csharp::MapFieldGenerator, and google::protobuf::compiler::csharp::RepeatedPrimitiveFieldGenerator.
|
protected |
Definition at line 73 of file csharp_field_base.h.
|
protected |
Definition at line 74 of file csharp_field_base.h.
|
protected |
Definition at line 75 of file csharp_field_base.h.