![]() |
NiTE 2.0
|
#include <NiTE.h>
Public Member Functions | |
Array () | |
int | getSize () const |
bool | isEmpty () const |
const T & | operator[] (int index) const |
void | setData (int size, T *data) |
Provides a simple array class used throughout the API. Wraps a primitive array of objects, holding the elements and their count.
nite::Array< T >::Array | ( | ) | [inline] |
Default constructor. Creates an empty Array and sets the element count to zero.
int nite::Array< T >::getSize | ( | ) | const [inline] |
bool nite::Array< T >::isEmpty | ( | ) | const [inline] |
const T& nite::Array< T >::operator[] | ( | int | index | ) | const [inline] |
Implements the array indexing operator for the Array class
void nite::Array< T >::setData | ( | int | size, |
T * | data | ||
) | [inline] |