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

#include <extension_set.h>

Public Types

typedef const TypeConstType
 
typedef TypeMutableType
 
typedef
RepeatedMessageTypeTraits
< Type
Repeated
 
typedef RepeatedPtrField< TypeRepeatedFieldType
 

Static Public Member Functions

static ConstType Get (int number, const ExtensionSet &set, int index)
 
static MutableType Mutable (int number, int index, ExtensionSet *set)
 
static MutableType Add (int number, FieldType field_type, ExtensionSet *set)
 
static const RepeatedPtrField
< Type > & 
GetRepeated (int number, const ExtensionSet &set)
 
static RepeatedPtrField< Type > * MutableRepeated (int number, FieldType field_type, bool is_packed, ExtensionSet *set)
 
static const RepeatedFieldTypeGetDefaultRepeatedField ()
 

Member Typedef Documentation

Member Function Documentation

template<typename Type >
static MutableType google::protobuf::internal::RepeatedMessageTypeTraits< Type >::Add ( int  number,
FieldType  field_type,
ExtensionSet set 
)
inlinestatic
982  {
983  return static_cast<Type*>(
984  set->AddMessage(number, field_type, Type::default_instance(), NULL));
985  }
arena_t NULL
Definition: jemalloc_internal.h:624
Type
Type of JSON value.
Definition: rapidjson.h:642

+ Here is the call graph for this function:

template<typename Type >
static ConstType google::protobuf::internal::RepeatedMessageTypeTraits< Type >::Get ( int  number,
const ExtensionSet set,
int  index 
)
inlinestatic
975  {
976  return static_cast<const Type&>(set.GetRepeatedMessage(number, index));
977  }
Type
Type of JSON value.
Definition: rapidjson.h:642

+ Here is the call graph for this function:

template<typename Type >
const RepeatedMessageTypeTraits< Type >::RepeatedFieldType * google::protobuf::internal::RepeatedMessageTypeTraits< Type >::GetDefaultRepeatedField ( )
inlinestatic
1022  {
1023  return reinterpret_cast<const RepeatedFieldType*>(
1025 }
RepeatedPtrField< Type > RepeatedFieldType
Definition: extension_set.h:973
static const RepeatedFieldType * default_repeated_field_
Definition: extension_set.h:1017

+ Here is the caller graph for this function:

template<typename Type >
static const RepeatedPtrField<Type>& google::protobuf::internal::RepeatedMessageTypeTraits< Type >::GetRepeated ( int  number,
const ExtensionSet set 
)
inlinestatic
988  {
989  // See notes above in RepeatedEnumTypeTraits::GetRepeated(): same
990  // casting hack applies here, because a RepeatedPtrField<MessageLite>
991  // cannot naturally become a RepeatedPtrType<Type> even though Type is
992  // presumably a message. google::protobuf::Message goes through similar contortions
993  // with a reinterpret_cast<>.
994  return *reinterpret_cast<const RepeatedPtrField<Type>*>(
995  set.GetRawRepeatedField(number, GetDefaultRepeatedField()));
996  }
static const RepeatedFieldType * GetDefaultRepeatedField()
Definition: extension_set.h:1022

+ Here is the call graph for this function:

template<typename Type >
static MutableType google::protobuf::internal::RepeatedMessageTypeTraits< Type >::Mutable ( int  number,
int  index,
ExtensionSet set 
)
inlinestatic
978  {
979  return static_cast<Type*>(set->MutableRepeatedMessage(number, index));
980  }
Type
Type of JSON value.
Definition: rapidjson.h:642

+ Here is the call graph for this function:

template<typename Type >
static RepeatedPtrField<Type>* google::protobuf::internal::RepeatedMessageTypeTraits< Type >::MutableRepeated ( int  number,
FieldType  field_type,
bool  is_packed,
ExtensionSet set 
)
inlinestatic
1000  {
1001  return reinterpret_cast<RepeatedPtrField<Type>*>(
1002  set->MutableRawRepeatedField(number, field_type, is_packed, NULL));
1003  }
arena_t NULL
Definition: jemalloc_internal.h:624

+ Here is the call graph for this function:


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