webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
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
 
class  FileGenerator
 
class  MapFieldGenerator
 
class  MessageFieldGenerator
 
class  MessageGenerator
 
class  MessageOneofFieldGenerator
 
struct  Options
 
class  PrimitiveFieldGenerator
 
class  PrimitiveOneofFieldGenerator
 
class  RepeatedEnumFieldGenerator
 
class  RepeatedMessageFieldGenerator
 
class  RepeatedPrimitiveFieldGenerator
 
class  RepeatedStringFieldGenerator
 
class  ServiceGenerator
 
class  StringFieldGenerator
 
class  StringOneofFieldGenerator
 

Enumerations

enum  Utf8CheckMode { STRICT = 0, VERIFY = 1, NONE = 2 }
 

Functions

void SetCommonFieldVariables (const FieldDescriptor *descriptor, map< string, string > *variables, const Options &options)
 
void SetCommonOneofFieldVariables (const FieldDescriptor *descriptor, map< string, string > *variables)
 
string UnderscoresToCamelCase (const string &input, bool cap_next_letter)
 
string ClassName (const Descriptor *descriptor, bool qualified)
 
string ClassName (const EnumDescriptor *enum_descriptor, bool qualified)
 
string DependentBaseClassTemplateName (const Descriptor *descriptor)
 
string SuperClassName (const Descriptor *descriptor, const Options &options)
 
string DependentBaseDownCast ()
 
string DependentBaseConstDownCast ()
 
string FieldName (const FieldDescriptor *field)
 
string EnumValueName (const EnumValueDescriptor *enum_value)
 
string FieldConstantName (const FieldDescriptor *field)
 
bool IsFieldDependent (const FieldDescriptor *field)
 
string DependentTypeName (const FieldDescriptor *field)
 
string FieldMessageTypeName (const FieldDescriptor *field)
 
string StripProto (const string &filename)
 
const char * PrimitiveTypeName (FieldDescriptor::CppType type)
 
const char * DeclaredTypeMethodName (FieldDescriptor::Type type)
 
string Int32ToString (int number)
 
string Int64ToString (int64 number)
 
string DefaultValue (const FieldDescriptor *field)
 
string FilenameIdentifier (const string &filename)
 
string GlobalAddDescriptorsName (const string &filename)
 
string GlobalAssignDescriptorsName (const string &filename)
 
string GlobalShutdownFileName (const string &filename)
 
string QualifiedFileLevelSymbol (const string &package, const string &name)
 
string EscapeTrigraphs (const string &to_escape)
 
string SafeFunctionName (const Descriptor *descriptor, const FieldDescriptor *field, const string &prefix)
 
bool StaticInitializersForced (const FileDescriptor *file, const Options &options)
 
void PrintHandlingOptionalStaticInitializers (const FileDescriptor *file, const Options &options, io::Printer *printer, const char *with_static_init, const char *without_static_init, const char *var1, const string &val1, const char *var2, const string &val2)
 
void PrintHandlingOptionalStaticInitializers (const map< string, string > &vars, const FileDescriptor *file, const Options &options, io::Printer *printer, const char *with_static_init, const char *without_static_init)
 
bool HasMapFields (const FileDescriptor *file)
 
bool HasEnumDefinitions (const FileDescriptor *file)
 
bool IsStringOrMessage (const FieldDescriptor *field)
 
FieldOptions::CType EffectiveStringCType (const FieldDescriptor *field)
 
bool IsAnyMessage (const FileDescriptor *descriptor)
 
bool IsAnyMessage (const Descriptor *descriptor)
 
bool IsWellKnownMessage (const FileDescriptor *descriptor)
 
void GenerateUtf8CheckCodeForString (const FieldDescriptor *field, const Options &options, bool for_parse, const map< string, string > &variables, const char *parameters, io::Printer *printer)
 
void GenerateUtf8CheckCodeForCord (const FieldDescriptor *field, const Options &options, bool for_parse, const map< string, string > &variables, const char *parameters, io::Printer *printer)
 
const DescriptorFieldScope (const FieldDescriptor *field)
 
bool PreserveUnknownFields (const Descriptor *message)
 
::google::protobuf::FileOptions_OptimizeMode GetOptimizeFor (const FileDescriptor *file, const Options &options)
 
bool UseUnknownFieldSet (const FileDescriptor *file, const Options &options)
 
bool HasGeneratedMethods (const FileDescriptor *file, const Options &options)
 
bool HasDescriptorMethods (const FileDescriptor *file, const Options &options)
 
bool HasGenericServices (const FileDescriptor *file, const Options &options)
 
bool HasFastArraySerialization (const FileDescriptor *file, const Options &options)
 
bool IsMapEntryMessage (const Descriptor *descriptor)
 
bool HasFieldPresence (const FileDescriptor *file)
 
bool HasPreservingUnknownEnumSemantics (const FileDescriptor *file)
 
bool SupportsArenas (const FileDescriptor *file)
 
bool SupportsArenas (const Descriptor *desc)
 
bool SupportsArenas (const FieldDescriptor *field)
 
