Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

amn::IArray< T > Class Template Reference

Stripped version of STL Vector. More...

#include <IArray.h>

List of all members.

Public Member Functions

 IArray ()
 Initializes the array (default.).
 IArray (const int n)
 Initializes the array with n elements.
 IArray (const IArray &a)
 Copies the given array.
virtual ~IArray ()
virtual T & operator[] (const unsigned int index)
 Retrieves an element based on index number.
virtual IArray operator= (IArray &a)
 Copies another array.
virtual bool operator== (IArray &a2)
 Compares two arrays.
virtual bool operator!= (IArray &a2)
 Compares two arrays.
virtual unsigned int size ()
 Returns the size of the array.
virtual bool empty ()
 Returns true if the array is empty.
virtual void push_back (const T &x)
 Pushes an array element to the back of the array.
virtual void pop_back ()
 Pops an array element off of the back of the array.
virtual void clear ()
 Clears the array.

Protected Attributes

T * elements
unsigned int allocated
unsigned int used


Detailed Description

template<class T>
class amn::IArray< T >

Stripped version of STL Vector.


Constructor & Destructor Documentation

template<class T>
amn::IArray< T >::IArray  )  [inline]
 

Initializes the array (default.).

template<class T>
amn::IArray< T >::IArray const int  n  )  [inline]
 

Initializes the array with n elements.

template<class T>
amn::IArray< T >::IArray const IArray< T > &  a  )  [inline]
 

Copies the given array.

template<class T>
virtual amn::IArray< T >::~IArray  )  [inline, virtual]
 

Destroys the array, note that if it is an array of pointers, it is not the array class's responcibility to free memory.


Member Function Documentation

template<class T>
virtual void amn::IArray< T >::clear  )  [inline, virtual]
 

Clears the array.

template<class T>
virtual bool amn::IArray< T >::empty  )  [inline, virtual]
 

Returns true if the array is empty.

template<class T>
virtual bool amn::IArray< T >::operator!= IArray< T > &  a2  )  [inline, virtual]
 

Compares two arrays.

template<class T>
virtual IArray amn::IArray< T >::operator= IArray< T > &  a  )  [inline, virtual]
 

Copies another array.

template<class T>
virtual bool amn::IArray< T >::operator== IArray< T > &  a2  )  [inline, virtual]
 

Compares two arrays.

template<class T>
virtual T& amn::IArray< T >::operator[] const unsigned int  index  )  [inline, virtual]
 

Retrieves an element based on index number.

template<class T>
virtual void amn::IArray< T >::pop_back  )  [inline, virtual]
 

Pops an array element off of the back of the array.

template<class T>
virtual void amn::IArray< T >::push_back const T &  x  )  [inline, virtual]
 

Pushes an array element to the back of the array.

template<class T>
virtual unsigned int amn::IArray< T >::size  )  [inline, virtual]
 

Returns the size of the array.


Member Data Documentation

template<class T>
unsigned int amn::IArray< T >::allocated [protected]
 

template<class T>
T* amn::IArray< T >::elements [protected]
 

template<class T>
unsigned int amn::IArray< T >::used [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Feb 1 22:23:26 2006 for AmnesiaEngine by  doxygen 1.4.2