Files Classes Functions Hierarchy
#include <treeindexedD2iter.h>
Public Member Functions | |
| treeindexedD2iter (treeindexedD2< T > &tree_, boolc setreset=true) | |
| Pass in the tree. | |
| void | reset () |
| Reset the iterator. | |
| void | movedown () |
| From the current node as defined by path, fall down left first, then right. | |
| void | operator++ () |
| Move to the next node in the tree. | |
| boolc | operator! () const |
| Is the iterator valid? | |
| treeindexedD2node< T > * | operator() () const |
| Get the current node. | |
| treeindexedD2iter (treeindexedD2< T > &tree_, boolc setreset=true) | |
| Pass in the tree. | |
| void | reset () |
| Reset the iterator. | |
| void | movedown () |
| From the current node as defined by path, fall down left first, then right. | |
| void | operator++ () |
| Move to the next node in the tree. | |
| boolc | operator! () const |
| Is the iterator valid? | |
| treeindexedD2node< T > * | operator() () const |
| Get the current node. | |
Public Attributes | |
| vector< treeindexedD2node< T > * > | path |
| List of nodes defining the current path. | |
| treeindexedD2< T > & | tree |
| The tree this iterator is iterating over. | |
cout << "Iterating over every node." << endl;
treeindexedD2iter<uint> i1(t1,false);
for ( i1.reset(); !i1; ++i1)
cout << i1()->index << " ";
cout << "Iterating over every node." << endl;
for ( treeindexedD2iter<uint> i1(t1); !i1; ++i1)
cout << i1()->index << " ";
Definition at line 24 of file treeindexedD2iter.h.
| treeindexedD2iter< T >::treeindexedD2iter | ( | treeindexedD2< T > & | tree_, | |
| boolc | setreset = true | |||
| ) | [inline] |
| treeindexedD2iter< T >::treeindexedD2iter | ( | treeindexedD2< T > & | tree_, | |
| boolc | setreset = true | |||
| ) | [inline] |
| void treeindexedD2iter< T >::movedown | ( | ) |
From the current node as defined by path, fall down left first, then right.
The path is changed.
| void treeindexedD2iter< T >::movedown | ( | ) |
From the current node as defined by path, fall down left first, then right.
The path is changed.
Referenced by treeindexedD2iter< T >::operator++(), and treeindexedD2iter< T >::reset().
| boolc treeindexedD2iter< T >::operator! | ( | ) | const [inline] |
Is the iterator valid?
Definition at line 50 of file treeindexediter.h.
00051 { return !path.empty(); }
| boolc treeindexedD2iter< T >::operator! | ( | ) | const [inline] |
Is the iterator valid?
Definition at line 50 of file treeindexedD2iter.h.
00051 { return !path.empty(); }
| treeindexedD2node<T>* treeindexedD2iter< T >::operator() | ( | ) | const [inline] |
| treeindexedD2node<T>* treeindexedD2iter< T >::operator() | ( | ) | const [inline] |
| void treeindexedD2iter< T >::operator++ | ( | ) |
Move to the next node in the tree.
Reimplemented in treeindexedD2iterleaf< T >, treeindexedD2iterinternal< T >, treeindexedD2iterleaf< T >, and treeindexedD2iterinternal< T >.
| void treeindexedD2iter< T >::operator++ | ( | ) |
Move to the next node in the tree.
Reimplemented in treeindexedD2iterleaf< T >, treeindexedD2iterinternal< T >, treeindexedD2iterleaf< T >, and treeindexedD2iterinternal< T >.
| void treeindexedD2iter< T >::reset | ( | ) |
Reset the iterator.
Reimplemented in treeindexedD2iterinternal< T >, and treeindexedD2iterinternal< T >.
| void treeindexedD2iter< T >::reset | ( | ) |
Reset the iterator.
Reimplemented in treeindexedD2iterinternal< T >, and treeindexedD2iterinternal< T >.
Referenced by treeindexedD2test::test04(), and treeindexedD2iter< T >::treeindexedD2iter().
| vector< treeindexedD2node< T > * > treeindexedD2iter< T >::path |
List of nodes defining the current path.
The last node is the current node.
Definition at line 30 of file treeindexedD2iter.h.
Referenced by treeindexedD2iter< T >::movedown(), treeindexedD2iter< T >::operator!(), treeindexedD2iter< T >::operator()(), treeindexedD2iter< T >::operator++(), and treeindexedD2iter< T >::reset().
| treeindexedD2< T > & treeindexedD2iter< T >::tree |
The tree this iterator is iterating over.
Definition at line 33 of file treeindexedD2iter.h.
Referenced by treeindexedD2iter< T >::reset().
1.5.8