TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::internal::EnumTypeTraits< Type, IsValid > Class Template Reference

#include <extension_set.h>

Public Types

typedef Type ConstType
 
typedef Type MutableType
 
typedef EnumTypeTraits< Type,
IsValid > 
Singular
 

Static Public Member Functions

static ConstType Get (int number, const ExtensionSet &set, ConstType default_value)
 
static void Set (int number, FieldType field_type, ConstType value, ExtensionSet *set)
 

Member Typedef Documentation

template<typename Type , bool IsValid>
typedef Type google::protobuf::internal::EnumTypeTraits< Type, IsValid >::ConstType
template<typename Type , bool IsValid>
typedef Type google::protobuf::internal::EnumTypeTraits< Type, IsValid >::MutableType
template<typename Type , bool IsValid>
typedef EnumTypeTraits<Type, IsValid> google::protobuf::internal::EnumTypeTraits< Type, IsValid >::Singular

Member Function Documentation

template<typename Type , bool IsValid>
static ConstType google::protobuf::internal::EnumTypeTraits< Type, IsValid >::Get ( int  number,
const ExtensionSet set,
ConstType  default_value 
)
inlinestatic
866  {
867  return static_cast<Type>(set.GetEnum(number, default_value));
868  }
Type
Type of JSON value.
Definition: rapidjson.h:642

+ Here is the call graph for this function:

template<typename Type , bool IsValid>
static void google::protobuf::internal::EnumTypeTraits< Type, IsValid >::Set ( int  number,
FieldType  field_type,
ConstType  value,
ExtensionSet set 
)
inlinestatic
870  {
871  GOOGLE_DCHECK(IsValid(value));
872  set->SetEnum(number, field_type, value, NULL);
873  }
#define GOOGLE_DCHECK
Definition: common.h:752
arena_t NULL
Definition: jemalloc_internal.h:624
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:


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