33 #ifndef __H__UG__pointer_const_array__
34 #define __H__UG__pointer_const_array__
96 inline size_t size()
const;
99 inline bool empty()
const;
137 void reserve(
size_t capacity,
bool copyOldData);
Container which holds an array of pointers.
Definition: pointer_const_array.h:84
void set_external_array(TPtr const *array, size_t size, bool bCopy=false)
set the array on which the container operates.
Definition: pointer_const_array_impl.hpp:128
void clear()
clears the container
Definition: pointer_const_array_impl.hpp:182
PointerConstArray & operator=(const PointerConstArray &pa)
Definition: pointer_const_array_impl.hpp:67
size_t size() const
returns the size of the associated array.
Definition: pointer_const_array_impl.hpp:106
void reserve(size_t capacity)
reserves memory but does not alter the size
Definition: pointer_const_array_impl.hpp:152
void push_back(TPtr p)
appends the given pointer at the end of the array.
Definition: pointer_const_array_impl.hpp:189
PtrArray m_data
Definition: pointer_const_array.h:141
TPtr const * ConstPtrArray
Definition: pointer_const_array.h:85
TPtr * PtrArray
Definition: pointer_const_array.h:86
TPtr const operator[](size_t i) const
returns the i-th entry of the array. Make sure that i < size().
Definition: pointer_const_array_impl.hpp:120
PointerConstArray()
Definition: pointer_const_array_impl.hpp:44
bool empty() const
returns true if the associated array is empty
Definition: pointer_const_array_impl.hpp:113
void assign_pointer_const_array(const PointerConstArray &pa)
copies contents from the given PointerConstArray
Definition: pointer_const_array_impl.hpp:82
ConstPtrArray m_array
Definition: pointer_const_array.h:140
size_t m_size
Definition: pointer_const_array.h:142
~PointerConstArray()
Definition: pointer_const_array_impl.hpp:58
size_t m_capacity
Definition: pointer_const_array.h:143