Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
SimpleVecClass< T > Class Template Reference

#include <simplevec.h>

Inherited by SimpleDynVecClass< AUDIO_CALLBACK_STRUCT< T > >, and SimpleDynVecClass< T >.

Public Member Functions

 SimpleVecClass (int size=0)
 
virtual ~SimpleVecClass (void)
 
T & operator[] (int index)
 
T const & operator[] (int index) const
 
int Length (void) const
 
virtual bool Resize (int newsize)
 
virtual bool Uninitialised_Grow (int newsize)
 
void Zero_Memory (void)
 

Protected Attributes

T * Vector
 
int VectorMax
 

Detailed Description

template<class T>
class SimpleVecClass< T >

SimpleVecClass This is a template similar to VectorClass (found in Vector.h) except that it is designed specifically to work with data types that are "memcopy-able".
DON'T USE THIS TEMPLATE IF YOUR CLASS REQUIRES A DESTRUCTOR!!!

Definition at line 73 of file simplevec.h.

Constructor & Destructor Documentation

◆ SimpleVecClass()

template<class T>
SimpleVecClass< T >::SimpleVecClass ( int size = 0)
inline

Definition at line 109 of file simplevec.h.

◆ ~SimpleVecClass()

template<class T>
SimpleVecClass< T >::~SimpleVecClass ( void )
inlinevirtual

Definition at line 131 of file simplevec.h.

Member Function Documentation

◆ Length()

template<class T>
int SimpleVecClass< T >::Length ( void ) const
inline

Definition at line 83 of file simplevec.h.

◆ operator[]() [1/2]

template<class T>
T & SimpleVecClass< T >::operator[] ( int index)
inline

Definition at line 80 of file simplevec.h.

◆ operator[]() [2/2]

template<class T>
T const & SimpleVecClass< T >::operator[] ( int index) const
inline

Definition at line 81 of file simplevec.h.

◆ Resize()

◆ Uninitialised_Grow()

template<class T>
bool SimpleVecClass< T >::Uninitialised_Grow ( int newsize)
inlinevirtual

Definition at line 221 of file simplevec.h.

◆ Zero_Memory()

template<class T>
void SimpleVecClass< T >::Zero_Memory ( void )
inline

Definition at line 86 of file simplevec.h.

Member Data Documentation

◆ Vector

template<class T>
T* SimpleVecClass< T >::Vector
protected

Definition at line 90 of file simplevec.h.

◆ VectorMax

template<class T>
int SimpleVecClass< T >::VectorMax
protected

Definition at line 91 of file simplevec.h.


The documentation for this class was generated from the following file: