Example Program
Rooted Iterators
Example for some functions for handling (rooted) iterators.
File "rooted_iterator.cpp"
A tutorial about the use of rooted iterators.
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
The rooted iterator can be specified by passing the iterator spec Rooted as a second argument.
| 11 |
The same iterator spec can be used as a tag for functions that return an iterator, e.g. begin or end.
| 12 |
A rooted iterator "knows" its container, so it supports the function container.
| 13 | |
| 14 |
| 15 | |
| 16 | |
| 17 |
See
See Also
SeqAn - Sequence Analysis Library - www.seqan.de