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

#include <Vector.H>

Inherits VectorClass< T >, and VectorClass< T >.

Inherited by PriorityVectorClass< T >.

Public Member Functions

 DynamicVectorClass (unsigned size=0, T const *array=0)
 
bool operator== (const DynamicVectorClass &src)
 
bool operator!= (const DynamicVectorClass &src)
 
virtual bool Resize (int newsize, T const *array=0)
 
virtual void Clear (void)
 
void Reset_Active (void)
 
void Set_Active (int count)
 
int Count (void) const
 
bool Add (T const &object)
 
bool Add_Head (T const &object)
 
bool Insert (int index, T const &object)
 
bool Delete (T const &object)
 
bool Delete (int index)
 
bool Delete_Index (int index)
 
void Delete_All (void)
 
int Set_Growth_Step (int step)
 
int Growth_Step (void)
 
virtual int ID (T const *ptr)
 
virtual int ID (T const &ptr)
 
DynamicVectorClass< T > & operator= (DynamicVectorClass< T > const &rvalue)
 
T * Uninitialized_Add (void)
 
 DynamicVectorClass (unsigned size=0, T const *array=0)
 
virtual bool Resize (int newsize, T const *array=0)
 
virtual void Clear (void)
 
int Count (void) const
 
bool Add (T const &object)
 
bool Add_Head (T const &object)
 
bool Delete (T const &object)
 
bool Delete (int index)
 
void Delete_All (void)
 
int Set_Growth_Step (int step)
 
int Growth_Step (void)
 
virtual int ID (T const *ptr)
 
virtual int ID (T const &ptr)
 
DynamicVectorClass< T > & operator= (DynamicVectorClass< T > const &rvalue)
 
T * Uninitialized_Add (void)
 
- Public Member Functions inherited from VectorClass< T >
WWINLINE VectorClass (NoInitClass const &)
 
 VectorClass (int size=0, T const *array=0)
 
 VectorClass (VectorClass< T > const &)
 
virtual ~VectorClass (void)
 
WWINLINE T & operator[] (int index)
 
WWINLINE T const & operator[] (int index) const
 
VectorClass< T > & operator= (VectorClass< T > const &)
 
virtual bool operator== (VectorClass< T > const &) const
 
WWINLINE int Length (void) const
 
 VectorClass (NoInitClass const &)
 
 VectorClass (int size=0, T const *array=0)
 
 VectorClass (VectorClass< T > const &)
 
virtual ~VectorClass (void)
 
T & operator[] (int index)
 
T const & operator[] (int index) const
 
VectorClass< T > & operator= (VectorClass< T > const &)
 
virtual bool operator== (VectorClass< T > const &) const
 
int Length (void) const
 

Protected Attributes

int ActiveCount
 
int GrowthStep
 
- Protected Attributes inherited from VectorClass< T >
T * Vector
 
int VectorMax
 
bool IsValid
 
bool IsAllocated
 
bool VectorClassPad [2]
 

Detailed Description

template<class T>
class DynamicVectorClass< T >

Definition at line 473 of file Vector.H.

Constructor & Destructor Documentation

◆ DynamicVectorClass() [1/2]

template<class T>
DynamicVectorClass< T >::DynamicVectorClass ( unsigned size = 0,
T const * array = 0 )

Definition at line 587 of file Vector.H.

◆ DynamicVectorClass() [2/2]

template<class T>
DynamicVectorClass< T >::DynamicVectorClass ( unsigned size = 0,
T const * array = 0 )

Member Function Documentation

◆ Add() [1/2]

template<class T>
bool DynamicVectorClass< T >::Add ( T const & object)

Definition at line 671 of file Vector.H.

◆ Add() [2/2]

template<class T>
bool DynamicVectorClass< T >::Add ( T const & object)

◆ Add_Head() [1/2]

template<class T>
bool DynamicVectorClass< T >::Add_Head ( T const & object)

Definition at line 717 of file Vector.H.

◆ Add_Head() [2/2]

template<class T>
bool DynamicVectorClass< T >::Add_Head ( T const & object)

◆ Clear() [1/2]

template<class T>
virtual void DynamicVectorClass< T >::Clear ( void )
inlinevirtual

Reimplemented from VectorClass< T >.

Definition at line 500 of file Vector.H.

◆ Clear() [2/2]

template<class T>
virtual void DynamicVectorClass< T >::Clear ( void )
inlinevirtual

Reimplemented from VectorClass< T >.

Definition at line 482 of file Vector.H.

◆ Count() [1/2]

template<class T>
int DynamicVectorClass< T >::Count ( void ) const
inline

Definition at line 507 of file Vector.H.

◆ Count() [2/2]

template<class T>
int DynamicVectorClass< T >::Count ( void ) const
inline

Definition at line 485 of file Vector.H.

◆ Delete() [1/4]

