Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

cArray< T > Class Template Reference

Template for using arrays. More...

#include <array.h>

Inheritance diagram for cArray< T >:

Inheritance graph
[legend]
Collaboration diagram for cArray< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 cArray (int r=1)
 Constructur.
 cArray (const cArray &array)
 Copy Constructur.
 ~cArray ()
 Destructor.
int Add (T *t)
 Add an element.
T * Rem (int idx)
 Remove an element.
void RemAll ()
 Remove all elements.
T * operator[] (int idx) const
 [] operator definition
T *& operator[] (int idx)
 [] address operator definition
cArray< T > & operator+= (T *t)
 + operator definition
cArray< T > & operator-= (T *t)
 
  • operator definition

int Num () const
 Get number of elements.
int Find (T *t) const
 Find element.
void Sort (int(*cmp)(T **t1, T **t2))
 Sort the elements.
int Search (T *key, int(*cmp)(T **t1, T **t2), int mmax=-1) const
 Search in the array for an element.
void Clear ()
 Clear the array.
int Insert (int befor, T *t)
 Insert an element into the array on a position.
cArrayoperator= (const cArray &)
 () operator definition

Detailed Description

template<class T>
class cArray< T >

Template for using arrays.


The documentation for this class was generated from the following file:
Generated on Mon Apr 26 14:38:51 2010 for New Simulator by  doxygen 1.4.4