Namespaces | Classes | Enumerations | Functions | Variables
google::protobuf::compiler::cpp Namespace Reference

Namespaces

 cpp_unittest
 

Classes

class  CppGenerator
 
class  EnumFieldGenerator
 
class  EnumGenerator
 
class  EnumOneofFieldGenerator
 
class  ExtensionGenerator
 
class  FieldGenerator
 
class  FieldGeneratorMap
 
struct  FieldRangeImpl
 
class  FileGenerator
 
class  Formatter
 
class  MapFieldGenerator
 
struct  MessageAnalysis
 
class  MessageFieldGenerator
 
class  MessageGenerator
 
class  MessageLayoutHelper
 
class  MessageOneofFieldGenerator
 
class  MessageSCCAnalyzer
 
class  NamespaceOpener
 
struct  OneOfRangeImpl
 
struct  Options
 
class  PaddingOptimizer
 
class  ParseLoopGenerator
 
class  PrimitiveFieldGenerator
 
class  PrimitiveOneofFieldGenerator
 
class  RepeatedEnumFieldGenerator
 
class  RepeatedMessageFieldGenerator
 
class  RepeatedPrimitiveFieldGenerator
 
class  RepeatedStringFieldGenerator
 
class  ServiceGenerator
 
class  StringFieldGenerator
 
class  StringOneofFieldGenerator
 

Enumerations

enum  EnforceOptimizeMode { EnforceOptimizeMode::kNoEnforcement, EnforceOptimizeMode::kSpeed, EnforceOptimizeMode::kLiteRuntime }
 
enum  Utf8CheckMode { STRICT = 0, VERIFY = 1, NONE = 2 }
 

Functions

bool CanInitializeByZeroing (const FieldDescriptor *field)
 
std::string ClassName (const Descriptor *descriptor)
 
std::string ClassName (const Descriptor *descriptor, bool qualified)
 
std::string ClassName (const EnumDescriptor *descriptor, bool qualified)
 
std::string ClassName (const EnumDescriptor *enum_descriptor)
 
static std::string ConditionalToCheckBitmasks (const std::vector< uint32 > &masks)
 
const char * DeclaredTypeMethodName (FieldDescriptor::Type type)
 
std::string DefaultInstanceName (const Descriptor *descriptor, const Options &options)
 
std::string DefaultInstanceType (const Descriptor *descriptor, const Options &options)
 
std::string DefaultValue (const FieldDescriptor *field)
 
std::string DefaultValue (const Options &options, const FieldDescriptor *field)
 
std::string DeprecatedAttribute (const Options &options, bool deprecated)
 
std::string DescriptorTableName (const FileDescriptor *file, const Options &options)
 
FieldOptions::CType EffectiveStringCType (const FieldDescriptor *field, const Options &options)
 
std::string EnumValueName (const EnumValueDescriptor *enum_value)
 
std::string EscapeTrigraphs (const std::string &to_escape)
 
int EstimateAlignmentSize (const FieldDescriptor *field)
 
std::string FieldConstantName (const FieldDescriptor *field)
 
static bool FieldEnforceUtf8 (const FieldDescriptor *field, const Options &options)
 
std::string FieldMessageTypeName (const FieldDescriptor *field, const Options &options)
 
std::string FieldName (const FieldDescriptor *field)
 
template<typename T >
FieldRangeImpl< TFieldRange (const T *desc)
 
const DescriptorFieldScope (const FieldDescriptor *field)
 
std::string FileDllExport (const FileDescriptor *file, const Options &options)
 
std::string FilenameIdentifier (const std::string &filename)
 
static bool FileUtf8Verification (const FileDescriptor *file, const Options &options)
 
std::vector< const Descriptor * > FlattenMessagesInFile (const FileDescriptor *file)
 
void FlattenMessagesInFile (const FileDescriptor *file, std::vector< const Descriptor * > *result)
 
template<class T >
void ForEachField (const Descriptor *d, T &&func)
 
template<class T >
void ForEachField (const FileDescriptor *d, T &&func)
 
void GenerateParserLoop (const Descriptor *descriptor, int num_hasbits, const Options &options, MessageSCCAnalyzer *scc_analyzer, io::Printer *printer)
 
static void GenerateSerializationLoop (const Formatter &format, bool string_key, bool string_value, bool to_array, bool is_deterministic)
 
static void GenerateUtf8CheckCode (const FieldDescriptor *field, const Options &options, bool for_parse, const char *parameters, const char *strict_function, const char *verify_function, const Formatter &format)
 
void GenerateUtf8CheckCodeForCord (const FieldDescriptor *field, const Options &options, bool for_parse, const char *parameters, const Formatter &format)
 
void GenerateUtf8CheckCodeForString (const FieldDescriptor *field, const Options &options, bool for_parse, const char *parameters, const Formatter &format)
 
bool GetBootstrapBasename (const Options &options, const std::string &basename, std::string *bootstrap_basename)
 
FileOptions_OptimizeMode GetOptimizeFor (const FileDescriptor *file, const Options &options)
 
static Utf8CheckMode GetUtf8CheckMode (const FieldDescriptor *field, const Options &options)
 
std::string GetUtf8Suffix (const FieldDescriptor *field, const Options &options)
 
static bool HasCordFields (const Descriptor *descriptor, const Options &options)
 
bool HasCordFields (const FileDescriptor *file, const Options &options)
 
bool HasDescriptorMethods (const FileDescriptor *file, const Options &options)
 
static bool HasEnumDefinitions (const Descriptor *message_type)
 
bool HasEnumDefinitions (const FileDescriptor *file)
 
static bool HasExtensionsOrExtendableMessage (const Descriptor *descriptor)
 
bool HasExtensionsOrExtendableMessage (const FileDescriptor *file)
 
bool HasFastArraySerialization (const FileDescriptor *file, const Options &options)
 
bool HasFieldPresence (const FileDescriptor *file)
 
bool HasGeneratedMethods (const FileDescriptor *file, const Options &options)
 
bool HasGenericServices (const FileDescriptor *file, const Options &options)
 
static bool HasLazyFields (const Descriptor *descriptor, const Options &options)
 
bool HasLazyFields (const FileDescriptor *file, const Options &options)
 
static bool HasMapFields (const Descriptor *descriptor)
 
bool HasMapFields (const FileDescriptor *file)
 
bool HasPreservingUnknownEnumSemantics (const FieldDescriptor *field)
 
static bool HasRepeatedFields (const Descriptor *descriptor)
 
bool HasRepeatedFields (const FileDescriptor *file)
 
static bool HasStringPieceFields (const Descriptor *descriptor, const Options &options)
 
bool HasStringPieceFields (const FileDescriptor *file, const Options &options)
 
bool HasWeakFields (const Descriptor *descriptor, const Options &options)
 
bool HasWeakFields (const FileDescriptor *file, const Options &options)
 
std::string IncludeGuard (const FileDescriptor *file, bool pb_h, const Options &options)
 
std::string Int32ToString (int number)
 
std::string Int64ToString (const Options &options, int64 number)
 
std::string Int64ToString (const std::string &macro_prefix, int64 number)
 
Options InternalRuntimeOptions ()
 
bool IsAnyMessage (const Descriptor *descriptor, const Options &options)
 
bool IsAnyMessage (const FileDescriptor *descriptor, const Options &options)
 
bool IsBootstrapProto (const Options &options, const FileDescriptor *file)
 
bool IsCord (const FieldDescriptor *field, const Options &options)
 
static bool IsCordField (const FieldDescriptor *field, const Options &options)
 
bool IsCrossFileMessage (const FieldDescriptor *field)
 
bool IsImplicitWeakField (const FieldDescriptor *field, const Options &options, MessageSCCAnalyzer *scc_analyzer)
 
bool IsLazy (const FieldDescriptor *field, const Options &options)
 
bool IsMapEntryMessage (const Descriptor *descriptor)
 
bool IsProto2MessageSet (const Descriptor *descriptor, const Options &options)
 
bool IsProto2MessageSetFile (const FileDescriptor *file, const Options &options)
 
bool IsProto3Field (const FieldDescriptor *field_descriptor)
 
bool IsStringInlined (const FieldDescriptor *descriptor, const Options &options)
 
bool IsStringOrMessage (const FieldDescriptor *field)
 
bool IsStringPiece (const FieldDescriptor *field, const Options &options)
 
static bool IsStringPieceField (const FieldDescriptor *field, const Options &options)
 
bool IsWeak (const FieldDescriptor *field, const Options &options)
 
bool IsWellKnownMessage (const FileDescriptor *file)
 
void ListAllFields (const Descriptor *d, std::vector< const FieldDescriptor * > *fields)
 
void ListAllFields (const FileDescriptor *d, std::vector< const FieldDescriptor * > *fields)
 
void ListAllTypesForServices (const FileDescriptor *fd, std::vector< const Descriptor * > *types)
 
std::string MacroPrefix (const Options &options)
 
std::string MakeDefaultName (const FieldDescriptor *field)
 
bool MaybeBootstrap (const Options &options, GeneratorContext *generator_context, bool bootstrap_flag, std::string *basename)
 
std::string MessageCreateFunction (const Descriptor *d)
 
std::string Namespace (const Descriptor *d, const Options &options)
 
std::string Namespace (const EnumDescriptor *d, const Options &options)
 
std::string Namespace (const FieldDescriptor *d, const Options &options)
 
std::string Namespace (const FileDescriptor *d, const Options &options)
 
std::string Namespace (const std::string &package)
 
OneOfRangeImpl OneOfRange (const Descriptor *desc)
 
std::string PrimitiveTypeName (const Options &options, FieldDescriptor::CppType type)
 
const char * PrimitiveTypeName (FieldDescriptor::CppType type)
 
std::string ProtobufNamespace (const Options &options)
 
static void PublicImportDFS (const FileDescriptor *fd, std::unordered_set< const FileDescriptor * > *fd_set)
 
bool PublicUnknownFieldsAccessors (const Descriptor *message)
 
std::string QualifiedClassName (const Descriptor *d)
 
std::string QualifiedClassName (const Descriptor *d, const Options &options)
 
std::string QualifiedClassName (const EnumDescriptor *d)
 
std::string QualifiedClassName (const EnumDescriptor *d, const Options &options)
 
std::string QualifiedDefaultInstanceName (const Descriptor *descriptor, const Options &options)
 
std::string QualifiedFileLevelSymbol (const FileDescriptor *file, const std::string &name, const Options &options)
 
std::string ReferenceFunctionName (const Descriptor *descriptor, const Options &options)
 
std::string ResolveKeyword (const string &name)
 
std::string SafeFunctionName (const Descriptor *descriptor, const FieldDescriptor *field, const std::string &prefix)
 
std::string SccInfoSymbol (const SCC *scc, const Options &options)
 
void SetCommonFieldVariables (const FieldDescriptor *descriptor, std::map< std::string, std::string > *variables, const Options &options)
 
void SetCommonOneofFieldVariables (const FieldDescriptor *descriptor, std::map< std::string, std::string > *variables)
 
void SetCommonVars (const Options &options, std::map< std::string, std::string > *variables)
 
void SetMessageVariables (const FieldDescriptor *descriptor, std::map< std::string, std::string > *variables, const Options &options)
 
static bool ShouldIgnoreRequiredFieldCheck (const FieldDescriptor *field, const Options &options)
 
std::string StripProto (const std::string &filename)
 
std::string SuperClassName (const Descriptor *descriptor, const Options &options)
 
bool SupportsArenas (const Descriptor *desc)
 
bool SupportsArenas (const FieldDescriptor *field)
 
bool SupportsArenas (const FileDescriptor *file)
 
std::string UInt64ToString (const std::string &macro_prefix, uint64 number)
 
std::string UnderscoresToCamelCase (const std::string &input, bool cap_next_letter)
 
std::string UniqueName (const std::string &name, const Descriptor *d)
 
std::string UniqueName (const std::string &name, const Descriptor *d, const Options &options)
 
std::string UniqueName (const std::string &name, const EnumDescriptor *d)
 
std::string UniqueName (const std::string &name, const EnumDescriptor *d, const Options &options)
 
std::string UniqueName (const std::string &name, const FileDescriptor *d)
 
std::string UniqueName (const std::string &name, const FileDescriptor *d, const Options &options)
 
std::string UniqueName (const std::string &name, const ServiceDescriptor *d)
 
std::string UniqueName (const std::string &name, const ServiceDescriptor *d, const Options &options)
 
std::string UniqueName (const std::string &name, const std::string &filename)
 
string UniqueName (const std::string &name, const std::string &filename, const Options &options)
 
bool UseUnknownFieldSet (const FileDescriptor *file, const Options &options)
 
bool UsingImplicitWeakFields (const FileDescriptor *file, const Options &options)
 

Variables

const char kThickSeparator []
 
const char kThinSeparator []
 

Enumeration Type Documentation

◆ EnforceOptimizeMode

Enumerator
kNoEnforcement 
kSpeed 
kLiteRuntime 

Definition at line 45 of file cpp_options.h.

◆ Utf8CheckMode

Enumerator
STRICT 
VERIFY 
NONE 

Definition at line 980 of file cpp_helpers.cc.

Function Documentation

◆ CanInitializeByZeroing()

bool google::protobuf::compiler::cpp::CanInitializeByZeroing ( const FieldDescriptor field)

Definition at line 277 of file cpp_helpers.cc.

◆ ClassName() [1/4]

std::string google::protobuf::compiler::cpp::ClassName ( const Descriptor descriptor)

Definition at line 301 of file cpp_helpers.cc.

◆ ClassName() [2/4]

std::string google::protobuf::compiler::cpp::ClassName ( const Descriptor descriptor,
bool  qualified 
)
inline

Definition at line 118 of file cpp_helpers.h.

◆ ClassName() [3/4]

std::string google::protobuf::compiler::cpp::ClassName ( const EnumDescriptor descriptor,
bool  qualified 
)
inline

Definition at line 123 of file cpp_helpers.h.

◆ ClassName() [4/4]

std::string google::protobuf::compiler::cpp::ClassName ( const EnumDescriptor enum_descriptor)

Definition at line 310 of file cpp_helpers.cc.

◆ ConditionalToCheckBitmasks()

static std::string google::protobuf::compiler::cpp::ConditionalToCheckBitmasks ( const std::vector< uint32 > &  masks)
static

Definition at line 4026 of file cpp_message.cc.

◆ DeclaredTypeMethodName()

const char * google::protobuf::compiler::cpp::DeclaredTypeMethodName ( FieldDescriptor::Type  type)

Definition at line 545 of file cpp_helpers.cc.

◆ DefaultInstanceName()

std::string google::protobuf::compiler::cpp::DefaultInstanceName ( const Descriptor descriptor,
const Options options 
)

Definition at line 371 of file cpp_helpers.cc.

◆ DefaultInstanceType()

std::string google::protobuf::compiler::cpp::DefaultInstanceType ( const Descriptor descriptor,
const Options options 
)

Definition at line 366 of file cpp_helpers.cc.

◆ DefaultValue() [1/2]

std::string google::protobuf::compiler::cpp::DefaultValue ( const FieldDescriptor field)

Definition at line 616 of file cpp_helpers.cc.

◆ DefaultValue() [2/2]

std::string google::protobuf::compiler::cpp::DefaultValue ( const Options options,
const FieldDescriptor field 
)

Definition at line 627 of file cpp_helpers.cc.

◆ DeprecatedAttribute()

