#include <Array.h>
Public Member Functions | |
Array (int capacity=DEFAULT_CAPACITY) | |
Array (const Array< T > &a) | |
Array (const T *a, int len) | |
virtual | ~Array () |
const T & | get (int index) const |
void | set (int index, T t) |
T & | operator[] (int index) |
const T & | operator[] (int index) const |
const T * | getData () const |
int | size () const |
void | append (T t) |
void | remove (int pos) |
void | remove (int start, int end) |
void | resize (int size) |
int | find (const T t) const |
Protected Attributes | |
int | _size |
int | _capacity |
T * | _data |
const T& Array< T >::get | ( | int | index | ) | const [inline] |
void Array< T >::set | ( | int | index, | |
T | t | |||
) | [inline] |
T& Array< T >::operator[] | ( | int | index | ) | [inline] |
const T& Array< T >::operator[] | ( | int | index | ) | const [inline] |
const T* Array< T >::getData | ( | ) | const [inline] |
int Array< T >::size | ( | ) | const [inline] |
void Array< T >::remove | ( | int | pos | ) | [inline] |
void Array< T >::remove | ( | int | start, | |
int | end | |||
) | [inline] |
void Array< T >::resize | ( | int | size | ) | [inline] |
int Array< T >::find | ( | const T | t | ) | const [inline] |