Classes | Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
google::protobuf::RepeatedField< Element > Class Template Reference

#include <message.h>

Classes

struct  Rep
 

Public Types

typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef ptrdiff_t difference_type
 
typedef Element * iterator
 
typedef value_typepointer
 
typedef value_typereference
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef int size_type
 
typedef Element value_type
 

Public Member Functions

Element * Add ()
 
void Add (const Element &value)
 
template<typename Iter >
void Add (Iter begin, Iter end)
 
Element * AddAlreadyReserved ()
 
void AddAlreadyReserved (const Element &value)
 
Element * AddNAlreadyReserved (int elements)
 
Element & at (int index)
 
const Element & at (int index) const
 
iterator begin ()
 
const_iterator begin () const
 
int Capacity () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void Clear ()
 
void CopyFrom (const RepeatedField &other)
 
const Element * data () const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (const_iterator first, const_iterator last)
 
iterator erase (const_iterator position)
 
void ExtractSubrange (int start, int num, Element *elements)
 
const Element & Get (int index) const
 
ArenaGetArena () const
 
void InternalSwap (RepeatedField *other)
 
void MergeFrom (const RepeatedField &other)
 
Element * Mutable (int index)
 
Element * mutable_data ()
 
RepeatedFieldoperator= (const RepeatedField &other)
 
RepeatedFieldoperator= (RepeatedField &&other) noexcept
 
Element & operator[] (int index)
 
const Element & operator[] (int index) const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
void RemoveLast ()
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
 RepeatedField ()
 
 RepeatedField (Arena *arena)
 
 RepeatedField (const RepeatedField &other)
 
template<typename Iter >
 RepeatedField (Iter begin, const Iter &end)
 
 RepeatedField (RepeatedField &&other) noexcept
 
void Reserve (int new_size)
 
void Resize (int new_size, const Element &value)
 
void Set (int index, const Element &value)
 
int size () const
 
int SpaceUsedExcludingSelf () const
 
size_t SpaceUsedExcludingSelfLong () const
 
void Swap (RepeatedField *other)
 
void SwapElements (int index1, int index2)
 
void Truncate (int new_size)
 
void UnsafeArenaSwap (RepeatedField *other)
 
 ~RepeatedField ()
 

Public Attributes

const typedef Element * const_iterator
 
const typedef value_typeconst_pointer
 
const typedef value_typeconst_reference
 

Private Types

typedef void InternalArenaConstructable_
 

Private Member Functions

void CopyArray (Element *to, const Element *from, int size)
 
Element * elements () const
 
ArenaGetArenaNoVirtual () const
 
void InternalDeallocate (Rep *rep, int size)
 
void MoveArray (Element *to, Element *from, int size)
 
Reprep () const
 
Element * unsafe_elements () const
 

Private Attributes

voidarena_or_elements_
 
int current_size_
 
int total_size_
 

Static Private Attributes

static const int kInitialSize = 0
 
static const size_t kRepHeaderSize
 

Friends

class Arena
 

Detailed Description

template<typename Element>
class google::protobuf::RepeatedField< Element >

Definition at line 184 of file src/google/protobuf/message.h.

Member Typedef Documentation

◆ const_reverse_iterator

template<typename Element >
typedef std::reverse_iterator<const_iterator> google::protobuf::RepeatedField< Element >::const_reverse_iterator

Definition at line 230 of file repeated_field.h.

◆ difference_type

template<typename Element >
typedef ptrdiff_t google::protobuf::RepeatedField< Element >::difference_type

Definition at line 220 of file repeated_field.h.

◆ InternalArenaConstructable_

template<typename Element >
typedef void google::protobuf::RepeatedField< Element >::InternalArenaConstructable_
private

Definition at line 324 of file repeated_field.h.

◆ iterator

template<typename Element >
typedef Element* google::protobuf::RepeatedField< Element >::iterator

Definition at line 212 of file repeated_field.h.

◆ pointer

template<typename Element >
typedef value_type* google::protobuf::RepeatedField< Element >::pointer

Definition at line 217 of file repeated_field.h.

◆ reference

template<typename Element >
typedef value_type& google::protobuf::RepeatedField< Element >::reference

Definition at line 215 of file repeated_field.h.

◆ reverse_iterator

