#include <ResizableArray.h>
Public Member Functions | |
| ResizableArray (int initialSize) | |
| Allocate the memory for the initial size of the array. | |
| ResizableArray () | |
| Allocate the memory for the default initial size of the array. | |
| ~ResizableArray () | |
| Destructor. | |
| void | Add (int item) |
| Push an item onto the end of the array, resizing the local copy in memory if necessary. | |
| void | ToArray (int *&arr, int &len) |
| Return a copy of the data in the ResizableArray. | |
Private Attributes | |
| int * | _memory |
| int | memSize |
| int | length |
Static Private Attributes | |
| const int | DEFAULT_INITIAL_SIZE = 16 |
Definition at line 50 of file ResizableArray.h.
|
|
Allocate the memory for the initial size of the array.
Definition at line 58 of file ResizableArray.h. |
|
|
Allocate the memory for the default initial size of the array.
Definition at line 69 of file ResizableArray.h. |
|
|
Destructor.
Definition at line 77 of file ResizableArray.h. |
|
|
Push an item onto the end of the array, resizing the local copy in memory if necessary.
Definition at line 88 of file ResizableArray.h. Referenced by CollectASCIIInfo(), and CollectBinaryInfo(). |
|
||||||||||||
|
Return a copy of the data in the ResizableArray.
Definition at line 117 of file ResizableArray.h. Referenced by CollectASCIIInfo(), and CollectBinaryInfo(). |
|
|
Definition at line 128 of file ResizableArray.h. Referenced by Add(), ResizableArray(), ToArray(), and ~ResizableArray(). |
|
|
Definition at line 125 of file ResizableArray.h. Referenced by ResizableArray(). |
|
|
Definition at line 130 of file ResizableArray.h. Referenced by Add(), ResizableArray(), and ToArray(). |
|
|
Definition at line 129 of file ResizableArray.h. Referenced by Add(), and ResizableArray(). |
1.3.4