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

#include <message.h>

Classes

class  TypeHandler
 

Public Types

typedef
internal::RepeatedPtrIterator
< Element > 
iterator
 
typedef
internal::RepeatedPtrIterator
< const Element > 
const_iterator
 
typedef Element value_type
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef int size_type
 
typedef ptrdiff_t difference_type
 
typedef std::reverse_iterator
< const_iterator
const_reverse_iterator
 
typedef std::reverse_iterator
< iterator
reverse_iterator
 
typedef
internal::RepeatedPtrOverPtrsIterator
< Element, void * > 
pointer_iterator
 
typedef
internal::RepeatedPtrOverPtrsIterator
< const Element, const void * > 
const_pointer_iterator
 

Public Member Functions

 RepeatedPtrField ()
 
 RepeatedPtrField (const RepeatedPtrField &other)
 
template<typename Iter >
 RepeatedPtrField (Iter begin, const Iter &end)
 
 ~RepeatedPtrField ()
 
RepeatedPtrFieldoperator= (const RepeatedPtrField &other)
 
bool empty () const
 
int size () const
 
const Element & Get (int index) const
 
Element * Mutable (int index)
 
Element * Add ()
 
void RemoveLast ()
 
void DeleteSubrange (int start, int num)
 
void Clear ()
 
void MergeFrom (const RepeatedPtrField &other)
 
void CopyFrom (const RepeatedPtrField &other)
 
void Reserve (int new_size)
 
int Capacity () const
 
Element ** mutable_data ()
 
const Element *constdata () const
 
void Swap (RepeatedPtrField *other)
 
void SwapElements (int index1, int index2)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
pointer_iterator pointer_begin ()
 
const_pointer_iterator pointer_begin () const
 
pointer_iterator pointer_end ()
 
const_pointer_iterator pointer_end () const
 
int SpaceUsedExcludingSelf () const
 
void AddAllocated (Element *value)
 
Element * ReleaseLast ()
 
void ExtractSubrange (int start, int num, Element **elements)
 
int ClearedCount () const
 
void AddCleared (Element *value)
 
Element * ReleaseCleared ()
 

Additional Inherited Members

- Protected Member Functions inherited from google::protobuf::internal::RepeatedPtrFieldBase
 RepeatedPtrFieldBase ()
 
template<typename TypeHandler >
void Destroy ()
 
bool empty () const
 
int size () const
 
template<typename TypeHandler >
const TypeHandler::TypeGet (int index) const
 
template<typename TypeHandler >
TypeHandler::TypeMutable (int index)
 
template<typename TypeHandler >
TypeHandler::TypeAdd ()
 
template<typename TypeHandler >
void RemoveLast ()
 
template<typename TypeHandler >
void Clear ()
 
template<typename TypeHandler >
void MergeFrom (const RepeatedPtrFieldBase &other)
 
template<typename TypeHandler >
void CopyFrom (const RepeatedPtrFieldBase &other)
 
void CloseGap (int start, int num)
 
void Reserve (int new_size)
 
int Capacity () const
 
void *constraw_data () const
 
void ** raw_mutable_data () const
 
template<typename TypeHandler >
TypeHandler::Type ** mutable_data ()
 
template<typename TypeHandler >
const TypeHandler::Type *constdata () const
 
void Swap (RepeatedPtrFieldBase *other)
 
void SwapElements (int index1, int index2)
 
template<typename TypeHandler >
int SpaceUsedExcludingSelf () const
 
template<typename TypeHandler >
TypeHandler::TypeAddFromCleared ()
 
template<typename TypeHandler >
void AddAllocated (typename TypeHandler::Type *value)
 
template<typename TypeHandler >
TypeHandler::TypeReleaseLast ()
 
int ClearedCount () const
 
template<typename TypeHandler >
void AddCleared (typename TypeHandler::Type *value)
 
template<typename TypeHandler >
TypeHandler::TypeReleaseCleared ()
 

Member Typedef Documentation

template<typename Element>
typedef internal::RepeatedPtrIterator<const Element> google::protobuf::RepeatedPtrField< Element >::const_iterator
template<typename Element>
typedef const value_type* google::protobuf::RepeatedPtrField< Element >::const_pointer
template<typename Element>
typedef internal::RepeatedPtrOverPtrsIterator<const Element, const void*> google::protobuf::RepeatedPtrField< Element >::const_pointer_iterator
template<typename Element>
typedef const value_type& google::protobuf::RepeatedPtrField< Element >::const_reference
template<typename Element>
typedef std::reverse_iterator<const_iterator> google::protobuf::RepeatedPtrField< Element >::const_reverse_iterator
template<typename Element>
typedef ptrdiff_t google::protobuf::RepeatedPtrField< Element >::difference_type
template<typename Element>
typedef internal::RepeatedPtrIterator<Element> google::protobuf::RepeatedPtrField< Element >::iterator
template<typename Element>
typedef value_type* google::protobuf::RepeatedPtrField< Element >::pointer
template<typename Element>
typedef internal::RepeatedPtrOverPtrsIterator<Element, void*> google::protobuf::RepeatedPtrField< Element >::pointer_iterator
template<typename Element>
typedef value_type& google::protobuf::RepeatedPtrField< Element >::reference
template<typename Element>
typedef std::reverse_iterator<iterator> google::protobuf::RepeatedPtrField< Element >::reverse_iterator
template<typename Element>
typedef int google::protobuf::RepeatedPtrField< Element >::size_type
template<typename Element>
typedef Element google::protobuf::RepeatedPtrField< Element >::value_type

Constructor & Destructor Documentation

template<typename Element >
google::protobuf::RepeatedPtrField< Element >::RepeatedPtrField ( )
inline
1066 {}
template<typename Element >
google::protobuf::RepeatedPtrField< Element >::RepeatedPtrField ( const RepeatedPtrField< Element > &  other)
inline
1071  : RepeatedPtrFieldBase() {
1072  CopyFrom(other);
1073 }
RepeatedPtrFieldBase()
Definition: repeated_field.h:859
void CopyFrom(const RepeatedPtrField &other)
Definition: repeated_field.h:1171

+ Here is the call graph for this function:

template<typename Element >
template<typename Iter >
google::protobuf::RepeatedPtrField< Element >::RepeatedPtrField ( Iter  begin,
const Iter &  end 
)
inline
1078  {
1079  int reserve = internal::CalculateReserve(begin, end);
1080  if (reserve != -1) {
1081  Reserve(reserve);
1082  }
1083  for (; begin != end; ++begin) {
1084  *Add() = *begin;
1085  }
1086 }
void Reserve(int new_size)
Definition: repeated_field.h:1228
iterator begin()
Definition: repeated_field.h:1429
Element * Add()
Definition: repeated_field.h:1123
iterator end()
Definition: repeated_field.h:1439
int CalculateReserve(Iter begin, Iter end, std::forward_iterator_tag)
Definition: repeated_field.h:81

+ Here is the call graph for this function:

template<typename Element >
google::protobuf::RepeatedPtrField< Element >::~RepeatedPtrField ( )
1089  {
1090  Destroy<TypeHandler>();
1091 }

Member Function Documentation

template<typename Element >
Element * google::protobuf::RepeatedPtrField< Element >::Add ( )
inline
1123  {
1124  return RepeatedPtrFieldBase::Add<TypeHandler>();
1125 }

+ Here is the caller graph for this function:

template<typename Element>
void google::protobuf::RepeatedPtrField< Element >::AddAllocated ( Element *  value)
inline
1202  {
1203  RepeatedPtrFieldBase::AddAllocated<TypeHandler>(value);
1204 }
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the caller graph for this function:

template<typename Element>
void google::protobuf::RepeatedPtrField< Element >::AddCleared ( Element *  value)
inline
1218  {
1219  return RepeatedPtrFieldBase::AddCleared<TypeHandler>(value);
1220 }
const FieldDescriptor value
Definition: descriptor.h:1522
template<typename Element >
RepeatedPtrField< Element >::iterator google::protobuf::RepeatedPtrField< Element >::begin ( )
inline
1429  {
1430  return iterator(raw_data());
1431 }
internal::RepeatedPtrIterator< Element > iterator
Definition: repeated_field.h:479
void *const * raw_data() const
Definition: repeated_field.h:945

+ Here is the caller graph for this function:

template<typename Element >
RepeatedPtrField< Element >::const_iterator google::protobuf::RepeatedPtrField< Element >::begin ( ) const
inline
1434  {
1435  return iterator(raw_data());
1436 }
internal::RepeatedPtrIterator< Element > iterator
Definition: repeated_field.h:479
void *const * raw_data() const
Definition: repeated_field.h:945
template<typename Element >
int google::protobuf::RepeatedPtrField< Element >::Capacity ( ) const
inline
1233  {
1234  return RepeatedPtrFieldBase::Capacity();
1235 }
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::Clear ( )
inline
1160  {
1161  RepeatedPtrFieldBase::Clear<TypeHandler>();
1162 }

+ Here is the caller graph for this function:

template<typename Element >
int google::protobuf::RepeatedPtrField< Element >::ClearedCount ( ) const
inline
1213  {
1214  return RepeatedPtrFieldBase::ClearedCount();
1215 }
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::CopyFrom ( const RepeatedPtrField< Element > &  other)
inline
1172  {
1173  RepeatedPtrFieldBase::CopyFrom<TypeHandler>(other);
1174 }

+ Here is the caller graph for this function:

template<typename Element >
const Element *const * google::protobuf::RepeatedPtrField< Element >::data ( ) const
inline
1182  {
1183  return RepeatedPtrFieldBase::data<TypeHandler>();
1184 }
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::DeleteSubrange ( int  start,
int  num 
)
inline
1133  {
1134  GOOGLE_DCHECK_GE(start, 0);
1135  GOOGLE_DCHECK_GE(num, 0);
1136  GOOGLE_DCHECK_LE(start + num, size());
1137  for (int i = 0; i < num; ++i)
1138  delete RepeatedPtrFieldBase::Mutable<TypeHandler>(start + i);
1139  ExtractSubrange(start, num, NULL);
1140 }
arena_t NULL
Definition: jemalloc_internal.h:624
#define GOOGLE_DCHECK_GE
Definition: common.h:758
#define GOOGLE_DCHECK_LE
Definition: common.h:756
int size() const
Definition: repeated_field.h:1107
void ExtractSubrange(int start, int num, Element **elements)
Definition: repeated_field.h:1143
template<typename Element >
bool google::protobuf::RepeatedPtrField< Element >::empty ( ) const
inline
1102  {
1103  return RepeatedPtrFieldBase::empty();
1104 }
template<typename Element >
RepeatedPtrField< Element >::iterator google::protobuf::RepeatedPtrField< Element >::end ( )
inline
1439  {
1440  return iterator(raw_data() + size());
1441 }
internal::RepeatedPtrIterator< Element > iterator
Definition: repeated_field.h:479
int size() const
Definition: repeated_field.h:1107
void *const * raw_data() const
Definition: repeated_field.h:945

+ Here is the caller graph for this function:

template<typename Element >
RepeatedPtrField< Element >::const_iterator google::protobuf::RepeatedPtrField< Element >::end ( ) const
inline
1444  {
1445  return iterator(raw_data() + size());
1446 }
internal::RepeatedPtrIterator< Element > iterator
Definition: repeated_field.h:479
int size() const
Definition: repeated_field.h:1107
void *const * raw_data() const
Definition: repeated_field.h:945
template<typename Element>
void google::protobuf::RepeatedPtrField< Element >::ExtractSubrange ( int  start,
int  num,
Element **  elements 
)
inline
1144  {
1145  GOOGLE_DCHECK_GE(start, 0);
1146  GOOGLE_DCHECK_GE(num, 0);
1147  GOOGLE_DCHECK_LE(start + num, size());
1148 
1149  if (num > 0) {
1150  // Save the values of the removed elements if requested.
1151  if (elements != NULL) {
1152  for (int i = 0; i < num; ++i)
1153  elements[i] = RepeatedPtrFieldBase::Mutable<TypeHandler>(i + start);
1154  }
1155  CloseGap(start, num);
1156  }
1157 }
arena_t NULL
Definition: jemalloc_internal.h:624
void CloseGap(int start, int num)
Definition: repeated_field.h:292
#define GOOGLE_DCHECK_GE
Definition: common.h:758
#define GOOGLE_DCHECK_LE
Definition: common.h:756
int size() const
Definition: repeated_field.h:1107
template<typename Element >
const Element & google::protobuf::RepeatedPtrField< Element >::Get ( int  index) const
inline
1112  {
1113  return RepeatedPtrFieldBase::Get<TypeHandler>(index);
1114 }

+ Here is the caller graph for this function:

template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::MergeFrom ( const RepeatedPtrField< Element > &  other)
inline
1166  {
1167  RepeatedPtrFieldBase::MergeFrom<TypeHandler>(other);
1168 }
template<typename Element >
Element * google::protobuf::RepeatedPtrField< Element >::Mutable ( int  index)
inline
1118  {
1119  return RepeatedPtrFieldBase::Mutable<TypeHandler>(index);
1120 }

+ Here is the caller graph for this function:

template<typename Element >
Element ** google::protobuf::RepeatedPtrField< Element >::mutable_data ( )
inline
1177  {
1178  return RepeatedPtrFieldBase::mutable_data<TypeHandler>();
1179 }
template<typename Element >
RepeatedPtrField< Element > & google::protobuf::RepeatedPtrField< Element >::operator= ( const RepeatedPtrField< Element > &  other)
inline
1095  {
1096  if (this != &other)
1097  CopyFrom(other);
1098  return *this;
1099 }
void CopyFrom(const RepeatedPtrField &other)
Definition: repeated_field.h:1171
template<typename Element >
RepeatedPtrField< Element >::pointer_iterator google::protobuf::RepeatedPtrField< Element >::pointer_begin ( )
inline
1450  {
1452 }
internal::RepeatedPtrOverPtrsIterator< Element, void * > pointer_iterator
Definition: repeated_field.h:513
void ** raw_mutable_data() const
Definition: repeated_field.h:949
template<typename Element >
RepeatedPtrField< Element >::const_pointer_iterator google::protobuf::RepeatedPtrField< Element >::pointer_begin ( ) const
inline
1455  {
1456  return const_pointer_iterator(const_cast<const void**>(raw_mutable_data()));
1457 }
internal::RepeatedPtrOverPtrsIterator< const Element, const void * > const_pointer_iterator
Definition: repeated_field.h:515
void ** raw_mutable_data() const
Definition: repeated_field.h:949
template<typename Element >
RepeatedPtrField< Element >::pointer_iterator google::protobuf::RepeatedPtrField< Element >::pointer_end ( )
inline
1460  {
1461  return pointer_iterator(raw_mutable_data() + size());
1462 }
internal::RepeatedPtrOverPtrsIterator< Element, void * > pointer_iterator
Definition: repeated_field.h:513
void ** raw_mutable_data() const
Definition: repeated_field.h:949
int size() const
Definition: repeated_field.h:1107
template<typename Element >
RepeatedPtrField< Element >::const_pointer_iterator google::protobuf::RepeatedPtrField< Element >::pointer_end ( ) const
inline
1465  {
1466  return const_pointer_iterator(
1467  const_cast<const void**>(raw_mutable_data() + size()));
1468 }
internal::RepeatedPtrOverPtrsIterator< const Element, const void * > const_pointer_iterator
Definition: repeated_field.h:515
void ** raw_mutable_data() const
Definition: repeated_field.h:949
int size() const
Definition: repeated_field.h:1107
template<typename Element>
reverse_iterator google::protobuf::RepeatedPtrField< Element >::rbegin ( )
inline
497  {
498  return reverse_iterator(end());
499  }
iterator end()
Definition: repeated_field.h:1439
std::reverse_iterator< iterator > reverse_iterator
Definition: repeated_field.h:496
template<typename Element>
const_reverse_iterator google::protobuf::RepeatedPtrField< Element >::rbegin ( ) const
inline
500  {
501  return const_reverse_iterator(end());
502  }
iterator end()
Definition: repeated_field.h:1439
std::reverse_iterator< const_iterator > const_reverse_iterator
Definition: repeated_field.h:495
template<typename Element >
Element * google::protobuf::RepeatedPtrField< Element >::ReleaseCleared ( )
inline
1223  {
1224  return RepeatedPtrFieldBase::ReleaseCleared<TypeHandler>();
1225 }
template<typename Element >
Element * google::protobuf::RepeatedPtrField< Element >::ReleaseLast ( )
inline
1207  {
1208  return RepeatedPtrFieldBase::ReleaseLast<TypeHandler>();
1209 }
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::RemoveLast ( )
inline
1128  {
1129  RepeatedPtrFieldBase::RemoveLast<TypeHandler>();
1130 }
template<typename Element>
reverse_iterator google::protobuf::RepeatedPtrField< Element >::rend ( )
inline
503  {
504  return reverse_iterator(begin());
505  }
iterator begin()
Definition: repeated_field.h:1429
std::reverse_iterator< iterator > reverse_iterator
Definition: repeated_field.h:496
template<typename Element>
const_reverse_iterator google::protobuf::RepeatedPtrField< Element >::rend ( ) const
inline
506  {
507  return const_reverse_iterator(begin());
508  }
iterator begin()
Definition: repeated_field.h:1429
std::reverse_iterator< const_iterator > const_reverse_iterator
Definition: repeated_field.h:495
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::Reserve ( int  new_size)
inline
1228  {
1229  return RepeatedPtrFieldBase::Reserve(new_size);
1230 }
template<typename Element >
int google::protobuf::RepeatedPtrField< Element >::size ( ) const
inline
1107  {
1108  return RepeatedPtrFieldBase::size();
1109 }

+ Here is the caller graph for this function:

template<typename Element >
int google::protobuf::RepeatedPtrField< Element >::SpaceUsedExcludingSelf ( ) const
inline
1197  {
1198  return RepeatedPtrFieldBase::SpaceUsedExcludingSelf<TypeHandler>();
1199 }
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::Swap ( RepeatedPtrField< Element > *  other)
1187  {
1188  RepeatedPtrFieldBase::Swap(other);
1189 }
template<typename Element >
void google::protobuf::RepeatedPtrField< Element >::SwapElements ( int  index1,
int  index2 
)
1192  {
1193  RepeatedPtrFieldBase::SwapElements(index1, index2);
1194 }

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