template<class T>
bool DynamicVectorClass< T >::Delete ( int index)

Definition at line 848 of file Vector.H.

◆ Delete() [2/4]

template<class T>
bool DynamicVectorClass< T >::Delete ( int index)

◆ Delete() [3/4]

template<class T>
bool DynamicVectorClass< T >::Delete ( T const & object)

Definition at line 820 of file Vector.H.

◆ Delete() [4/4]

template<class T>
bool DynamicVectorClass< T >::Delete ( T const & object)

◆ Delete_All() [1/2]

template<class T>
void DynamicVectorClass< T >::Delete_All ( void )

Definition at line 892 of file Vector.H.

◆ Delete_All() [2/2]

template<class T>
void DynamicVectorClass< T >::Delete_All ( void )
inline

Definition at line 498 of file Vector.H.

◆ Delete_Index()

template<class T>
bool DynamicVectorClass< T >::Delete_Index ( int index)

Definition at line 870 of file Vector.H.

◆ Growth_Step() [1/2]

template<class T>
int DynamicVectorClass< T >::Growth_Step ( void )
inline

Definition at line 528 of file Vector.H.

◆ Growth_Step() [2/2]

template<class T>
int DynamicVectorClass< T >::Growth_Step ( void )
inline

Definition at line 504 of file Vector.H.

◆ ID() [1/4]

template<class T>
int DynamicVectorClass< T >::ID ( T const & ptr)
virtual

Reimplemented from VectorClass< T >.

Definition at line 644 of file Vector.H.

◆ ID() [2/4]

template<class T>
virtual int DynamicVectorClass< T >::ID ( T const & ptr)
virtual

Reimplemented from VectorClass< T >.

◆ ID() [3/4]

template<class T>
virtual int DynamicVectorClass< T >::ID ( T const * ptr)
inlinevirtual

Reimplemented from VectorClass< T >.

Definition at line 530 of file Vector.H.

◆ ID() [4/4]

template<class T>
virtual int DynamicVectorClass< T >::ID ( T const * ptr)
inlinevirtual

Reimplemented from VectorClass< T >.

Definition at line 506 of file Vector.H.

◆ Insert()

template<class T>
bool DynamicVectorClass< T >::Insert ( int index,
T const & object )

Definition at line 766 of file Vector.H.

◆ operator!=()

template<class T>
bool DynamicVectorClass< T >::operator!= ( const DynamicVectorClass< T > & src)
inline

Definition at line 494 of file Vector.H.

◆ operator=() [1/2]

template<class T>
DynamicVectorClass< T > & DynamicVectorClass< T >::operator= ( DynamicVectorClass< T > const & rvalue)
inline

Definition at line 533 of file Vector.H.

◆ operator=() [2/2]

template<class T>
DynamicVectorClass< T > & DynamicVectorClass< T >::operator= ( DynamicVectorClass< T > const & rvalue)
inline

Definition at line 509 of file Vector.H.

◆ operator==()

template<class T>
bool DynamicVectorClass< T >::operator== ( const DynamicVectorClass< T > & src)
inline

Definition at line 493 of file Vector.H.

◆ Reset_Active()

template<class T>
void DynamicVectorClass< T >::Reset_Active ( void )
inline

Definition at line 503 of file Vector.H.

◆ Resize() [1/2]

template<class T>
bool DynamicVectorClass< T >::Resize ( int newsize,
T const * array = 0 )
virtual

Reimplemented from VectorClass< T >.

Definition at line 615 of file Vector.H.

◆ Resize() [2/2]

template<class T>
virtual bool DynamicVectorClass< T >::Resize ( int newsize,
T const * array = 0 )
virtual

Reimplemented from VectorClass< T >.

◆ Set_Active()

template<class T>
void DynamicVectorClass< T >::Set_Active ( int count)
inline

Definition at line 504 of file Vector.H.

◆ Set_Growth_Step() [1/2]

template<class T>
int DynamicVectorClass< T >::Set_Growth_Step ( int step)
inline

Definition at line 525 of file Vector.H.

◆ Set_Growth_Step() [2/2]

template<class T>
int DynamicVectorClass< T >::Set_Growth_Step ( int step)
inline

Definition at line 501 of file Vector.H.

◆ Uninitialized_Add() [1/2]

template<class T>
T * DynamicVectorClass< T >::Uninitialized_Add ( void )

Definition at line 920 of file Vector.H.

◆ Uninitialized_Add() [2/2]

template<class T>
T * DynamicVectorClass< T >::Uninitialized_Add ( void )

Member Data Documentation

◆ ActiveCount

template<class T>
int DynamicVectorClass< T >::ActiveCount
protected

Definition at line 554 of file Vector.H.

◆ GrowthStep

template<class T>
int DynamicVectorClass< T >::GrowthStep
protected

Definition at line 562 of file Vector.H.


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