std::string google::protobuf::compiler::cpp::DeprecatedAttribute ( const Options options,
bool  deprecated 
)
inline

Definition at line 68 of file cpp_helpers.h.

◆ DescriptorTableName()

std::string google::protobuf::compiler::cpp::DescriptorTableName ( const FileDescriptor file,
const Options options 
)

Definition at line 382 of file cpp_helpers.cc.

◆ EffectiveStringCType()

FieldOptions::CType google::protobuf::compiler::cpp::EffectiveStringCType ( const FieldDescriptor field,
const Options options 
)

Definition at line 941 of file cpp_helpers.cc.

◆ EnumValueName()

std::string google::protobuf::compiler::cpp::EnumValueName ( const EnumValueDescriptor enum_value)

Definition at line 419 of file cpp_helpers.cc.

◆ EscapeTrigraphs()

std::string google::protobuf::compiler::cpp::EscapeTrigraphs ( const std::string to_escape)

Definition at line 722 of file cpp_helpers.cc.

◆ EstimateAlignmentSize()

int google::protobuf::compiler::cpp::EstimateAlignmentSize ( const FieldDescriptor field)

Definition at line 427 of file cpp_helpers.cc.

◆ FieldConstantName()

std::string google::protobuf::compiler::cpp::FieldConstantName ( const FieldDescriptor field)

Definition at line 451 of file cpp_helpers.cc.

◆ FieldEnforceUtf8()

static bool google::protobuf::compiler::cpp::FieldEnforceUtf8 ( const FieldDescriptor field,
const Options options 
)
static

Definition at line 986 of file cpp_helpers.cc.

◆ FieldMessageTypeName()

std::string google::protobuf::compiler::cpp::FieldMessageTypeName ( const FieldDescriptor field,
const Options options 
)

Definition at line 467 of file cpp_helpers.cc.

◆ FieldName()

std::string google::protobuf::compiler::cpp::FieldName ( const FieldDescriptor field)

Definition at line 410 of file cpp_helpers.cc.

◆ FieldRange()

template<typename T >
FieldRangeImpl<T> google::protobuf::compiler::cpp::FieldRange ( const T desc)

Definition at line 791 of file cpp_helpers.h.

◆ FieldScope()

const Descriptor* google::protobuf::compiler::cpp::FieldScope ( const FieldDescriptor field)
inline

Definition at line 182 of file cpp_helpers.h.

◆ FileDllExport()

std::string google::protobuf::compiler::cpp::FileDllExport ( const FileDescriptor file,
const Options options 
)

Definition at line 387 of file cpp_helpers.cc.

◆ FilenameIdentifier()

std::string google::protobuf::compiler::cpp::FilenameIdentifier ( const std::string filename)

Definition at line 692 of file cpp_helpers.cc.

◆ FileUtf8Verification()

static bool google::protobuf::compiler::cpp::FileUtf8Verification ( const FileDescriptor file,
const Options options 
)
static

Definition at line 991 of file cpp_helpers.cc.

◆ FlattenMessagesInFile() [1/2]

std::vector<const Descriptor*> google::protobuf::compiler::cpp::FlattenMessagesInFile ( const FileDescriptor file)
inline

Definition at line 494 of file cpp_helpers.h.

◆ FlattenMessagesInFile() [2/2]

void google::protobuf::compiler::cpp::FlattenMessagesInFile ( const FileDescriptor file,
std::vector< const Descriptor * > *  result 
)

Definition at line 1097 of file cpp_helpers.cc.

◆ ForEachField() [1/2]

template<class T >
void google::protobuf::compiler::cpp::ForEachField ( const Descriptor d,
T &&  func 
)

Definition at line 566 of file cpp_helpers.h.

◆ ForEachField() [2/2]

template<class T >
void google::protobuf::compiler::cpp::ForEachField ( const FileDescriptor d,
T &&  func 
)

Definition at line 579 of file cpp_helpers.h.

◆ GenerateParserLoop()

void google::protobuf::compiler::cpp::GenerateParserLoop ( const Descriptor descriptor,
int  num_hasbits,
const Options options,
MessageSCCAnalyzer scc_analyzer,
io::Printer printer 
)

Definition at line 1832 of file cpp_helpers.cc.

◆ GenerateSerializationLoop()

static void google::protobuf::compiler::cpp::GenerateSerializationLoop ( const Formatter format,
bool  string_key,
bool  string_value,
bool  to_array,
bool  is_deterministic 
)
static

Definition at line 233 of file cpp_map_field.cc.

◆ GenerateUtf8CheckCode()

static void google::protobuf::compiler::cpp::GenerateUtf8CheckCode ( const FieldDescriptor field,
const Options options,
bool  for_parse,
const char *  parameters,
const char *  strict_function,
const char *  verify_function,
const Formatter format 
)
static

Definition at line 1024 of file cpp_helpers.cc.

◆ GenerateUtf8CheckCodeForCord()

void google::protobuf::compiler::cpp::GenerateUtf8CheckCodeForCord ( const FieldDescriptor field,
const Options options,
bool  for_parse,
const char *  parameters,
const Formatter format 
)

Definition at line 1078 of file cpp_helpers.cc.

◆ GenerateUtf8CheckCodeForString()

