Vector< T > Class Template Reference#include <tVector.h>
Inheritance diagram for Vector< T >:
[legend]
Detailed Description
template<class T> class Vector< T >
A dynamic array 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.
***WARNING***
This template does not initialize, construct or destruct any of it's elements. This means don't use this template for elements (classes) that need these operations. This template is intended to be used for simple structures that have no constructors or destructors.
Member Typedef Documentation
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Constructor & Destructor Documentation
template<class T>
Vector< T >::Vector |
( |
const U32 |
initialSize, |
|
|
const char * |
fileName, |
|
|
const U32 |
lineNum | |
|
) |
| | [inline] |
Member Function Documentation
template<class T>
bool Vector< T >::resize |
( |
U32 |
|
) |
[inline, protected] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
bool Vector< T >::empty |
( |
|
) |
const [inline] |
template<class T>
T & Vector< T >::front |
( |
|
) |
[inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
const T & Vector< T >::front |
( |
|
) |
const [inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
T & Vector< T >::back |
( |
|
) |
[inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
const T & Vector< T >::back |
( |
|
) |
const [inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
void Vector< T >::push_front |
( |
const T & |
|
) |
[inline] |
template<class T>
void Vector< T >::push_back |
( |
const T & |
|
) |
[inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
const T & Vector< T >::operator[] |
( |
U32 |
|
) |
const [inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
T& Vector< T >::operator[] |
( |
S32 |
i |
) |
[inline] |
template<class T>
const T& Vector< T >::operator[] |
( |
S32 |
i |
) |
const [inline] |
template<class T>
T * Vector< T >::address |
( |
|
) |
const [inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
T & Vector< T >::first |
( |
|
) |
[inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
T & Vector< T >::last |
( |
|
) |
[inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
const T & Vector< T >::first |
( |
|
) |
const [inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
template<class T>
const T & Vector< T >::last |
( |
|
) |
const [inline] |
Reimplemented in VectorPtr< T >, VectorPtr< LBItem * >, VectorPtr< ConvexBrush * >, VectorPtr< FrameDetail * >, VectorPtr< SceneObject * >, VectorPtr< BitVector * >, VectorPtr< Heightfield * >, VectorPtr< SimObject * >, VectorPtr< ConstructorSimpleMesh * >, VectorPtr< Entity * >, VectorPtr< WeatherLightningBolt * >, and VectorPtr< char * >.
Merge another vector into this one.
- Author:
- BJW 8/20/97
Field Documentation
|