| Class Finder Holds the haystack and a current search context. Finder<THaystack[, TSpec]> Parameters
THaystack | The haystack type. Types: Index, String
TSpec | The index-algorithm to search with (Optional). Default: The result of DefaultFinder Remarks: Leave empty for online pattern matching (see Pattern). If THaystack is an Index, then TSpec specifies the index search algorithm.
Metafunctions
Haystack | Returns the haystack type of a Finder type.
Functions
clear | Resets an object.
find | Search for a Pattern in a Finder object.
haystack | Returns the haystack of a Finder object.
position | Position of an iterator.
setHaystack | Sets the haystack of a Finder object.
Remarks position(finder) returns the position of the current hit in the haystack. If THaystack is a set of strings or an index of a set of strings, then position(finder) returns a Pair (hayNo, pos), in which hayNo is the haystack index and pos the local position of the hit. Use clear(finder) to reset a finder object and search from the beginning. Example Programs Index Finder, Index Finder StringSet See Also Index Find Algorithm SeqAn - Sequence Analysis Library - www.seqan.de