template <class Item> class TcGfxIterator : public TcIterator<Item>

Template iterator class for Gfx classes

Inheritance:


Public Methods

TcGfxIterator()
Constructor
TcGfxIterator(const Item root)
Constructor
virtual ~TcGfxIterator()
Destructor.
virtual void first()
Sets the iterator to the root set by the constructor.
virtual void next()
Iterate to the next item.
virtual bool isDone() const
Returns true if iterator has reached the end of the set.
virtual Item currentItem() const
Returns the item the iterator is currently pointing to.

Inherited from TcIterator:


Documentation

Template iterator class for Gfx classes. Clients can instantiate an iterator by simply calling TcGfxComponent::iterator i(comp). This class can then be used to iterate through gfx components in a breadth first fashion.
TcGfxIterator()
Constructor. Returns an unitialized iterator.

TcGfxIterator(const Item root)
Constructor. This is the most common constructor to be used.
Parameters:
root - This is the node from which iteration starts. The iterator is set to this node whenever first is called.

virtual ~TcGfxIterator()
Destructor.

virtual void first()
Sets the iterator to the root set by the constructor.

virtual void next()
Iterate to the next item.

virtual bool isDone() const
Returns true if iterator has reached the end of the set.

virtual Item currentItem() const
Returns the item the iterator is currently pointing to.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de