template<typename Element >
typedef std::reverse_iterator<iterator> google::protobuf::RepeatedField< Element >::reverse_iterator

Definition at line 231 of file repeated_field.h.

◆ size_type

template<typename Element >
typedef int google::protobuf::RepeatedField< Element >::size_type

Definition at line 219 of file repeated_field.h.

◆ value_type

template<typename Element >
typedef Element google::protobuf::RepeatedField< Element >::value_type

Definition at line 214 of file repeated_field.h.

Constructor & Destructor Documentation

◆ RepeatedField() [1/5]

template<typename Element >
RepeatedField::RepeatedField
inline

Definition at line 1068 of file repeated_field.h.

◆ RepeatedField() [2/5]

template<typename Element >
RepeatedField::RepeatedField ( Arena arena)
inlineexplicit

Definition at line 1072 of file repeated_field.h.

◆ RepeatedField() [3/5]

template<typename Element >
RepeatedField::RepeatedField ( const RepeatedField< Element > &  other)
inline

Definition at line 1076 of file repeated_field.h.

◆ RepeatedField() [4/5]

template<typename Element >
template<typename Iter >
RepeatedField::RepeatedField ( Iter  begin,
const Iter &  end 
)

Definition at line 1087 of file repeated_field.h.

◆ ~RepeatedField()

template<typename Element >
RepeatedField::~RepeatedField

Definition at line 1093 of file repeated_field.h.

◆ RepeatedField() [5/5]

template<typename Element >
RepeatedField::RepeatedField ( RepeatedField< Element > &&  other)
inlinenoexcept

Definition at line 1107 of file repeated_field.h.

Member Function Documentation

◆ Add() [1/3]

template<typename Element >
Element * RepeatedField::Add
inline

Definition at line 1226 of file repeated_field.h.

◆ Add() [2/3]

template<typename Element >
void RepeatedField::Add ( const Element &  value)
inline

Definition at line 1220 of file repeated_field.h.

◆ Add() [3/3]

template<typename Element >
template<typename Iter >
void RepeatedField::Add ( Iter  begin,
Iter  end 
)
inline

Definition at line 1233 of file repeated_field.h.

◆ AddAlreadyReserved() [1/2]

template<typename Element >
Element * RepeatedField::AddAlreadyReserved
inline

Definition at line 1156 of file repeated_field.h.

◆ AddAlreadyReserved() [2/2]

template<typename Element >
void RepeatedField::AddAlreadyReserved ( const Element &  value)
inline

Definition at line 1150 of file repeated_field.h.

◆ AddNAlreadyReserved()

template<typename Element >
Element * RepeatedField::AddNAlreadyReserved ( int  elements)
inline

Definition at line 1162 of file repeated_field.h.

◆ at() [1/2]

template<typename Element >
Element & RepeatedField::at ( int  index)
inline

Definition at line 1199 of file repeated_field.h.

◆ at() [2/2]

template<typename Element >
const Element & RepeatedField::at ( int  index) const
inline

Definition at line 1192 of file repeated_field.h.

◆ begin() [1/2]

template<typename Element >
RepeatedField< Element >::const_iterator RepeatedField::begin
inline

Definition at line 1368 of file repeated_field.h.

◆ begin() [2/2]

template<typename Element >
const_iterator google::protobuf::RepeatedField< Element >::begin ( ) const

◆ Capacity()

template<typename Element >
int RepeatedField::Capacity
inline

Definition at line 1145 of file repeated_field.h.

◆ cbegin()

template<typename Element >
RepeatedField< Element >::const_iterator RepeatedField::cbegin
inline

Definition at line 1378 of file repeated_field.h.

◆ cend()

template<typename Element >
RepeatedField< Element >::const_iterator RepeatedField::cend
inline

Definition at line 1392 of file repeated_field.h.

◆ Clear()

template<typename Element >
void RepeatedField::Clear
inline

Definition at line 1283 of file repeated_field.h.

◆ CopyArray()

template<typename Element >
void RepeatedField::CopyArray ( Element *  to,
const Element *  from,
int  size 
)
inlineprivate

Definition at line 1464 of file repeated_field.h.

◆ CopyFrom()

template<typename Element >
void RepeatedField::CopyFrom ( const RepeatedField< Element > &  other)
inline

Definition at line 1299 of file repeated_field.h.

◆ data()

template<typename Element >
const Element * RepeatedField::data
inline

Definition at line 1327 of file repeated_field.h.

◆ elements()

template<typename Element >
Element* google::protobuf::RepeatedField< Element >::elements ( ) const
inlineprivate

Definition at line 303 of file repeated_field.h.

◆ empty()

template<typename Element >
bool RepeatedField::empty
inline

Definition at line 1135 of file repeated_field.h.

◆ end() [1/2]

template<typename Element >
RepeatedField< Element >::const_iterator RepeatedField::end
inline

Definition at line 1382 of file repeated_field.h.

◆ end() [2/2]

template<typename Element >
const_iterator google::protobuf::RepeatedField< Element >::end ( ) const

◆ erase() [1/2]

template<typename Element >
RepeatedField< Element >::iterator RepeatedField::erase ( const_iterator  first,
const_iterator  last 
)
inline

Definition at line 1312 of file repeated_field.h.

◆ erase() [2/2]

template<typename Element >
RepeatedField< Element >::iterator RepeatedField::erase ( const_iterator  position)
inline

Definition at line 1306 of file repeated_field.h.

◆ ExtractSubrange()

template<typename Element >
void RepeatedField::ExtractSubrange ( int  start,
int  num,
Element *  elements 
)

Definition at line 1263 of file repeated_field.h.

◆ Get()

template<typename Element >
const Element & RepeatedField::Get ( int  index) const
inline

Definition at line 1185 of file repeated_field.h.

◆ GetArena()

template<typename Element >
Arena* google::protobuf::RepeatedField< Element >::GetArena ( ) const
inline

Definition at line 265 of file repeated_field.h.

◆ GetArenaNoVirtual()

template<typename Element >
Arena* google::protobuf::RepeatedField< Element >::GetArenaNoVirtual ( ) const
inlineprivate

Definition at line 336 of file repeated_field.h.

◆ InternalDeallocate()

template<typename Element >
void google::protobuf::RepeatedField< Element >::InternalDeallocate ( Rep rep,
int  size 
)
inlineprivate

Definition at line 344 of file repeated_field.h.

◆ InternalSwap()

template<typename Element >
void RepeatedField::InternalSwap ( RepeatedField< Element > *  other)
inline

Definition at line 1332 of file repeated_field.h.

◆ MergeFrom()

template<typename Element >
void RepeatedField::MergeFrom ( const RepeatedField< Element > &  other)
inline

Definition at line 1288 of file repeated_field.h.

◆ MoveArray()

template<typename Element >
void RepeatedField::MoveArray ( Element *  to,
Element *  from,
int  size 
)
inlineprivate

Definition at line 1458 of file repeated_field.h.

◆ Mutable()

template<typename Element >
Element * RepeatedField::Mutable ( int  index)
inline

Definition at line 1206 of file repeated_field.h.

◆ mutable_data()

template<typename Element >
Element * RepeatedField::mutable_data
inline

Definition at line 1322 of file repeated_field.h.

◆ operator=() [1/2]

template<typename Element >
RepeatedField< Element > & RepeatedField::operator= ( const RepeatedField< Element > &  other)
inline

Definition at line 1100 of file repeated_field.h.

◆ operator=() [2/2]

template<typename Element >
RepeatedField< Element > & RepeatedField::operator= ( RepeatedField< Element > &&  other)
inlinenoexcept

Definition at line 1120 of file repeated_field.h.

◆ operator[]() [1/2]

template<typename Element >
Element& google::protobuf::RepeatedField< Element >::operator[] ( int  index)
inline

Definition at line 145 of file repeated_field.h.

◆ operator[]() [2/2]

template<typename Element >
const Element& google::protobuf::RepeatedField< Element >::operator[] ( int  index) const
inline

Definition at line 144 of file repeated_field.h.

◆ rbegin() [1/2]

template<typename Element >
reverse_iterator google::protobuf::RepeatedField< Element >::rbegin ( )
inline

Definition at line 232 of file repeated_field.h.

◆ rbegin() [2/2]

template<typename Element >
const_reverse_iterator google::protobuf::RepeatedField< Element >::rbegin ( ) const
inline

Definition at line 233 of file repeated_field.h.

◆ RemoveLast()

template<typename Element >
void RepeatedField::RemoveLast
inline

