GATE
gate::ArrayList< T > Class Template Reference

Public Types

typedef T item_t
 
typedef T * iterator
 
typedef iterator reverse_iterator
 
typedef T const * const_iterator
 
typedef const_iterator const_reverse_iterator
 
typedef ArrayList< T > self_t
 
typedef Enumerator< item_t const > enumerator_t
 

Public Member Functions

 ArrayList (size_t prealloc=0)
 
 ArrayList (item_t const *items, size_t count)
 
 ArrayList (Array< item_t > const &copyFrom)
 
 ArrayList (Enumerator< item_t const > enumerator)
 
 ArrayList (self_t const &src) noexcept
 
self_t copy () const
 
gate_arraylist_t c_impl () const
 
gate_arraylist_t c_impl ()
 
void swap (self_t &that) noexcept
 
self_toperator= (self_t const &src) noexcept
 
size_t length () const noexcept
 
bool empty () const noexcept
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
iterator add (item_t const &item)
 
iterator add (item_t const &item, size_t repeat_count)
 
template<class ITER >
void addItems (ITER begin, ITER end)
 
void removeAt (size_t index)
 
void remove (iterator iter)
 
void clear ()
 
item_t const * get_item_ptr (size_t index) const noexcept
 
iterator get (size_t index)
 
const_iterator get (size_t index) const
 
item_t & at (size_t index)
 
item_t const & at (size_t index) const
 
item_t & operator[] (size_t index)
 
item_t const & operator[] (size_t index) const
 
self_tpush (item_t const &item)
 
self_tpop (item_t &item)
 
self_toperator<< (item_t const &item)
 
self_toperator>> (item_t &item)
 
enumerator_t enumerate () const
 
Array< item_t > toArray () const
 
template<class FROM >
void importFrom (gate_arraylist_t arr)
 
template<class TO >
size_t exportTo (gate_arraylist_t arr) const
 
template<class COMPARER >
void sort (COMPARER comparer, bool descending=false)
 
void sort ()
 

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