void google::protobuf::compiler::cpp::GenerateUtf8CheckCodeForString ( const FieldDescriptor field,
const Options options,
bool  for_parse,
const char *  parameters,
const Formatter format 
)

Definition at line 1069 of file cpp_helpers.cc.

◆ GetBootstrapBasename()

bool google::protobuf::compiler::cpp::GetBootstrapBasename ( const Options options,
const std::string basename,
std::string bootstrap_basename 
)

Definition at line 1238 of file cpp_helpers.cc.

◆ GetOptimizeFor()

FileOptions_OptimizeMode google::protobuf::compiler::cpp::GetOptimizeFor ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 478 of file cpp_helpers.h.

◆ GetUtf8CheckMode()

static Utf8CheckMode google::protobuf::compiler::cpp::GetUtf8CheckMode ( const FieldDescriptor field,
const Options options 
)
static

Definition at line 997 of file cpp_helpers.cc.

◆ GetUtf8Suffix()

std::string google::protobuf::compiler::cpp::GetUtf8Suffix ( const FieldDescriptor field,
const Options options 
)

Definition at line 1011 of file cpp_helpers.cc.

◆ HasCordFields() [1/2]

static bool google::protobuf::compiler::cpp::HasCordFields ( const Descriptor descriptor,
const Options options 
)
static

Definition at line 849 of file cpp_helpers.cc.

◆ HasCordFields() [2/2]

bool google::protobuf::compiler::cpp::HasCordFields ( const FileDescriptor file,
const Options options 
)

Definition at line 860 of file cpp_helpers.cc.

◆ HasDescriptorMethods()

bool google::protobuf::compiler::cpp::HasDescriptorMethods ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 365 of file cpp_helpers.h.

◆ HasEnumDefinitions() [1/2]

static bool google::protobuf::compiler::cpp::HasEnumDefinitions ( const Descriptor message_type)
static

Definition at line 905 of file cpp_helpers.cc.

◆ HasEnumDefinitions() [2/2]

bool google::protobuf::compiler::cpp::HasEnumDefinitions ( const FileDescriptor file)

Definition at line 913 of file cpp_helpers.cc.

◆ HasExtensionsOrExtendableMessage() [1/2]

static bool google::protobuf::compiler::cpp::HasExtensionsOrExtendableMessage ( const Descriptor descriptor)
static

Definition at line 867 of file cpp_helpers.cc.

◆ HasExtensionsOrExtendableMessage() [2/2]

bool google::protobuf::compiler::cpp::HasExtensionsOrExtendableMessage ( const FileDescriptor file)

Definition at line 878 of file cpp_helpers.cc.

◆ HasFastArraySerialization()

bool google::protobuf::compiler::cpp::HasFastArraySerialization ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 381 of file cpp_helpers.h.

◆ HasFieldPresence()

bool google::protobuf::compiler::cpp::HasFieldPresence ( const FileDescriptor file)
inline

Definition at line 413 of file cpp_helpers.h.

◆ HasGeneratedMethods()

bool google::protobuf::compiler::cpp::HasGeneratedMethods ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 359 of file cpp_helpers.h.

◆ HasGenericServices()

bool google::protobuf::compiler::cpp::HasGenericServices ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 371 of file cpp_helpers.h.

◆ HasLazyFields() [1/2]

static bool google::protobuf::compiler::cpp::HasLazyFields ( const Descriptor descriptor,
const Options options 
)
static

Definition at line 765 of file cpp_helpers.cc.

◆ HasLazyFields() [2/2]

bool google::protobuf::compiler::cpp::HasLazyFields ( const FileDescriptor file,
const Options options 
)

Definition at line 786 of file cpp_helpers.cc.

◆ HasMapFields() [1/2]

static bool google::protobuf::compiler::cpp::HasMapFields ( const Descriptor descriptor)
static

Definition at line 886 of file cpp_helpers.cc.

◆ HasMapFields() [2/2]

bool google::protobuf::compiler::cpp::HasMapFields ( const FileDescriptor file)

Definition at line 898 of file cpp_helpers.cc.

◆ HasPreservingUnknownEnumSemantics()

bool google::protobuf::compiler::cpp::HasPreservingUnknownEnumSemantics ( const FieldDescriptor field)
inline

Definition at line 419 of file cpp_helpers.h.

◆ HasRepeatedFields() [1/2]

static bool google::protobuf::compiler::cpp::HasRepeatedFields ( const Descriptor descriptor)
static

Definition at line 801 of file cpp_helpers.cc.

◆ HasRepeatedFields() [2/2]

bool google::protobuf::compiler::cpp::HasRepeatedFields ( const FileDescriptor file)

Definition at line 813 of file cpp_helpers.cc.

◆ HasStringPieceFields() [1/2]

static bool google::protobuf::compiler::cpp::HasStringPieceFields ( const Descriptor descriptor,
const Options options 
)
static

Definition at line 826 of file cpp_helpers.cc.

◆ HasStringPieceFields() [2/2]

bool google::protobuf::compiler::cpp::HasStringPieceFields ( const FileDescriptor file,
const Options options 
)

Definition at line 837 of file cpp_helpers.cc.

◆ HasWeakFields() [1/2]

bool google::protobuf::compiler::cpp::HasWeakFields ( const Descriptor descriptor,
const Options options 
)

Definition at line 1104 of file cpp_helpers.cc.