Definition at line 1257 of file repeated_field.h.

◆ rend() [1/2]

template<typename Element >
reverse_iterator google::protobuf::RepeatedField< Element >::rend ( )
inline

Definition at line 236 of file repeated_field.h.

◆ rend() [2/2]

template<typename Element >
const_reverse_iterator google::protobuf::RepeatedField< Element >::rend ( ) const
inline

Definition at line 237 of file repeated_field.h.

◆ rep()

template<typename Element >
Rep* google::protobuf::RepeatedField< Element >::rep ( ) const
inlineprivate

Definition at line 318 of file repeated_field.h.

◆ Reserve()

template<typename Element >
void RepeatedField::Reserve ( int  new_size)

Definition at line 1404 of file repeated_field.h.

◆ Resize()

template<typename Element >
void RepeatedField::Resize ( int  new_size,
const Element &  value 
)
inline

Definition at line 1175 of file repeated_field.h.

◆ Set()

template<typename Element >
void RepeatedField::Set ( int  index,
const Element &  value 
)
inline

Definition at line 1213 of file repeated_field.h.

◆ size()

template<typename Element >
int RepeatedField::size
inline

Definition at line 1140 of file repeated_field.h.

◆ SpaceUsedExcludingSelf()

template<typename Element >
int google::protobuf::RepeatedField< Element >::SpaceUsedExcludingSelf ( ) const
inline

Definition at line 245 of file repeated_field.h.

◆ SpaceUsedExcludingSelfLong()

template<typename Element >
size_t RepeatedField::SpaceUsedExcludingSelfLong
inline

Definition at line 1397 of file repeated_field.h.

◆ Swap()

template<typename Element >
void RepeatedField::Swap ( RepeatedField< Element > *  other)

Definition at line 1342 of file repeated_field.h.

◆ SwapElements()

template<typename Element >
void RepeatedField::SwapElements ( int  index1,
int  index2 
)

Definition at line 1361 of file repeated_field.h.

◆ Truncate()

template<typename Element >
void RepeatedField::Truncate ( int  new_size)
inline

Definition at line 1450 of file repeated_field.h.

◆ unsafe_elements()

template<typename Element >
Element* google::protobuf::RepeatedField< Element >::unsafe_elements ( ) const
inlineprivate

Definition at line 312 of file repeated_field.h.

◆ UnsafeArenaSwap()

template<typename Element >
void RepeatedField::UnsafeArenaSwap ( RepeatedField< Element > *  other)

Definition at line 1355 of file repeated_field.h.

Friends And Related Function Documentation

◆ Arena

template<typename Element >
friend class Arena
friend

Definition at line 323 of file repeated_field.h.

Member Data Documentation

◆ arena_or_elements_

template<typename Element >
void* google::protobuf::RepeatedField< Element >::arena_or_elements_
private

Definition at line 299 of file repeated_field.h.

◆ const_iterator

template<typename Element >
const typedef Element* google::protobuf::RepeatedField< Element >::const_iterator

Definition at line 213 of file repeated_field.h.

◆ const_pointer

template<typename Element >
const typedef value_type* google::protobuf::RepeatedField< Element >::const_pointer

Definition at line 218 of file repeated_field.h.

◆ const_reference

template<typename Element >
const typedef value_type& google::protobuf::RepeatedField< Element >::const_reference

Definition at line 216 of file repeated_field.h.

◆ current_size_

template<typename Element >
int google::protobuf::RepeatedField< Element >::current_size_
private

Definition at line 284 of file repeated_field.h.

◆ kInitialSize

template<typename Element >
const int google::protobuf::RepeatedField< Element >::kInitialSize = 0
staticprivate

Definition at line 273 of file repeated_field.h.

◆ kRepHeaderSize

template<typename Element >
const size_t RepeatedField::kRepHeaderSize
staticprivate
Initial value:
=
reinterpret_cast<size_t>(&reinterpret_cast<Rep*>(16)->elements[0]) - 16

Definition at line 294 of file repeated_field.h.

◆ total_size_

template<typename Element >
int google::protobuf::RepeatedField< Element >::total_size_
private

Definition at line 285 of file repeated_field.h.


The documentation for this class was generated from the following files:
google::protobuf::RepeatedField::elements
Element * elements() const
Definition: repeated_field.h:303


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08