TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::Descriptor Class Reference

#include <descriptor.h>

Classes

struct  ExtensionRange
 

Public Member Functions

const string & name () const
 
const string & full_name () const
 
int index () const
 
const FileDescriptorfile () const
 
const Descriptorcontaining_type () const
 
const MessageOptionsoptions () const
 
void CopyTo (DescriptorProto *proto) const
 
string DebugString () const
 
bool is_placeholder () const
 
int field_count () const
 
const FieldDescriptorfield (int index) const
 
const FieldDescriptorFindFieldByNumber (int number) const
 
const FieldDescriptorFindFieldByName (const string &name) const
 
const FieldDescriptorFindFieldByLowercaseName (const string &lowercase_name) const
 
const FieldDescriptorFindFieldByCamelcaseName (const string &camelcase_name) const
 
int oneof_decl_count () const
 
const OneofDescriptoroneof_decl (int index) const
 
const OneofDescriptorFindOneofByName (const string &name) const
 
int nested_type_count () const
 
const Descriptornested_type (int index) const
 
const DescriptorFindNestedTypeByName (const string &name) const
 
int enum_type_count () const
 
const EnumDescriptorenum_type (int index) const
 
const EnumDescriptorFindEnumTypeByName (const string &name) const
 
const EnumValueDescriptorFindEnumValueByName (const string &name) const
 
int extension_range_count () const
 
const ExtensionRangeextension_range (int index) const
 
bool IsExtensionNumber (int number) const
 
const ExtensionRangeFindExtensionRangeContainingNumber (int number) const
 
int extension_count () const
 
const FieldDescriptorextension (int index) const
 
const FieldDescriptorFindExtensionByName (const string &name) const
 
const FieldDescriptorFindExtensionByLowercaseName (const string &name) const
 
const FieldDescriptorFindExtensionByCamelcaseName (const string &name) const
 
bool GetSourceLocation (SourceLocation *out_location) const
 

Private Types

typedef MessageOptions OptionsType
 

Private Member Functions

void DebugString (int depth, string *contents) const
 
void GetLocationPath (vector< int > *output) const
 
 Descriptor ()
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Descriptor)
 

Private Attributes

const string * name_
 
const string * full_name_
 
const FileDescriptorfile_
 
const Descriptorcontaining_type_
 
const MessageOptionsoptions_
 
bool is_placeholder_
 
bool is_unqualified_placeholder_
 
int field_count_
 
FieldDescriptorfields_
 
int oneof_decl_count_
 
OneofDescriptoroneof_decls_
 
int nested_type_count_
 
Descriptornested_types_
 
int enum_type_count_
 
EnumDescriptorenum_types_
 
int extension_range_count_
 
ExtensionRangeextension_ranges_
 
int extension_count_
 
FieldDescriptorextensions_
 

Friends

class DescriptorBuilder
 
class EnumDescriptor
 
class FieldDescriptor
 
class OneofDescriptor
 
class MethodDescriptor
 
class FileDescriptor
 

Member Typedef Documentation

Constructor & Destructor Documentation

google::protobuf::Descriptor::Descriptor ( )
inlineprivate
320 {}

Member Function Documentation

const Descriptor* google::protobuf::Descriptor::containing_type ( ) const
void google::protobuf::Descriptor::CopyTo ( DescriptorProto proto) const
string google::protobuf::Descriptor::DebugString ( ) const
void google::protobuf::Descriptor::DebugString ( int  depth,
string *  contents 
) const
private
const EnumDescriptor* google::protobuf::Descriptor::enum_type ( int  index) const
int google::protobuf::Descriptor::enum_type_count ( ) const
const FieldDescriptor* google::protobuf::Descriptor::extension ( int  index) const
int google::protobuf::Descriptor::extension_count ( ) const
const ExtensionRange* google::protobuf::Descriptor::extension_range ( int  index) const
int google::protobuf::Descriptor::extension_range_count ( ) const
const FieldDescriptor* google::protobuf::Descriptor::field ( int  index) const
int google::protobuf::Descriptor::field_count ( ) const
const FileDescriptor* google::protobuf::Descriptor::file ( ) const
const EnumDescriptor* google::protobuf::Descriptor::FindEnumTypeByName ( const string &  name) const
const EnumValueDescriptor* google::protobuf::Descriptor::FindEnumValueByName ( const string &  name) const
const FieldDescriptor* google::protobuf::Descriptor::FindExtensionByCamelcaseName ( const string &  name) const
const FieldDescriptor* google::protobuf::Descriptor::FindExtensionByLowercaseName ( const string &  name) const
const FieldDescriptor* google::protobuf::Descriptor::FindExtensionByName ( const string &  name) const
const ExtensionRange* google::protobuf::Descriptor::FindExtensionRangeContainingNumber ( int  number) const

+ Here is the caller graph for this function:

const FieldDescriptor* google::protobuf::Descriptor::FindFieldByCamelcaseName ( const string &  camelcase_name) const
const FieldDescriptor* google::protobuf::Descriptor::FindFieldByLowercaseName ( const string &  lowercase_name) const
const FieldDescriptor* google::protobuf::Descriptor::FindFieldByName ( const string &  name) const
const FieldDescriptor* google::protobuf::Descriptor::FindFieldByNumber ( int  number) const
const Descriptor* google::protobuf::Descriptor::FindNestedTypeByName ( const string &  name) const
const OneofDescriptor* google::protobuf::Descriptor::FindOneofByName ( const string &  name) const
const string& google::protobuf::Descriptor::full_name ( ) const

+ Here is the caller graph for this function:

void google::protobuf::Descriptor::GetLocationPath ( vector< int > *  output) const
private
bool google::protobuf::Descriptor::GetSourceLocation ( SourceLocation out_location) const
google::protobuf::Descriptor::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Descriptor  )
private
int google::protobuf::Descriptor::index ( ) const
inline
1605  {
1606  if (containing_type_ == NULL) {
1607  return static_cast<int>(this - file_->message_types_);
1608  } else {
1609  return static_cast<int>(this - containing_type_->nested_types_);
1610  }
1611 }
const Descriptor * containing_type_
Definition: descriptor.h:295
const FileDescriptor * file_
Definition: descriptor.h:294
arena_t NULL
Definition: jemalloc_internal.h:624
Descriptor * nested_types_
Definition: descriptor.h:308
Descriptor * message_types_
Definition: descriptor.h:1113
bool google::protobuf::Descriptor::is_placeholder ( ) const
const FieldDescriptor *bool google::protobuf::Descriptor::IsExtensionNumber ( int  number) const
inline
1573  {
1574  return FindExtensionRangeContainingNumber(number) != NULL;
1575 }
const ExtensionRange * FindExtensionRangeContainingNumber(int number) const
arena_t NULL
Definition: jemalloc_internal.h:624

+ Here is the call graph for this function:

const string& google::protobuf::Descriptor::name ( ) const

+ Here is the caller graph for this function:

const Descriptor* google::protobuf::Descriptor::nested_type ( int  index) const
int google::protobuf::Descriptor::nested_type_count ( ) const
const OneofDescriptor* google::protobuf::Descriptor::oneof_decl ( int  index) const
int google::protobuf::Descriptor::oneof_decl_count ( ) const
const MessageOptions& google::protobuf::Descriptor::options ( ) const

Friends And Related Function Documentation

friend class DescriptorBuilder
friend
friend class EnumDescriptor
friend
friend class FieldDescriptor
friend
friend class FileDescriptor
friend
friend class MethodDescriptor
friend
friend class OneofDescriptor
friend

Member Data Documentation

const Descriptor* google::protobuf::Descriptor::containing_type_
private
int google::protobuf::Descriptor::enum_type_count_
private
EnumDescriptor* google::protobuf::Descriptor::enum_types_
private
int google::protobuf::Descriptor::extension_count_
private
int google::protobuf::Descriptor::extension_range_count_
private
ExtensionRange* google::protobuf::Descriptor::extension_ranges_
private
FieldDescriptor* google::protobuf::Descriptor::extensions_
private
int google::protobuf::Descriptor::field_count_
private
FieldDescriptor* google::protobuf::Descriptor::fields_
private
const FileDescriptor* google::protobuf::Descriptor::file_
private
const string* google::protobuf::Descriptor::full_name_
private
bool google::protobuf::Descriptor::is_placeholder_
private
bool google::protobuf::Descriptor::is_unqualified_placeholder_
private
const string* google::protobuf::Descriptor::name_
private
int google::protobuf::Descriptor::nested_type_count_
private
Descriptor* google::protobuf::Descriptor::nested_types_
private
int google::protobuf::Descriptor::oneof_decl_count_
private
OneofDescriptor* google::protobuf::Descriptor::oneof_decls_
private
const MessageOptions* google::protobuf::Descriptor::options_
private

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