21 #ifndef TULIP_ITERATOR_H 22 #define TULIP_ITERATOR_H 24 #include <tulip/tulipconf.h> 29 extern TLP_SCOPE
void incrNumIterators();
30 extern TLP_SCOPE
void decrNumIterators();
31 extern TLP_SCOPE
int getNumIterators();
57 virtual itType next()=0;
64 virtual bool hasNext()=0;
68 #ifndef DOXYGEN_NOTFOR_DEVEL 69 template<
typename TYPE>
class UINTIterator :
public Iterator<TYPE> {
80 return TYPE(it->
next());
85 #endif // DOXYGEN_NOTFOR_DEVEL 92 #include <tulip/Edge.h> 93 #include <tulip/Node.h> 95 template struct TLP_SCOPE tlp::Iterator<tlp::edge>;
96 template struct TLP_SCOPE tlp::Iterator<tlp::node>;
virtual itType next()=0
Moves the Iterator on the next element.
Interface for Tulip iterators. Allows basic iteration operations only.
virtual bool hasNext()=0
Tells if the sequence is at its end.