#include <reallocablearray.h>


Public Member Functions | |
| ReallocableArray (int chunk_size=default_chunk_size) | |
| ReallocableArray (ReallocableArray< T > &other) | |
| virtual | ~ReallocableArray () |
| void | Init (int chunk_size=default_chunk_size) |
| int | NumElements () |
| T & | operator[] (int index) |
| void | ChunkSize (int new_chunk_size) |
| T & | New () |
| void | Append (T item) |
| int | Find (T &item) |
| T & | Get (int index) |
| void | DeleteItem (T &item) |
| void | Delete (T &item) |
| void | DeleteAll () |
| void | DeleteItem (int idx) |
| ostream & | operator<< (ostream &os) |
| ReallocableArray< T > & | operator= (ReallocableArray< T > &r) |
| ReallocableArray< T > & | operator+= (ReallocableArray< T > &r) |
Protected Types | |
| enum | { default_chunk_size = 100 } |
Protected Attributes | |
| T * | ptr |
| int | total_num_elements |
| int | chunk_size |
| int | current_size |
Definition at line 21 of file reallocablearray.h.
anonymous enum [protected] |
| ReallocableArray< T >::ReallocableArray | ( | int | chunk_size = default_chunk_size |
) | [inline] |
Definition at line 62 of file reallocablearray.h.
| ReallocableArray< T >::ReallocableArray | ( | ReallocableArray< T > & | other | ) | [inline] |
Definition at line 69 of file reallocablearray.h.
| ReallocableArray< T >::~ReallocableArray | ( | ) | [inline, virtual] |
Definition at line 79 of file reallocablearray.h.
| void ReallocableArray< T >::Init | ( | int | chunk_size = default_chunk_size |
) | [inline] |
Definition at line 54 of file reallocablearray.h.
| int ReallocableArray< T >::NumElements | ( | ) | [inline] |
Definition at line 34 of file reallocablearray.h.
| T& ReallocableArray< T >::operator[] | ( | int | index | ) | [inline] |
Definition at line 35 of file reallocablearray.h.
| void ReallocableArray< T >::ChunkSize | ( | int | new_chunk_size | ) | [inline] |
Definition at line 91 of file reallocablearray.h.
| T & ReallocableArray< T >::New | ( | ) | [inline] |
Definition at line 96 of file reallocablearray.h.
| void ReallocableArray< T >::Append | ( | T | item | ) | [inline] |
Definition at line 191 of file reallocablearray.h.
| int ReallocableArray< T >::Find | ( | T & | item | ) | [inline] |
Definition at line 118 of file reallocablearray.h.
| T & ReallocableArray< T >::Get | ( | int | index | ) | [inline] |
Definition at line 125 of file reallocablearray.h.
| void ReallocableArray< T >::DeleteItem | ( | T & | item | ) | [inline] |
Definition at line 135 of file reallocablearray.h.
| void ReallocableArray< T >::Delete | ( | T & | item | ) | [inline] |
Definition at line 145 of file reallocablearray.h.
| void ReallocableArray< T >::DeleteAll | ( | ) | [inline] |
Definition at line 161 of file reallocablearray.h.
| void ReallocableArray< T >::DeleteItem | ( | int | idx | ) | [inline] |
Definition at line 130 of file reallocablearray.h.
| ostream & ReallocableArray< T >::operator<< | ( | ostream & | os | ) | [inline] |
Definition at line 168 of file reallocablearray.h.
| ReallocableArray< T > & ReallocableArray< T >::operator= | ( | ReallocableArray< T > & | r | ) | [inline] |
Definition at line 176 of file reallocablearray.h.
| ReallocableArray< T > & ReallocableArray< T >::operator+= | ( | ReallocableArray< T > & | r | ) | [inline] |
Definition at line 201 of file reallocablearray.h.
T* ReallocableArray< T >::ptr [protected] |
Definition at line 23 of file reallocablearray.h.
int ReallocableArray< T >::total_num_elements [protected] |
Definition at line 24 of file reallocablearray.h.
int ReallocableArray< T >::chunk_size [protected] |
Definition at line 25 of file reallocablearray.h.
int ReallocableArray< T >::current_size [protected] |
Definition at line 26 of file reallocablearray.h.
1.5.3