bool IsProto3Field (const FieldDescriptor *field_descriptor)
 
void SetMessageVariables (const FieldDescriptor *descriptor, map< string, string > *variables, const Options &options)
 

Variables

const char kThickSeparator []
 
const char kThinSeparator []
 

Enumeration Type Documentation

◆ Utf8CheckMode

Enumerator
STRICT 
VERIFY 
NONE 

Function Documentation

◆ ClassName() [1/2]

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

◆ ClassName() [2/2]

string google::protobuf::compiler::cpp::ClassName ( const EnumDescriptor enum_descriptor,
bool  qualified 
)

◆ DeclaredTypeMethodName()

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

◆ DefaultValue()

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

◆ DependentBaseClassTemplateName()

string google::protobuf::compiler::cpp::DependentBaseClassTemplateName ( const Descriptor descriptor)

◆ DependentBaseConstDownCast()

string google::protobuf::compiler::cpp::DependentBaseConstDownCast ( )

◆ DependentBaseDownCast()

string google::protobuf::compiler::cpp::DependentBaseDownCast ( )

◆ DependentTypeName()

string google::protobuf::compiler::cpp::DependentTypeName ( const FieldDescriptor field)

◆ EffectiveStringCType()

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

◆ EnumValueName()

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

◆ EscapeTrigraphs()

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

◆ FieldConstantName()

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

◆ FieldMessageTypeName()

string google::protobuf::compiler::cpp::FieldMessageTypeName ( const FieldDescriptor field)

◆ FieldName()

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

◆ FieldScope()

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

◆ FilenameIdentifier()

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

◆ GenerateUtf8CheckCodeForCord()

void google::protobuf::compiler::cpp::GenerateUtf8CheckCodeForCord ( const FieldDescriptor field,
const Options options,
bool  for_parse,
const map< string, string > &  variables,
const char *  parameters,
io::Printer printer 
)

◆ GenerateUtf8CheckCodeForString()

void google::protobuf::compiler::cpp::GenerateUtf8CheckCodeForString ( const FieldDescriptor field,
const Options options,
bool  for_parse,
const map< string, string > &  variables,
const char *  parameters,
io::Printer printer 
)

◆ GetOptimizeFor()

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

◆ GlobalAddDescriptorsName()

string google::protobuf::compiler::cpp::GlobalAddDescriptorsName ( const string filename)

◆ GlobalAssignDescriptorsName()

string google::protobuf::compiler::cpp::GlobalAssignDescriptorsName ( const string filename)

◆ GlobalShutdownFileName()

string google::protobuf::compiler::cpp::GlobalShutdownFileName ( const string filename)

◆ HasDescriptorMethods()

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

◆ HasEnumDefinitions()

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

◆ HasFastArraySerialization()

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

◆ HasFieldPresence()

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

◆ HasGeneratedMethods()

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

◆ HasGenericServices()

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

◆ HasMapFields()

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

◆ HasPreservingUnknownEnumSemantics()

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

◆ Int32ToString()

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

◆ Int64ToString()

string google::protobuf::compiler::cpp::Int64ToString ( int64  number)

◆ IsAnyMessage() [1/2]

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

◆ IsAnyMessage() [2/2]

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

◆ IsFieldDependent()

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

◆ IsMapEntryMessage()

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

◆ IsProto3Field()

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

◆ IsStringOrMessage()

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

◆ IsWellKnownMessage()

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

◆ PreserveUnknownFields()

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

◆ PrimitiveTypeName()

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

◆ PrintHandlingOptionalStaticInitializers() [1/2]

void google::protobuf::compiler::cpp::PrintHandlingOptionalStaticInitializers ( const FileDescriptor file,
const Options options,
io::Printer printer,
const char *  with_static_init,
const char *  without_static_init,
const char *  var1,
const string val1,
const char *  var2,
const string val2 
)

◆ PrintHandlingOptionalStaticInitializers() [2/2]

void google::protobuf::compiler::cpp::PrintHandlingOptionalStaticInitializers ( const map< string, string > &  vars,
const FileDescriptor file,
const Options options,
io::Printer printer,
const char *  with_static_init,
const char *  without_static_init 
)

◆ QualifiedFileLevelSymbol()

string google::protobuf::compiler::cpp::QualifiedFileLevelSymbol ( const string package,
const string name 
)

◆ SafeFunctionName()

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

◆ SetCommonFieldVariables()

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

◆ SetCommonOneofFieldVariables()

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

◆ SetMessageVariables()

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

◆ StaticInitializersForced()

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

◆ StripProto()

LIBPROTOC_EXPORT string google::protobuf::compiler::cpp::StripProto ( const string filename)

◆ SuperClassName()

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

◆ SupportsArenas() [1/3]

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

◆ SupportsArenas() [2/3]

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

◆ SupportsArenas() [3/3]

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

◆ UnderscoresToCamelCase()

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

◆ UseUnknownFieldSet()

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

Variable Documentation

◆ kThickSeparator

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

◆ kThinSeparator

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