|
NVBIO
|
A sparse collection of strings that are stored as ranges of a larger string, and their starting points and end points are given by a range vector.
| StringIterator | base string support |
| RangeIterator | an iterator definining a set of ranges, whose value_type must be uint2. |
Assume you have a large packed-DNA genome and have identified a few isolated regions of importance that you want to analyze. With the following container you can easily represent them:
Definition at line 613 of file string_set.h.
#include <string_set.h>
Public Types | |
| typedef sparse_string_set_tag | string_set_tag |
| typedef std::iterator_traits < StringIterator >::value_type | symbol_type |
| typedef vector_view < StringIterator > | string_type |
| typedef StringIterator | symbol_iterator |
| typedef RangeIterator | range_iterator |
| typedef iterator_system < StringIterator >::type | system_tag |
| typedef StringSetIterator < SparseStringSet < StringIterator, RangeIterator > > | iterator |
| typedef StringSetIterator < SparseStringSet < StringIterator, RangeIterator > > | const_iterator |
Public Methods | |
| NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | SparseStringSet () |
| NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | SparseStringSet (const uint32 size, const StringIterator string, const RangeIterator ranges) |
| NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint32 | size () const |
| NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_type | operator[] (const uint32 i) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| iterator | begin () |
| iterator | end () |
| NVBIO_FORCEINLINE NVBIO_HOST_DEVICE symbol_iterator | base_string () const |
| NVBIO_FORCEINLINE NVBIO_HOST_DEVICE range_iterator | ranges () const |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename StringIterator , typename RangeIterator > | |
| SparseStringSet < StringIterator, RangeIterator > | make_sparse_string_set (const uint32 size, const StringIterator string, const RangeIterator offsets) |
| typedef StringSetIterator< SparseStringSet<StringIterator,RangeIterator> > nvbio::SparseStringSet< StringIterator, RangeIterator >::const_iterator |
Definition at line 623 of file string_set.h.
| typedef StringSetIterator< SparseStringSet<StringIterator,RangeIterator> > nvbio::SparseStringSet< StringIterator, RangeIterator >::iterator |
Definition at line 622 of file string_set.h.
| typedef RangeIterator nvbio::SparseStringSet< StringIterator, RangeIterator >::range_iterator |
Definition at line 619 of file string_set.h.
| typedef sparse_string_set_tag nvbio::SparseStringSet< StringIterator, RangeIterator >::string_set_tag |
Definition at line 615 of file string_set.h.
| typedef vector_view<StringIterator> nvbio::SparseStringSet< StringIterator, RangeIterator >::string_type |
Definition at line 617 of file string_set.h.
| typedef StringIterator nvbio::SparseStringSet< StringIterator, RangeIterator >::symbol_iterator |
Definition at line 618 of file string_set.h.
| typedef std::iterator_traits<StringIterator>::value_type nvbio::SparseStringSet< StringIterator, RangeIterator >::symbol_type |
Definition at line 616 of file string_set.h.
| typedef iterator_system<StringIterator>::type nvbio::SparseStringSet< StringIterator, RangeIterator >::system_tag |
Definition at line 620 of file string_set.h.
|
inline |
default constructor
Definition at line 628 of file string_set.h.
|
inline |
constructor
| size | set size |
| string | flat string iterator |
| ranges | string ranges in the flat string array |
Definition at line 637 of file string_set.h.
|
inline |
return the base string
Definition at line 681 of file string_set.h.
|
inline |
begin iterator
Definition at line 664 of file string_set.h.
|
inline |
begin iterator
Definition at line 672 of file string_set.h.
|
inline |
begin iterator
Definition at line 668 of file string_set.h.
|
inline |
begin iterator
Definition at line 676 of file string_set.h.
|
inline |
indexing operator: access the i-th string
Definition at line 653 of file string_set.h.
|
inline |
return the offset vector
Definition at line 686 of file string_set.h.
|
inline |
set size
Definition at line 648 of file string_set.h.
1.8.4