Splits an interval into subintervals.
This class divides an interval into the disjoint union of subintervals and enumerates its boundaries. It can be used to parallelize large for-loops that iterate over a contiguous range of elements. The interval and the number of subintervals can be set in the constructor Splitter. length and resize can be used to retrieve or change the number of subintervals later. In contrast to other containers the Splitter allows to access one more element than its length would imply to allow to retrieve the right boundary of each subinterval (see example code below).
Type of the interval boundaries.
Tag to select the way the values are sampled.
Default: Equidistant Splitter
|Splits an interval into equal-sized subintervals.|
|Type of an object that is suitable to hold size information.|
|Type of the items in the container or behind an iterator.|
|The number of items/characters.|
|Resizes a container. If the new length exceeds the old length the new elements are filled with copies of |
Simple example for equidistant (default) splitting.
SeqAn - Sequence Analysis Library - www.seqan.de