#include <list.H>
Inherited by LIST< T >.
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) |
T | 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in LIST< T >, LIST< str_ptr >, and LIST< EVENTptr >. |
|
Reimplemented in LIST< T >, LIST< str_ptr >, and LIST< EVENTptr >. |
|
Reimplemented in _point2d_list< L, P, V >, _point2d_list< XYpt_list, XYpt, XYvec >, and _point2d_list< PIXEL_list, PIXEL, VEXEL >. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|