I don't know how and why this piece of code works:
// postorder dfs
Iterator< Index<String<char> >, TopDown<ParentLink<Postorder> > >::Type
myIterator(myIndex);
while (goDown(myIterator));
for (; !atEnd(myIterator); goNext(myIterator))
// do something with myIterator ( Traverse Through (Suffix)-tree )
It's an example from seqan and the interface is described here: API
- How can the while affect the for-loop?
- Why isn't the for loop initialized?