◆ HasWeakFields() [2/2]

bool google::protobuf::compiler::cpp::HasWeakFields ( const FileDescriptor file,
const Options options 
)

Definition at line 1111 of file cpp_helpers.cc.

◆ IncludeGuard()

std::string google::protobuf::compiler::cpp::IncludeGuard ( const FileDescriptor file,
bool  pb_h,
const Options options 
)
inline

Definition at line 454 of file cpp_helpers.h.

◆ Int32ToString()

std::string google::protobuf::compiler::cpp::Int32ToString ( int  number)

Definition at line 593 of file cpp_helpers.cc.

◆ Int64ToString() [1/2]

std::string google::protobuf::compiler::cpp::Int64ToString ( const Options options,
int64  number 
)

◆ Int64ToString() [2/2]

std::string google::protobuf::compiler::cpp::Int64ToString ( const std::string macro_prefix,
int64  number 
)

Definition at line 603 of file cpp_helpers.cc.

◆ InternalRuntimeOptions()

Options google::protobuf::compiler::cpp::InternalRuntimeOptions ( )
inline

Definition at line 243 of file cpp_helpers.h.

◆ IsAnyMessage() [1/2]

bool google::protobuf::compiler::cpp::IsAnyMessage ( const Descriptor descriptor,
const Options options 
)

Definition at line 957 of file cpp_helpers.cc.

◆ IsAnyMessage() [2/2]

bool google::protobuf::compiler::cpp::IsAnyMessage ( const FileDescriptor descriptor,
const Options options 
)

Definition at line 953 of file cpp_helpers.cc.

◆ IsBootstrapProto()

bool google::protobuf::compiler::cpp::IsBootstrapProto ( const Options options,
const FileDescriptor file 
)

Definition at line 1262 of file cpp_helpers.cc.

◆ IsCord()

bool google::protobuf::compiler::cpp::IsCord ( const FieldDescriptor field,
const Options options 
)
inline

Definition at line 312 of file cpp_helpers.h.

◆ IsCordField()

static bool google::protobuf::compiler::cpp::IsCordField ( const FieldDescriptor field,
const Options options 
)
static

Definition at line 844 of file cpp_helpers.cc.

◆ IsCrossFileMessage()

bool google::protobuf::compiler::cpp::IsCrossFileMessage ( const FieldDescriptor field)
inline

Definition at line 435 of file cpp_helpers.h.

◆ IsImplicitWeakField()

bool google::protobuf::compiler::cpp::IsImplicitWeakField ( const FieldDescriptor field,
const Options options,
MessageSCCAnalyzer scc_analyzer 
)

Definition at line 1124 of file cpp_helpers.cc.

◆ IsLazy()

bool google::protobuf::compiler::cpp::IsLazy ( const FieldDescriptor field,
const Options options 
)
inline

Definition at line 327 of file cpp_helpers.h.

◆ IsMapEntryMessage()

bool google::protobuf::compiler::cpp::IsMapEntryMessage ( const Descriptor descriptor)
inline

Definition at line 403 of file cpp_helpers.h.

◆ IsProto2MessageSet()

bool google::protobuf::compiler::cpp::IsProto2MessageSet ( const Descriptor descriptor,
const Options options 
)
inline

Definition at line 386 of file cpp_helpers.h.

◆ IsProto2MessageSetFile()

bool google::protobuf::compiler::cpp::IsProto2MessageSetFile ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 395 of file cpp_helpers.h.

◆ IsProto3Field()

bool google::protobuf::compiler::cpp::IsProto3Field ( const FieldDescriptor field_descriptor)

Definition at line 43 of file cpp_map_field.cc.

◆ IsStringInlined()

bool google::protobuf::compiler::cpp::IsStringInlined ( const FieldDescriptor descriptor,
const Options options 
)

Definition at line 746 of file cpp_helpers.cc.

◆ IsStringOrMessage()

bool google::protobuf::compiler::cpp::IsStringOrMessage ( const FieldDescriptor field)

Definition at line 921 of file cpp_helpers.cc.

◆ IsStringPiece()

bool google::protobuf::compiler::cpp::IsStringPiece ( const FieldDescriptor field,
const Options options 
)
inline

Definition at line 317 of file cpp_helpers.h.

◆ IsStringPieceField()

static bool google::protobuf::compiler::cpp::IsStringPieceField ( const FieldDescriptor field,
const Options options 
)
static

Definition at line 820 of file cpp_helpers.cc.

◆ IsWeak()

bool google::protobuf::compiler::cpp::IsWeak ( const FieldDescriptor field,
const Options options 
)
inline

Definition at line 297 of file cpp_helpers.h.

◆ IsWellKnownMessage()

bool google::protobuf::compiler::cpp::IsWellKnownMessage ( const FileDescriptor file)

Definition at line 962 of file cpp_helpers.cc.

◆ ListAllFields() [1/2]

void google::protobuf::compiler::cpp::ListAllFields ( const Descriptor d,
std::vector< const FieldDescriptor * > *  fields 
)

Definition at line 1198 of file cpp_helpers.cc.

◆ ListAllFields() [2/2]

void google::protobuf::compiler::cpp::ListAllFields ( const FileDescriptor d,
std::vector< const FieldDescriptor * > *  fields 
)

