Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ARRAY< T > Class Template Reference

#include <list.H>

Inherited by LIST< T >.

List of all members.

Public Methods

 ARRAY (int m=0)
 ARRAY (cARRAY< T > &l)
 ARRAY (const T &e)
virtual ~ARRAY ()
int num () const
bool empty () const
bool valid_index (int k) const
void set_unique ()
const T * array () const
T * array ()
T & operator[] (int j)
T & last ()
const T & operator[] (int j) const
const T & last () const
void clear ()
virtual void truncate (int n)
virtual void realloc (int new_max=0)
int get_index (const T &el) const
bool contains (const T &el) const
void operator+= (const T &el)
void add (const T &p)
void push (const T &p)
bool add_uniquely (const T &el)
void insert (int ind, int num)
bool remove (int k)
void operator-= (cARRAY< T > &l)
bool operator-= (const T &el)
bool rem (const T &p)
pop ()
ARRAY< T > & operator= (cARRAY< T > &l)
ARRAY< T > & operator+= (cARRAY< T > &l)
bool operator== (const ARRAY< T > &c) const
void reverse ()
virtual void sort (compare_func_t compare)

Protected Methods

virtual void clear_ele (int)
virtual void clear_range (int, int)
void append_ele (const T &el)

Protected Attributes

T * _array
int _num
int _max
int _unique

template<class T>
class ARRAY< T >


Constructor & Destructor Documentation

template<class T>
ARRAY< T >::ARRAY int    m = 0 [inline]
 

template<class T>
ARRAY< T >::ARRAY cARRAY< T > &    l [inline]
 

template<class T>
ARRAY< T >::ARRAY const T &    e [inline]
 

template<class T>
virtual ARRAY< T >::~ARRAY   [inline, virtual]
 


Member Function Documentation

template<class T>
void ARRAY< T >::add const T &    p [inline]
 

template<class T>
bool ARRAY< T >::add_uniquely const T &    el [inline]
 

template<class T>
void ARRAY< T >::append_ele const T &    el [inline, protected]
 

template<class T>
T* ARRAY< T >::array   [inline]
 

template<class T>
const T* ARRAY< T >::array   const [inline]
 

template<class T>
void ARRAY< T >::clear   [inline]
 

template<class T>
virtual void ARRAY< T >::clear_ele int    [inline, protected, virtual]
 

Reimplemented in LIST< T >, LIST< str_ptr >, and LIST< EVENTptr >.

template<class T>
virtual void ARRAY< T >::clear_range int   ,
int   
[inline, protected, virtual]
 

Reimplemented in LIST< T >, LIST< str_ptr >, and LIST< EVENTptr >.

template<class T>
bool ARRAY< T >::contains const T &    el const [inline]
 

Reimplemented in _point2d_list< L, P, V >, _point2d_list< XYpt_list, XYpt, XYvec >, and _point2d_list< PIXEL_list, PIXEL, VEXEL >.

template<class T>
bool ARRAY< T >::empty   const [inline]
 

template<class T>
int ARRAY< T >::get_index const T &    el const [inline]
 

template<class T>
void ARRAY< T >::insert int    ind,
int    num
[inline]
 

template<class T>
const T& ARRAY< T >::last   const [inline]
 

template<class T>
T& ARRAY< T >::last   [inline]
 

template<class T>
int ARRAY< T >::num   const [inline]
 

template<class T>
ARRAY<T>& ARRAY< T >::operator+= cARRAY< T > &    l [inline]
 

template<class T>
void ARRAY< T >::operator+= const T &    el [inline]
 

template<class T>
bool ARRAY< T >::operator-= const T &    el [inline]
 

template<class T>
void ARRAY< T >::operator-= cARRAY< T > &    l [inline]
 

template<class T>
ARRAY<T>& ARRAY< T >::operator= cARRAY< T > &    l [inline]
 

template<class T>
bool ARRAY< T >::operator== const ARRAY< T > &    c const [inline]
 

template<class T>
const T& ARRAY< T >::operator[] int    j const [inline]
 

template<class T>
T& ARRAY< T >::operator[] int    j [inline]
 

template<class T>
T ARRAY< T >::pop   [inline]
 

template<class T>
void ARRAY< T >::push const T &    p [inline]
 

template<class T>
virtual void ARRAY< T >::realloc int    new_max = 0 [inline, virtual]
 

template<class T>
bool ARRAY< T >::rem const T &    p [inline]
 

template<class T>
bool ARRAY< T >::remove int    k [inline]
 

template<class T>
void ARRAY< T >::reverse   [inline]
 

template<class T>
void ARRAY< T >::set_unique   [inline]
 

template<class T>
virtual void ARRAY< T >::sort compare_func_t    compare [inline, virtual]
 

template<class T>
virtual void ARRAY< T >::truncate int    n [inline, virtual]
 

template<class T>
bool ARRAY< T >::valid_index int    k const [inline]
 


Member Data Documentation

template<class T>
T* ARRAY< T >::_array [protected]
 

template<class T>
int ARRAY< T >::_max [protected]
 

template<class T>
int ARRAY< T >::_num [protected]
 

template<class T>
int ARRAY< T >::_unique [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Sep 15 16:25:59 2003 for gluebase by doxygen1.2.18