The HepCListIterator is used in the same way as the
HepConstAListIterator
class but can also be used with
HepCList.
Author
Leif Lonnblad
See also
HepAListBase,
HepAList,
HepCList,
HepConstAList,
HepAListIteratorBase,
HepAListIterator,
HepConstAListIterator
Declaration
#include "CLHEP/Alist/CIterator.h"
template <class T>
class HepCListIterator : public HepAListIteratorBase
Public Member Functions
- Constructor
- inline HepCListIterator(const HepAList<T> &)
- inline HepCListIterator(const HepCList<T> &)
- Constructor taking a corresponding list as argument.
Starting at the first element.
- Copy constructor
- inline HepCListIterator(const HepCListIterator<T> &)
- Destructor
- inline ~HepCListIterator()
- ()
- inline T * operator () ()
- Returns a pointer to the current object in the associated list,
moving forward to the next.
- Returns 0 if all objects are done.
- current
- inline T * current() const
- Returns a pointer to the current object in the associated list,
without incrementing the index.
- next
- inline T * next()
- Returns a pointer to the current object in the associated list,
moving forward to the next.
- Returns 0 if all objects are done.
- prev
- inline T * prev()
- Moves backward one step in the list and returns the object found there.
- If current object is the first in the list, no stepping is done and
0 is returned.
Example
CLHEP/test/testAList.cc
24 September 1997
EVC