TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::compiler::cpp Namespace Reference

Classes

class  EnumFieldGenerator
 
class  EnumGenerator
 
class  EnumOneofFieldGenerator
 
class  ExtensionGenerator
 
class  FieldGenerator
 
class  FieldGeneratorMap
 
class  MessageFieldGenerator
 
class  MessageGenerator
 
class  MessageOneofFieldGenerator
 
struct  Options
 
class  PrimitiveFieldGenerator
 
class  PrimitiveOneofFieldGenerator
 
class  RepeatedEnumFieldGenerator
 
class  RepeatedMessageFieldGenerator
 
class  RepeatedPrimitiveFieldGenerator
 
class  RepeatedStringFieldGenerator
 
class  StringFieldGenerator
 
class  StringOneofFieldGenerator
 

Functions

void SetCommonFieldVariables (const FieldDescriptor *descriptor, map< string, string > *variables, const Options &options)
 
void SetCommonOneofFieldVariables (const FieldDescriptor *descriptor, map< string, string > *variables)
 
string ClassName (const Descriptor *descriptor, bool qualified)
 
string ClassName (const EnumDescriptor *enum_descriptor, bool qualified)
 
string SuperClassName (const Descriptor *descriptor)
 
string FieldName (const FieldDescriptor *field)
 
string FieldConstantName (const FieldDescriptor *field)
 
const DescriptorFieldScope (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 QualifiedFileLevelSymbol (const string &package, const string &name)
 
string GlobalShutdownFileName (const string &filename)
 
string EscapeTrigraphs (const string &to_escape)
 
string SafeFunctionName (const Descriptor *descriptor, const FieldDescriptor *field, const string &prefix)
 
bool UseUnknownFieldSet (const FileDescriptor *file)
 
bool HasEnumDefinitions (const FileDescriptor *file)
 
bool HasGeneratedMethods (const FileDescriptor *file)
 
bool HasDescriptorMethods (const FileDescriptor *file)
 
bool HasGenericServices (const FileDescriptor *file)
 
bool HasUtf8Verification (const FileDescriptor *file)
 
bool HasFastArraySerialization (const FileDescriptor *file)
 
bool StaticInitializersForced (const FileDescriptor *file)
 
void PrintHandlingOptionalStaticInitializers (const FileDescriptor *file, io::Printer *printer, const char *with_static_init, const char *without_static_init, const char *var1=NULL, const string &val1="", const char *var2=NULL, const string &val2="")
 
void PrintHandlingOptionalStaticInitializers (const map< string, string > &vars, const FileDescriptor *file, io::Printer *printer, const char *with_static_init, const char *without_static_init)
 
bool IsStringOrMessage (const FieldDescriptor *field)
 
string UnderscoresToCamelCase (const string &input, bool cap_next_letter)
 

Variables

const char kThickSeparator []
 
const char kThinSeparator []
 

Function Documentation

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

+ Here is the caller graph for this function:

string google::protobuf::compiler::cpp::ClassName ( const EnumDescriptor *  enum_descriptor,
bool  qualified 
)
const char* google::protobuf::compiler::cpp::DeclaredTypeMethodName ( FieldDescriptor::Type  type)
string google::protobuf::compiler::cpp::DefaultValue ( const FieldDescriptor *  field)
string google::protobuf::compiler::cpp::EscapeTrigraphs ( const string &  to_escape)

+ Here is the caller graph for this function:

string google::protobuf::compiler::cpp::FieldConstantName ( const FieldDescriptor *  field)
string google::protobuf::compiler::cpp::FieldMessageTypeName ( const FieldDescriptor *  field)
string google::protobuf::compiler::cpp::FieldName ( const FieldDescriptor *  field)
const Descriptor* google::protobuf::compiler::cpp::FieldScope ( const FieldDescriptor *  field)
inline
83  {
84  return field->is_extension() ?
85  field->extension_scope() : field->containing_type();
86 }

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

bool google::protobuf::compiler::cpp::HasDescriptorMethods ( const FileDescriptor *  file)
inline
155  {
156  return file->options().optimize_for() != FileOptions::LITE_RUNTIME;
157 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

bool google::protobuf::compiler::cpp::HasFastArraySerialization ( const FileDescriptor *  file)
inline
174  {
175  return file->options().optimize_for() == FileOptions::SPEED;
176 }

+ Here is the call graph for this function:

bool google::protobuf::compiler::cpp::HasGeneratedMethods ( const FileDescriptor *  file)
inline
150  {
151  return file->options().optimize_for() != FileOptions::CODE_SIZE;
152 }

+ Here is the call graph for this function:

bool google::protobuf::compiler::cpp::HasGenericServices ( const FileDescriptor *  file)
inline
160  {
161  return file->service_count() > 0 &&
162  file->options().optimize_for() != FileOptions::LITE_RUNTIME &&
163  file->options().cc_generic_services();
164 }

+ Here is the call graph for this function:

bool google::protobuf::compiler::cpp::HasUtf8Verification ( const FileDescriptor *  file)
inline
167  {
168  return file->options().optimize_for() != FileOptions::LITE_RUNTIME;
169 }

+ Here is the call graph for this function:

string google::protobuf::compiler::cpp::Int32ToString ( int  number)
string google::protobuf::compiler::cpp::Int64ToString ( int64  number)
bool google::protobuf::compiler::cpp::IsStringOrMessage ( const FieldDescriptor *  field)
const char* google::protobuf::compiler::cpp::PrimitiveTypeName ( FieldDescriptor::CppType  type)
void google::protobuf::compiler::cpp::PrintHandlingOptionalStaticInitializers ( const FileDescriptor *  file,
io::Printer *  printer,
const char *  with_static_init,
const char *  without_static_init,
const char *  var1 = NULL,
const string &  val1 = "",
const char *  var2 = NULL,
const string &  val2 = "" 
)

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

string google::protobuf::compiler::cpp::SafeFunctionName ( const Descriptor *  descriptor,
const FieldDescriptor *  field,
const string &  prefix 
)
void google::protobuf::compiler::cpp::SetCommonFieldVariables ( const FieldDescriptor *  descriptor,
map< string, string > *  variables,
const Options &  options 
)
void google::protobuf::compiler::cpp::SetCommonOneofFieldVariables ( const FieldDescriptor *  descriptor,
map< string, string > *  variables 
)
bool google::protobuf::compiler::cpp::StaticInitializersForced ( const FileDescriptor *  file)
string google::protobuf::compiler::cpp::StripProto ( const string &  filename)

+ Here is the caller graph for this function:

string google::protobuf::compiler::cpp::SuperClassName ( const Descriptor *  descriptor)
string google::protobuf::compiler::cpp::UnderscoresToCamelCase ( const string &  input,
bool  cap_next_letter 
)
bool google::protobuf::compiler::cpp::UseUnknownFieldSet ( const FileDescriptor *  file)
inline
140  {
141  return file->options().optimize_for() != FileOptions::LITE_RUNTIME;
142 }

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char google::protobuf::compiler::cpp::kThickSeparator[]
const char google::protobuf::compiler::cpp::kThinSeparator[]