NVBIO
|
A "flat" collection of strings that are concatenated together into a single one, and their starting points are given by a single offset vector.
Here's an example defining a simple concatenated string set:
or even a packed one:
Definition at line 480 of file string_set.h.
#include <string_set.h>
Public Types | |
typedef concatenated_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 OffsetIterator | offset_iterator |
typedef iterator_system < StringIterator >::type | system_tag |
typedef StringSetIterator < ConcatenatedStringSet < StringIterator, OffsetIterator > > | iterator |
typedef StringSetIterator < ConcatenatedStringSet < StringIterator, OffsetIterator > > | const_iterator |
Public Methods | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | ConcatenatedStringSet () |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | ConcatenatedStringSet (const uint32 size, const StringIterator string, const OffsetIterator offsets) |
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 offset_iterator | offsets () const |
Related Functions | |
(Note that these are not member functions.) | |
template<typename StringIterator , typename OffsetIterator > | |
ConcatenatedStringSet < StringIterator, OffsetIterator > | make_concatenated_string_set (const uint32 size, const StringIterator string, const OffsetIterator offsets) |
typedef StringSetIterator< ConcatenatedStringSet<StringIterator,OffsetIterator> > nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::const_iterator |
Definition at line 490 of file string_set.h.
typedef StringSetIterator< ConcatenatedStringSet<StringIterator,OffsetIterator> > nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::iterator |
Definition at line 489 of file string_set.h.
typedef OffsetIterator nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::offset_iterator |
Definition at line 486 of file string_set.h.
typedef concatenated_string_set_tag nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::string_set_tag |
Definition at line 482 of file string_set.h.
typedef vector_view<StringIterator> nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::string_type |
Definition at line 484 of file string_set.h.
typedef StringIterator nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::symbol_iterator |
Definition at line 485 of file string_set.h.
typedef std::iterator_traits<StringIterator>::value_type nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::symbol_type |
Definition at line 483 of file string_set.h.
typedef iterator_system<StringIterator>::type nvbio::ConcatenatedStringSet< StringIterator, OffsetIterator >::system_tag |
Definition at line 487 of file string_set.h.
|
inline |
default constructor
Definition at line 495 of file string_set.h.
|
inline |
constructor
size | set size |
string | flat string iterator |
offsets | string offsets in the flat string array, must contain size+1 entries |
Definition at line 504 of file string_set.h.
|
inline |
return the base string
Definition at line 548 of file string_set.h.
|
inline |
begin iterator
Definition at line 531 of file string_set.h.
|
inline |
begin iterator
Definition at line 539 of file string_set.h.
|
inline |
begin iterator
Definition at line 535 of file string_set.h.
|
inline |
begin iterator
Definition at line 543 of file string_set.h.
|
inline |
return the offset vector
Definition at line 553 of file string_set.h.
|
inline |
indexing operator: access the i-th string
Definition at line 520 of file string_set.h.
|
inline |
set size
Definition at line 515 of file string_set.h.