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

#include <descriptor.h>

Public Member Functions

const string & name () const
 
const string & full_name () const
 
int index () const
 
const FileDescriptorfile () const
 
int value_count () const
 
const EnumValueDescriptorvalue (int index) const
 
const EnumValueDescriptorFindValueByName (const string &name) const
 
const EnumValueDescriptorFindValueByNumber (int number) const
 
const Descriptorcontaining_type () const
 
const EnumOptionsoptions () const
 
void CopyTo (EnumDescriptorProto *proto) const
 
string DebugString () const
 
bool is_placeholder () const
 
bool GetSourceLocation (SourceLocation *out_location) const
 

Private Types

typedef EnumOptions OptionsType
 

Private Member Functions

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

Private Attributes

const string * name_
 
const string * full_name_
 
const FileDescriptorfile_
 
const Descriptorcontaining_type_
 
const EnumOptionsoptions_
 
bool is_placeholder_
 
bool is_unqualified_placeholder_
 
int value_count_
 
EnumValueDescriptorvalues_
 

Friends

class DescriptorBuilder
 
class Descriptor
 
class FieldDescriptor
 
class EnumValueDescriptor
 
class FileDescriptor
 

Member Typedef Documentation

Constructor & Destructor Documentation

google::protobuf::EnumDescriptor::EnumDescriptor ( )
inlineprivate
766 {}

Member Function Documentation

const Descriptor* google::protobuf::EnumDescriptor::containing_type ( ) const
void google::protobuf::EnumDescriptor::CopyTo ( EnumDescriptorProto proto) const
string google::protobuf::EnumDescriptor::DebugString ( ) const
void google::protobuf::EnumDescriptor::DebugString ( int  depth,
string *  contents 
) const
private
const FileDescriptor* google::protobuf::EnumDescriptor::file ( ) const
const EnumValueDescriptor* google::protobuf::EnumDescriptor::FindValueByName ( const string &  name) const

+ Here is the caller graph for this function:

const EnumValueDescriptor* google::protobuf::EnumDescriptor::FindValueByNumber ( int  number) const
const string& google::protobuf::EnumDescriptor::full_name ( ) const

+ Here is the caller graph for this function:

void google::protobuf::EnumDescriptor::GetLocationPath ( vector< int > *  output) const
private
bool google::protobuf::EnumDescriptor::GetSourceLocation ( SourceLocation out_location) const
google::protobuf::EnumDescriptor::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( EnumDescriptor  )
private
int google::protobuf::EnumDescriptor::index ( ) const
inline
1617  {
1618  if (containing_type_ == NULL) {
1619  return static_cast<int>(this - file_->enum_types_);
1620  } else {
1621  return static_cast<int>(this - containing_type_->enum_types_);
1622  }
1623 }
EnumDescriptor * enum_types_
Definition: descriptor.h:310
EnumDescriptor * enum_types_
Definition: descriptor.h:1115
arena_t NULL
Definition: jemalloc_internal.h:624
const Descriptor * containing_type_
Definition: descriptor.h:751
const FileDescriptor * file_
Definition: descriptor.h:750
bool google::protobuf::EnumDescriptor::is_placeholder ( ) const
const string& google::protobuf::EnumDescriptor::name ( ) const
const EnumOptions& google::protobuf::EnumDescriptor::options ( ) const
const EnumValueDescriptor* google::protobuf::EnumDescriptor::value ( int  index) const
int google::protobuf::EnumDescriptor::value_count ( ) const

Friends And Related Function Documentation

friend class Descriptor
friend
friend class DescriptorBuilder
friend
friend class EnumValueDescriptor
friend
friend class FieldDescriptor
friend
friend class FileDescriptor
friend

Member Data Documentation

const Descriptor* google::protobuf::EnumDescriptor::containing_type_
private
const FileDescriptor* google::protobuf::EnumDescriptor::file_
private
const string* google::protobuf::EnumDescriptor::full_name_
private
bool google::protobuf::EnumDescriptor::is_placeholder_
private
bool google::protobuf::EnumDescriptor::is_unqualified_placeholder_
private
const string* google::protobuf::EnumDescriptor::name_
private
const EnumOptions* google::protobuf::EnumDescriptor::options_
private
int google::protobuf::EnumDescriptor::value_count_
private
EnumValueDescriptor* google::protobuf::EnumDescriptor::values_
private

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