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

#include <repeated_field.h>

Public Types

typedef GenericType Type
 

Public Member Functions

template<>
void Merge (const MessageLite &from, MessageLite *to)
 
template<>
const MessageLitedefault_instance ()
 
template<>
const Messagedefault_instance ()
 

Static Public Member Functions

static GenericType * New ()
 
static void Delete (GenericType *value)
 
static void Clear (GenericType *value)
 
static void Merge (const GenericType &from, GenericType *to)
 
static int SpaceUsed (const GenericType &value)
 
static const Typedefault_instance ()
 

Member Typedef Documentation

template<typename GenericType>
typedef GenericType google::protobuf::internal::GenericTypeHandler< GenericType >::Type

Member Function Documentation

template<typename GenericType>
static void google::protobuf::internal::GenericTypeHandler< GenericType >::Clear ( GenericType *  value)
inlinestatic
364 { value->Clear(); }
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename GenericType>
static const Type& google::protobuf::internal::GenericTypeHandler< GenericType >::default_instance ( )
inlinestatic
369 { return Type::default_instance(); }
template<>
const MessageLite & google::protobuf::internal::GenericTypeHandler< MessageLite >::default_instance ( )
inline
379  {
380  // Yes, the behavior of the code is undefined, but this function is only
381  // called when we're already deep into the world of undefined, because the
382  // caller called Get(index) out of bounds.
383  MessageLite* null = NULL;
384  return *null;
385 }
arena_t NULL
Definition: jemalloc_internal.h:624
template<>
const Message & google::protobuf::internal::GenericTypeHandler< Message >::default_instance ( )
inline
388  {
389  // Yes, the behavior of the code is undefined, but this function is only
390  // called when we're already deep into the world of undefined, because the
391  // caller called Get(index) out of bounds.
392  Message* null = NULL;
393  return *null;
394 }
arena_t NULL
Definition: jemalloc_internal.h:624
template<typename GenericType>
static void google::protobuf::internal::GenericTypeHandler< GenericType >::Delete ( GenericType *  value)
inlinestatic
363 { delete value; }
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename GenericType>
static void google::protobuf::internal::GenericTypeHandler< GenericType >::Merge ( const GenericType &  from,
GenericType *  to 
)
inlinestatic
365  {
366  to->MergeFrom(from);
367  }
template<>
void google::protobuf::internal::GenericTypeHandler< MessageLite >::Merge ( const MessageLite from,
MessageLite to 
)
inline
374  {
375  to->CheckTypeAndMergeFrom(from);
376 }

+ Here is the call graph for this function:

template<typename GenericType>
static GenericType* google::protobuf::internal::GenericTypeHandler< GenericType >::New ( )
inlinestatic
362 { return new GenericType; }
template<typename GenericType>
static int google::protobuf::internal::GenericTypeHandler< GenericType >::SpaceUsed ( const GenericType &  value)
inlinestatic
368 { return value.SpaceUsed(); }
const FieldDescriptor value
Definition: descriptor.h:1522

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