BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends
google::protobuf::FieldDescriptor Class Reference

#include <descriptor.h>

Collaboration diagram for google::protobuf::FieldDescriptor:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Type {
  TYPE_DOUBLE = 1, TYPE_FLOAT = 2, TYPE_INT64 = 3, TYPE_UINT64 = 4,
  TYPE_INT32 = 5, TYPE_FIXED64 = 6, TYPE_FIXED32 = 7, TYPE_BOOL = 8,
  TYPE_STRING = 9, TYPE_GROUP = 10, TYPE_MESSAGE = 11, TYPE_BYTES = 12,
  TYPE_UINT32 = 13, TYPE_ENUM = 14, TYPE_SFIXED32 = 15, TYPE_SFIXED64 = 16,
  TYPE_SINT32 = 17, TYPE_SINT64 = 18, MAX_TYPE = 18
}
enum  CppType {
  CPPTYPE_INT32 = 1, CPPTYPE_INT64 = 2, CPPTYPE_UINT32 = 3, CPPTYPE_UINT64 = 4,
  CPPTYPE_DOUBLE = 5, CPPTYPE_FLOAT = 6, CPPTYPE_BOOL = 7, CPPTYPE_ENUM = 8,
  CPPTYPE_STRING = 9, CPPTYPE_MESSAGE = 10, MAX_CPPTYPE = 10
}
enum  Label { LABEL_OPTIONAL = 1, LABEL_REQUIRED = 2, LABEL_REPEATED = 3, MAX_LABEL = 3 }

Public Member Functions

const string & name () const
const string & full_name () const
const FileDescriptorfile () const
bool is_extension () const
int number () const
const string & lowercase_name () const
const string & camelcase_name () const
Type type () const
CppType cpp_type () const
Label label () const
bool is_required () const
bool is_optional () const
bool is_repeated () const
bool is_packable () const
int index () const
bool has_default_value () const
int32 default_value_int32 () const
int64 default_value_int64 () const
uint32 default_value_uint32 () const
uint64 default_value_uint64 () const
float default_value_float () const
double default_value_double () const
bool default_value_bool () const
const EnumValueDescriptordefault_value_enum () const
const string & default_value_string () const
const Descriptorcontaining_type () const
const Descriptorextension_scope () const
const Descriptormessage_type () const
const EnumDescriptorenum_type () const
const FieldDescriptorexperimental_map_key () const
const FieldOptionsoptions () const
void CopyTo (FieldDescriptorProto *proto) const
string DebugString () const

Static Public Member Functions

static CppType TypeToCppType (Type type)
static bool IsTypePackable (Type field_type)

Static Public Attributes

static const int kMaxNumber = (1 << 29) - 1
static const int kFirstReservedNumber = 19000
static const int kLastReservedNumber = 19999

Friends

class DescriptorBuilder
class FileDescriptor
class Descriptor

Member Enumeration Documentation

Enumerator:
CPPTYPE_INT32 
CPPTYPE_INT64 
CPPTYPE_UINT32 
CPPTYPE_UINT64 
CPPTYPE_DOUBLE 
CPPTYPE_FLOAT 
CPPTYPE_BOOL 
CPPTYPE_ENUM 
CPPTYPE_STRING 
CPPTYPE_MESSAGE 
MAX_CPPTYPE 
Enumerator:
LABEL_OPTIONAL 
LABEL_REQUIRED 
LABEL_REPEATED 
MAX_LABEL 
Enumerator:
TYPE_DOUBLE 
TYPE_FLOAT 
TYPE_INT64 
TYPE_UINT64 
TYPE_INT32 
TYPE_FIXED64 
TYPE_FIXED32 
TYPE_BOOL 
TYPE_STRING 
TYPE_GROUP 
TYPE_MESSAGE 
TYPE_BYTES 
TYPE_UINT32 
TYPE_ENUM 
TYPE_SFIXED32 
TYPE_SFIXED64 
TYPE_SINT32 
TYPE_SINT64 
MAX_TYPE 

Member Function Documentation

Here is the call graph for this function:

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

bool google::protobuf::FieldDescriptor::IsTypePackable ( Type  field_type) [inline, static]

Here is the caller graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Descriptor [friend]
friend class DescriptorBuilder [friend]
friend class FileDescriptor [friend]

Member Data Documentation

const int google::protobuf::FieldDescriptor::kMaxNumber = (1 << 29) - 1 [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines