#include <tnlVector.h>
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. | |
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.
1.2.18