Class Specialization
AnnotationTree Iterator
Iterator of the annotation tree represented by a FragmentStore.
Iter<TFragmentStore, AnnotationTree<> >
Iterator<TFragmentStore, AnnotationTree<> >::Type
Include Headers
seqan/store.h
Parameters
TFragmentStore
A FragmentStore class.
Remarks
This iterator can move down, right, and up in the tree and supports a preorder dfs traversal via the functions goBegin, goNext, and atEnd. Preorder means that the iterator visits a node before its children.
To access the annotation, the iterator points to, use getAnnotation. The annotation id is returned by value.
Specialization of
Metafunctions
ContainerType of the container given an iterator. (Iter)
DifferenceType of an object that stores the difference between two iterators. (Iter)
GetValueType for reading values. (Iter)
IteratorType of iterator objects that are used to traverse the container. (Iter)
PositionType of an object that represents a position in a container. (Iter)
ReferenceReference type. (Iter)
SpecThe spec of a class. (Iter)
ValueType of the items in the container or behind an iterator. (Iter)
Member Functions
AnnotationTree IteratorConstructor
Functions
assignValueAssigns value to item. (Iter)
assignValueByKeyAdd or update a key-value pair of the current annotation.
atBeginDetermines whether an iterator is at the beginning position.
atEndDetermines whether an iterator is at the end position.
atEndOfSequenceReturns true if the iterator is at the end of a sequence. (Iter)
clearValuesClear all key-value pairs of the current annotation.
containerContainer of an iterator. (Iter)
createLeftChildCreates a new left-most child of the current node and returns an iterator to it.
createRightChildCreates a new right-most child of the current node and returns an iterator to it.
createSiblingCreates a new right sibling of the current node and returns an iterator to it.
differenceThe difference between two iterators. (Iter)
getAnnotationReturns the current annotation.
getNameReturns the identifier of the current annotation.
getParentNameReturns the identifier of the parent node in the annotation tree of the current annotation.
getTypeReturns the type name of the current annotation.
getUniqueNameReturns a unique name of the current annotation.
getValueAccess to the value. (Iter)
getValueByKeyGiven a key, retrieve its value of the current annotation.
goBeginIterates to the first position of a container.
goDownMove the iterator down to the left-most child in the annotation tree.
goEndIterates to the last position of a container.
goFurtherIterates some steps further. (Iter)
goNextIterates to next position.
goNextRightGo to the next node in preorder DFS skipping the current node's subtree.
goNextUpGo to the next node in preorder DFS skipping the subtrees of the current node and of all its siblings.
goPreviousIterates to pevious position. (Iter)
goRightMove the iterator right to the next sibling in the annotation tree.
goRootGo to the root node in the annotation tree.
goToMoves the iterator to an arbitrary node given its annotationId.
goUpMove the iterator up in the annotation tree.
isLastChildReturns a boolean value that indicates whether the current node is the last child.
isLeafTest whether a tree iterator points to a leaf.
isRootTest whether a tree iterator points to the root node.
moveValueAssigns value to item. (Iter)
nodeDownReturns a new iterator to the first child node of the current annotation in the annotation tree.
nodeRightReturns a new iterator to the right sibling of the current annotation in the annotation tree.
nodeUpReturns a new iterator to the parent node of the current annotation in the annotation tree.
positionPosition of an iterator. (Iter)
setNameSets the identifier of the current annotation.
setTypeSets the type name of the current annotation.
valueReference to the value. (Iter)
Examples
Typical annotation tree hierarchy.
A new annotation tree iterator can be instantiated as follows:
Iterator<FragmentStore<>, AnnotationTree<> >::Type it;
it = begin(store, AnnotationTree<>());
Iterator<FragmentStore<>, AnnotationTree<> >::Type it(store);
SeqAn - Sequence Analysis Library - www.seqan.de
 

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