TNL::Vector< T > Class Template Reference
#include <tnlVector.h>
Detailed Description
template<class T>
class TNL::Vector< T >
A dynamic array template class.
The vector grows as you insert or append elements. Insertion is fastest at the end of the array. Resizing of the array can be avoided by pre-allocating space using the reserve() method.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
template<class T> |
void TNL::Vector< T >::checkSize |
( |
U32 |
newElementCount |
) |
[inline, protected] |
|
|
checks the element count against the array size and resizes the array if necessary
|
template<class T> |
void TNL::Vector< T >::destroy |
( |
U32 |
start, |
|
|
U32 |
end |
|
) |
[inline, protected] |
|
|
Destructs elements from start to end-1.
|
template<class T> |
void TNL::Vector< T >::construct |
( |
U32 |
start, |
|
|
U32 |
end |
|
) |
[inline, protected] |
|
|
Constructs elements from start to end-1.
|
template<class T> |
void TNL::Vector< T >::construct |
( |
U32 |
start, |
|
|
U32 |
end, |
|
|
const T * |
array |
|
) |
[inline, protected] |
|
template<class T> |
bool TNL::Vector< T >::empty |
( |
|
) |
const [inline] |
|
template<class T> |
T & TNL::Vector< T >::front |
( |
|
) |
[inline] |
|
template<class T> |
const T & TNL::Vector< T >::front |
( |
|
) |
const [inline] |
|
template<class T> |
T & TNL::Vector< T >::back |
( |
|
) |
[inline] |
|
template<class T> |
const T & TNL::Vector< T >::back |
( |
|
) |
const [inline] |
|
template<class T> |
void TNL::Vector< T >::push_front |
( |
const T & |
|
) |
[inline] |
|
template<class T> |
void TNL::Vector< T >::push_back |
( |
const T & |
|
) |
[inline] |
|
template<class T> |
void TNL::Vector< T >::pop_front |
( |
|
) |
[inline] |
|
template<class T> |
void TNL::Vector< T >::pop_back |
( |
|
) |
[inline] |
|
template<class T> |
const T & TNL::Vector< T >::operator[] |
( |
U32 |
|
) |
const [inline] |
|
template<class T> |
const T& TNL::Vector< T >::operator[] |
( |
S32 |
i |
) |
const [inline] |
|
template<class T> |
T * TNL::Vector< T >::address |
( |
|
) |
const [inline] |
|
template<class T> |
void TNL::Vector< T >::clear |
( |
|
) |
[inline] |
|
template<class T> |
T & TNL::Vector< T >::first |
( |
|
) |
[inline] |
|
template<class T> |
T & TNL::Vector< T >::last |
( |
|
) |
[inline] |
|
template<class T> |
const T & TNL::Vector< T >::first |
( |
|
) |
const [inline] |
|
template<class T> |
const T & TNL::Vector< T >::last |
( |
|
) |
const [inline] |
|
Field Documentation
|
Number of elements currently in the Vector.
|
|
Number of elements allocated for the Vector.
|
|
Pointer to the Vector elements.
|