Class Specialization
Sampler
Outputs m-tuples beginning at a position of difference cover DC.
Pipe
Sampler
Pipe<TInput, Sampler<m, DC[, TCompression]> >
Include Headers
seqan/pipe.h
Parameters
TInput
The type of the pipeline module this module reads from.
m
The tuple size.
DC
A set of non-negative integers less than m.
DC[0] contains the size of the set and DC[1..DC[0]] contains the distinct and ordered elements.
TCompression
Enable/Disable compression.
If void, no compression is used.
If Compressed, bit-compressed Tuples are used.
Default: void.
Remarks
The output type is a Pair of size type and Tuple of input elements and length m (i.e. Pair<Size<TInput>::Type, Tuple<Value<TInput>::Type, m, TCompression> >).
The first output field contains the number of remaining pipe elements. The m-tuple in the second field contains the first m elements of them. The m-tuples are substrings of the input stream beginning at positions i, with (n-i) mod m is element of the set DC (n is the input stream length).
Specialization of
Member Functions
PipeConstructor (Pipe)
Functions
assignAssigns one object to another object. (Pipe)
atEndDetermines whether an iterator is at the end position. (Pipe)
beginReadInitiates a read process. (Pipe)
endReadTerminates a read process. (Pipe)
frontGets the first element of the remaining stream. (Pipe)
lengthThe number of items/characters. (Pipe)
popPops the first element of the remaining stream. (Pipe)
Examples
The set {1,2,4} is represented by int DC[] = { 3, 1, 2, 4 }.
SeqAn - Sequence Analysis Library - www.seqan.de
 

Page built @2011/02/08 21:37:12