Definition at line 1214 of file cpp_helpers.cc.

◆ ListAllTypesForServices()

void google::protobuf::compiler::cpp::ListAllTypesForServices ( const FileDescriptor fd,
std::vector< const Descriptor * > *  types 
)

Definition at line 1226 of file cpp_helpers.cc.

◆ MacroPrefix()

std::string google::protobuf::compiler::cpp::MacroPrefix ( const Options options)
inline

Definition at line 64 of file cpp_helpers.h.

◆ MakeDefaultName()

std::string google::protobuf::compiler::cpp::MakeDefaultName ( const FieldDescriptor field)
inline

Definition at line 444 of file cpp_helpers.h.

◆ MaybeBootstrap()

bool google::protobuf::compiler::cpp::MaybeBootstrap ( const Options options,
GeneratorContext generator_context,
bool  bootstrap_flag,
std::string basename 
)

Definition at line 1267 of file cpp_helpers.cc.

◆ MessageCreateFunction()

std::string google::protobuf::compiler::cpp::MessageCreateFunction ( const Descriptor d)
inline

Definition at line 440 of file cpp_helpers.h.

◆ Namespace() [1/5]

std::string google::protobuf::compiler::cpp::Namespace ( const Descriptor d,
const Options options 
)

Definition at line 354 of file cpp_helpers.cc.

◆ Namespace() [2/5]

std::string google::protobuf::compiler::cpp::Namespace ( const EnumDescriptor d,
const Options options 
)

Definition at line 362 of file cpp_helpers.cc.

◆ Namespace() [3/5]

std::string google::protobuf::compiler::cpp::Namespace ( const FieldDescriptor d,
const Options options 
)

Definition at line 358 of file cpp_helpers.cc.

◆ Namespace() [4/5]

std::string google::protobuf::compiler::cpp::Namespace ( const FileDescriptor d,
const Options options 
)

Definition at line 341 of file cpp_helpers.cc.

◆ Namespace() [5/5]

std::string google::protobuf::compiler::cpp::Namespace ( const std::string package)

Definition at line 336 of file cpp_helpers.cc.

◆ OneOfRange()

OneOfRangeImpl google::protobuf::compiler::cpp::OneOfRange ( const Descriptor desc)
inline

Definition at line 826 of file cpp_helpers.h.

◆ PrimitiveTypeName() [1/2]

std::string google::protobuf::compiler::cpp::PrimitiveTypeName ( const Options options,
FieldDescriptor::CppType  type 
)

Definition at line 513 of file cpp_helpers.cc.

◆ PrimitiveTypeName() [2/2]

const char * google::protobuf::compiler::cpp::PrimitiveTypeName ( FieldDescriptor::CppType  type)

Definition at line 482 of file cpp_helpers.cc.

◆ ProtobufNamespace()

std::string google::protobuf::compiler::cpp::ProtobufNamespace ( const Options options)
inline

Definition at line 60 of file cpp_helpers.h.

◆ PublicImportDFS()

static void google::protobuf::compiler::cpp::PublicImportDFS ( const FileDescriptor fd,
std::unordered_set< const FileDescriptor * > *  fd_set 
)
static

Definition at line 1126 of file cpp_file.cc.

◆ PublicUnknownFieldsAccessors()

bool google::protobuf::compiler::cpp::PublicUnknownFieldsAccessors ( const Descriptor message)
inline

Definition at line 282 of file cpp_helpers.h.

◆ QualifiedClassName() [1/4]

std::string google::protobuf::compiler::cpp::QualifiedClassName ( const Descriptor d)

Definition at line 328 of file cpp_helpers.cc.

◆ QualifiedClassName() [2/4]

std::string google::protobuf::compiler::cpp::QualifiedClassName ( const Descriptor d,
const Options options 
)

Definition at line 319 of file cpp_helpers.cc.

◆ QualifiedClassName() [3/4]

std::string google::protobuf::compiler::cpp::QualifiedClassName ( const EnumDescriptor d)

Definition at line 332 of file cpp_helpers.cc.

◆ QualifiedClassName() [4/4]

std::string google::protobuf::compiler::cpp::QualifiedClassName ( const EnumDescriptor d,
const Options options 
)

Definition at line 323 of file cpp_helpers.cc.

◆ QualifiedDefaultInstanceName()

std::string google::protobuf::compiler::cpp::QualifiedDefaultInstanceName ( const Descriptor descriptor,
const Options options 
)

Definition at line 376 of file cpp_helpers.cc.

◆ QualifiedFileLevelSymbol()

std::string google::protobuf::compiler::cpp::QualifiedFileLevelSymbol ( const FileDescriptor file,
const std::string name,
const Options options 
)

Definition at line 712 of file cpp_helpers.cc.

◆ ReferenceFunctionName()

std::string google::protobuf::compiler::cpp::ReferenceFunctionName ( const Descriptor descriptor,
const Options options 
)

Definition at line 391 of file cpp_helpers.cc.

◆ ResolveKeyword()

std::string google::protobuf::compiler::cpp::ResolveKeyword ( const string name)

Definition at line 403 of file cpp_helpers.cc.

◆ SafeFunctionName()

std::string google::protobuf::compiler::cpp::SafeFunctionName ( const Descriptor descriptor,
const FieldDescriptor field,
const std::string prefix 
)

