Cafu Engine
ArrayT< T > Class Template Reference

Public Member Functions

 ArrayT ()
 Usual constructor. More...
 
 ArrayT (const ArrayT< T > &OldArray)
 Copy constructor. More...
 
 ~ArrayT ()
 Destructor. More...
 
ArrayT< T > & operator= (const ArrayT< T > &OldArray)
 Assignment operator. More...
 
bool operator== (const ArrayT< T > &Other) const
 Equality operator. More...
 
bool operator!= (const ArrayT< T > &Other) const
 Inequality operator. More...
 
unsigned long Size () const
 Get size of array. More...
 
void Clear ()
 Clear array (and free allocated memory) More...
 
void Overwrite ()
 Clear array (but reuse memory) More...
 
T & operator[] (unsigned long Index)
 
const T & operator[] (unsigned long Index) const
 
void PushBack (const T Element)
 
void PushBackEmpty (unsigned long Amount=1)
 
void PushBackEmptyExact (unsigned long Amount=1)
 
void DeleteBack (unsigned long Amount=1)
 
void PushBack (const ArrayT< T > &Other)
 
void InsertAt (unsigned long Index, const T Element)
 
void RemoveAt (unsigned long Index)
 
void RemoveAtAndKeepOrder (unsigned long Index)
 
template<typename Function >
void QuickSort (Function IsLess)
 
int Find (const T &Element) const
 

Constructor & Destructor Documentation

template<class T >
ArrayT< T >::ArrayT ( )
inline

Usual constructor.

template<class T>
ArrayT< T >::ArrayT ( const ArrayT< T > &  OldArray)
inline

Copy constructor.

template<class T >
ArrayT< T >::~ArrayT ( )
inline

Destructor.

Member Function Documentation

template<class T >
void ArrayT< T >::Clear ( )
inline

Clear array (and free allocated memory)

template<class T>
bool ArrayT< T >::operator!= ( const ArrayT< T > &  Other) const
inline

Inequality operator.

template<class T>
ArrayT< T > & ArrayT< T >::operator= ( const ArrayT< T > &  OldArray)
inline

Assignment operator.

template<class T>
bool ArrayT< T >::operator== ( const ArrayT< T > &  Other) const
inline

Equality operator.

template<class T >
void ArrayT< T >::Overwrite ( )
inline

Clear array (but reuse memory)

template<class T >
unsigned long ArrayT< T >::Size ( ) const
inline

Get size of array.


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