QxtLinkedTreeIterator Class Reference
[QxtCore module]
The QxtLinkedTreeIterator class provides fast access to an QxtLinkedTree More...
#include <QxtLinkedTreeIterator>
Public Functions
Detailed Description
The QxtLinkedTreeIterator class provides fast access to an QxtLinkedTree
Member Function Documentation
QxtLinkedTreeIterator::QxtLinkedTreeIterator ()
QxtLinkedTreeIterator::QxtLinkedTreeIterator ( const QxtLinkedTreeIterator<T> & other )
QxtLinkedTreeIterator QxtLinkedTreeIterator::append ( const T & value )
QxtLinkedTreeIterator QxtLinkedTreeIterator::child () const
returns an iterator to the first child item of this or an invalid iterator when there are no children
int QxtLinkedTreeIterator::children () const
returns the amount of childnodes.
QxtLinkedTreeIterator QxtLinkedTreeIterator::erase ()
QxtLinkedTreeIterator QxtLinkedTreeIterator::insert ( int i, const T & value )
bool QxtLinkedTreeIterator::isValid () const
verfies if this iterator points to a valid location inside the tree an invalid node is decoupled from the iteration. it can not be used for anything anymore.
QxtLinkedTree<int> tree(1);
QxtLinkedTreeIterator<int> it= tree.begin();
it++;
it--; !
QxtLinkedTreeIterator QxtLinkedTreeIterator::next () const
returns an iterator to the next item of this in the previous/next chain or an invalid iterator when this is the last one
QxtLinkedTreeIterator QxtLinkedTreeIterator::parent () const
returns an iterator to the parent item of this. or an invalid iterator when this is the root node
QxtLinkedTreeIterator QxtLinkedTreeIterator::previous () const
returns an iterator to the previous item of this or an invalid iterator when this is the first one in the next/previous chain
QxtLinkedTreeIterator::operator T () const
bool QxtLinkedTreeIterator::operator!= ( const QxtLinkedTreeIterator<T> & other ) const
T & QxtLinkedTreeIterator::operator* () const
Returns a modifiable reference to the current item. You can change the value of an item by using operator*() on the left side of an assignment, for example:
if (*it == "Hello")
*it = "Bonjour";
QxtLinkedTreeIterator QxtLinkedTreeIterator::operator+ ( int j ) const
QxtLinkedTreeIterator & QxtLinkedTreeIterator::operator++ ()
QxtLinkedTreeIterator QxtLinkedTreeIterator::operator++ ( int )
QxtLinkedTreeIterator & QxtLinkedTreeIterator::operator+= ( int j )
QxtLinkedTreeIterator QxtLinkedTreeIterator::operator- ( int j ) const
QxtLinkedTreeIterator & QxtLinkedTreeIterator::operator-- ()
QxtLinkedTreeIterator QxtLinkedTreeIterator::operator-- ( int )
QxtLinkedTreeIterator & QxtLinkedTreeIterator::operator-= ( int j )
T * QxtLinkedTreeIterator::operator-> () const
QxtLinkedTreeIterator & QxtLinkedTreeIterator::operator= ( const QxtLinkedTreeIterator<T> & other )
bool QxtLinkedTreeIterator::operator== ( const QxtLinkedTreeIterator<T> & other ) const