HepAListBase


The HepAListBase class is the base class used in the template classes HepAList, HepCList and HepConstAList.

It was developed from an original (non-template) list class by Dag Bruck.

Author

Leif Lonnblad

See also

HepAList, HepCList, HepConstAList, HepAListIteratorBase, HepAListIterator, HepCListIterator, HepConstAListIterator

Declaration

#include "CLHEP/Alist/AListBase.h"

class HepAListBase

Public Member Functions

empty
inline HepBoolean empty() const
Returns true if the list is empty.
isEmpty
inline HepBoolean isEmpty() const
Returns true if the list is empty.
length
inline HepBoolean length() const
Returns the number of objects in the list.
purge
void purge()
Remove all duplicated objects from the list.
realloc
void realloc()
Reallocates the array of pointers in the list.
remove
inline void remove(unsigned)
Remove an object from the list.
removeAll
inline void removeAll()
Remove all objects from the list.
reverse
void reverse()
Reverse the order in the list.
sort
inline void sort(int(*compfunc)(const void*, const void*))
Sort the list, compfunc is a function used by standard C qsort routine.
swap
void swap(unsigned i1, unsigned i2)
Swap the position of objects number i1 and i2.


24 September 1997
EVC