Function
isLeaf
Test whether a tree iterator points to a leaf.
bool isLeaf(iterator)
Include Headers
seqan/index.h
Parameters
iterator
An iterator of a tree.
Return Values
true if iterator points to a leaf of the tree, otherwise false.
Types: bool
Examples
Code example for the RightArrayBinaryTree Iterator:
String<Dna5> genome = "ACGTACGT";
RightArrayBinaryTree<Dna5> waveletTreeStructure(genome);
 
Iterator<RightArrayBinaryTree<Dna5>, TopDown<> >::Type it;
it = begin(waveletTreeStructure); // go to root node
 
goRightChild(it); // go to right child of root node
goUp(it); // go to root node
Example Programs
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2013/07/11 09:12:18