Definition at line 727 of file cpp_helpers.cc.

◆ SccInfoSymbol()

std::string google::protobuf::compiler::cpp::SccInfoSymbol ( const SCC scc,
const Options options 
)
inline

Definition at line 555 of file cpp_helpers.h.

◆ SetCommonFieldVariables()

void google::protobuf::compiler::cpp::SetCommonFieldVariables ( const FieldDescriptor descriptor,
std::map< std::string, std::string > *  variables,
const Options options 
)

Definition at line 59 of file cpp_field.cc.

◆ SetCommonOneofFieldVariables()

void google::protobuf::compiler::cpp::SetCommonOneofFieldVariables ( const FieldDescriptor descriptor,
std::map< std::string, std::string > *  variables 
)

Definition at line 105 of file cpp_field.cc.

◆ SetCommonVars()

void google::protobuf::compiler::cpp::SetCommonVars ( const Options options,
std::map< std::string, std::string > *  variables 
)

Definition at line 209 of file cpp_helpers.cc.

◆ SetMessageVariables()

void google::protobuf::compiler::cpp::SetMessageVariables ( const FieldDescriptor descriptor,
std::map< std::string, std::string > *  variables,
const Options options 
)

Definition at line 48 of file cpp_map_field.cc.

◆ ShouldIgnoreRequiredFieldCheck()

static bool google::protobuf::compiler::cpp::ShouldIgnoreRequiredFieldCheck ( const FieldDescriptor field,
const Options options 
)
inlinestatic

Definition at line 506 of file cpp_helpers.h.

◆ StripProto()

PROTOC_EXPORT std::string google::protobuf::compiler::cpp::StripProto ( const std::string filename)

Definition at line 474 of file cpp_helpers.cc.

◆ SuperClassName()

std::string google::protobuf::compiler::cpp::SuperClassName ( const Descriptor descriptor,
const Options options 
)

Definition at line 396 of file cpp_helpers.cc.

◆ SupportsArenas() [1/3]

bool google::protobuf::compiler::cpp::SupportsArenas ( const Descriptor desc)
inline

Definition at line 427 of file cpp_helpers.h.

◆ SupportsArenas() [2/3]

bool google::protobuf::compiler::cpp::SupportsArenas ( const FieldDescriptor field)
inline

Definition at line 431 of file cpp_helpers.h.

◆ SupportsArenas() [3/3]

bool google::protobuf::compiler::cpp::SupportsArenas ( const FileDescriptor file)
inline

Definition at line 423 of file cpp_helpers.h.

◆ UInt64ToString()

std::string google::protobuf::compiler::cpp::UInt64ToString ( const std::string macro_prefix,
uint64  number 
)

Definition at line 612 of file cpp_helpers.cc.

◆ UnderscoresToCamelCase()

std::string google::protobuf::compiler::cpp::UnderscoresToCamelCase ( const std::string input,
bool  cap_next_letter 
)

Definition at line 246 of file cpp_helpers.cc.

◆ UniqueName() [1/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const Descriptor d 
)
inline

Definition at line 256 of file cpp_helpers.h.

◆ UniqueName() [2/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const Descriptor d,
const Options options 
)
inline

Definition at line 227 of file cpp_helpers.h.

◆ UniqueName() [3/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const EnumDescriptor d 
)
inline

Definition at line 259 of file cpp_helpers.h.

◆ UniqueName() [4/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const EnumDescriptor d,
const Options options 
)
inline

Definition at line 231 of file cpp_helpers.h.

◆ UniqueName() [5/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const FileDescriptor d 
)
inline

Definition at line 252 of file cpp_helpers.h.

◆ UniqueName() [6/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const FileDescriptor d,
const Options options 
)
inline

Definition at line 223 of file cpp_helpers.h.

◆ UniqueName() [7/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const ServiceDescriptor d 
)
inline

Definition at line 263 of file cpp_helpers.h.

◆ UniqueName() [8/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const ServiceDescriptor d,
const Options options 
)
inline

Definition at line 235 of file cpp_helpers.h.

◆ UniqueName() [9/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const std::string filename 
)
inline

Definition at line 248 of file cpp_helpers.h.

◆ UniqueName() [10/10]

std::string google::protobuf::compiler::cpp::UniqueName ( const std::string name,
const std::string filename,
const Options options 
)

Definition at line 706 of file cpp_helpers.cc.

◆ UseUnknownFieldSet()

bool google::protobuf::compiler::cpp::UseUnknownFieldSet ( const FileDescriptor file,
const Options options 
)
inline

Definition at line 292 of file cpp_helpers.h.

◆ UsingImplicitWeakFields()

bool google::protobuf::compiler::cpp::UsingImplicitWeakFields ( const FileDescriptor file,
const Options options 
)

Definition at line 1118 of file cpp_helpers.cc.

Variable Documentation

◆ kThickSeparator

const char google::protobuf::compiler::cpp::kThickSeparator
Initial value:
=
"// ===================================================================\n"

Definition at line 272 of file cpp_helpers.cc.

◆ kThinSeparator

const char google::protobuf::compiler::cpp::kThinSeparator
Initial value:
=
"// -------------------------------------------------------------------\n"

Definition at line 274 of file cpp_helpers.cc.



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