#include <List.h>
Public Member Functions | |
| List (int size) | |
| Constructor (The minimum list size is 0). | |
| ~List () | |
| Destructor. | |
| Type & | operator[] (int index) |
| Array access operator overloaded. If out of bounds, throws Err_OutOfBounds from ErrCode.h. | |
| void | Resize (int newSize) |
| Resize the data without loss (Unless we cut it short). | |
| int | GetSize () |
| Returns the size of the list. | |
Private Attributes | |
| Type * | listData |
| Data. | |
| int | listSize |
| List size. | |
Constructor (The minimum list size is 0).
| Type& List< Type >::operator[] | ( | int | index | ) | [inline] |
Array access operator overloaded. If out of bounds, throws Err_OutOfBounds from ErrCode.h.
| void List< Type >::Resize | ( | int | newSize | ) | [inline] |
Resize the data without loss (Unless we cut it short).
| int List< Type >::GetSize | ( | ) | [inline] |
Returns the size of the list.
1.5.5