NVBIO
|
A simple class to build an iterator on top of any string container
Definition at line 47 of file string_iterator.h.
#include <string_iterator.h>
Public Types | |
typedef StringType | string_type |
typedef random_access_universal_iterator_tag | iterator_category |
typedef string_traits < StringType >::value_type | value_type |
typedef string_traits < StringType >::reference | reference |
typedef string_traits < StringType >::pointer | pointer |
typedef string_traits < StringType >::index_type | index_type |
typedef signed_type < index_type >::type | difference_type |
typedef string_iterator < StringType > | forward_iterator |
Public Methods | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | string_iterator () |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | string_iterator (const StringType &string, const index_type index=0) |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference | operator[] (const index_type i) |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference | operator[] (const index_type i) const |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference | operator* () |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference | operator* () const |
Public Members | |
string_type | m_string |
index_type | m_index |
Static Public Members | |
static const uint32 | SYMBOL_SIZE = string_traits<StringType>::SYMBOL_SIZE |
Related Functions | |
(Note that these are not member functions.) | |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > | make_string_iterator (const StringType &string) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool | operator< (const string_iterator< StringType > &it1, const string_iterator< StringType > &it2) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool | operator> (const string_iterator< StringType > &it1, const string_iterator< StringType > &it2) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool | operator<= (const string_iterator< StringType > &it1, const string_iterator< StringType > &it2) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool | operator>= (const string_iterator< StringType > &it1, const string_iterator< StringType > &it2) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool | operator== (const string_iterator< StringType > &it1, const string_iterator< StringType > &it2) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool | operator!= (const string_iterator< StringType > &it1, const string_iterator< StringType > &it2) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & | operator++ (string_iterator< StringType > &it) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > | operator++ (string_iterator< StringType > &it, int dummy) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & | operator-- (string_iterator< StringType > &it) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > | operator-- (string_iterator< StringType > &it, int dummy) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & | operator+= (string_iterator< StringType > &it, const typename string_iterator< StringType >::difference_type distance) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & | operator-= (string_iterator< StringType > &it, const typename string_iterator< StringType >::difference_type distance) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > | operator+ (const string_iterator< StringType > it, const typename string_iterator< StringType >::difference_type distance) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > | operator- (const string_iterator< StringType > it, const typename string_iterator< StringType >::difference_type distance) |
template<typename StringType > | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > ::difference_type | operator- (const string_iterator< StringType > it1, const string_iterator< StringType > it2) |
typedef signed_type<index_type>::type nvbio::string_iterator< StringType >::difference_type |
Definition at line 57 of file string_iterator.h.
typedef string_iterator<StringType> nvbio::string_iterator< StringType >::forward_iterator |
Definition at line 58 of file string_iterator.h.
typedef string_traits<StringType>::index_type nvbio::string_iterator< StringType >::index_type |
Definition at line 56 of file string_iterator.h.
typedef random_access_universal_iterator_tag nvbio::string_iterator< StringType >::iterator_category |
Definition at line 52 of file string_iterator.h.
typedef string_traits<StringType>::pointer nvbio::string_iterator< StringType >::pointer |
Definition at line 55 of file string_iterator.h.
typedef string_traits<StringType>::reference nvbio::string_iterator< StringType >::reference |
Definition at line 54 of file string_iterator.h.
typedef StringType nvbio::string_iterator< StringType >::string_type |
Definition at line 51 of file string_iterator.h.
typedef string_traits<StringType>::value_type nvbio::string_iterator< StringType >::value_type |
Definition at line 53 of file string_iterator.h.
|
inline |
constructor
Definition at line 62 of file string_iterator.h.
|
inline |
constructor
Definition at line 67 of file string_iterator.h.
|
inline |
dereference operator
Definition at line 82 of file string_iterator.h.
|
inline |
dereference operator
Definition at line 86 of file string_iterator.h.
|
inline |
|
inline |
index_type nvbio::string_iterator< StringType >::m_index |
Definition at line 90 of file string_iterator.h.
string_type nvbio::string_iterator< StringType >::m_string |
Definition at line 89 of file string_iterator.h.
|
static |
Definition at line 49 of file string_iterator.h.