Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

TNL::Vector< T > Class Template Reference

A dynamic array template class. More...

#include <tnlVector.h>

List of all members.

Protected Methods

void checkSize (U32 newElementCount)
 checks the element count against the array size and resizes the array if necessary

void destroy (U32 start, U32 end)
 Destructs elements from start to end-1.

void construct (U32 start, U32 end)
 Constructs elements from start to end-1.


Protected Attributes

U32 mElementCount
 Number of elements currently in the Vector.

U32 mArraySize
 Number of elements allocated for the Vector.

T * mArray
 Pointer to the Vector elements.


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.

Definition at line 66 of file tnlVector.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 18 16:03:39 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18