NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Public Members | Static Public Members | Related Functions | List of all members
nvbio::string_iterator< StringType > Struct Template Reference

Detailed description

template< typename StringType>
struct nvbio::string_iterator< StringType >

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)
 

Member Typedef Documentation

template<typename StringType>
typedef signed_type<index_type>::type nvbio::string_iterator< StringType >::difference_type

Definition at line 57 of file string_iterator.h.

template<typename StringType>
typedef string_iterator<StringType> nvbio::string_iterator< StringType >::forward_iterator

Definition at line 58 of file string_iterator.h.

template<typename StringType>
typedef string_traits<StringType>::index_type nvbio::string_iterator< StringType >::index_type

Definition at line 56 of file string_iterator.h.

template<typename StringType>
typedef random_access_universal_iterator_tag nvbio::string_iterator< StringType >::iterator_category

Definition at line 52 of file string_iterator.h.

template<typename StringType>
typedef string_traits<StringType>::pointer nvbio::string_iterator< StringType >::pointer

Definition at line 55 of file string_iterator.h.

template<typename StringType>
typedef string_traits<StringType>::reference nvbio::string_iterator< StringType >::reference

Definition at line 54 of file string_iterator.h.

template<typename StringType>
typedef StringType nvbio::string_iterator< StringType >::string_type

Definition at line 51 of file string_iterator.h.

template<typename StringType>
typedef string_traits<StringType>::value_type nvbio::string_iterator< StringType >::value_type

Definition at line 53 of file string_iterator.h.

Constructor & Destructor Documentation

template<typename StringType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::string_iterator< StringType >::string_iterator ( )
inline

constructor

Definition at line 62 of file string_iterator.h.

template<typename StringType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::string_iterator< StringType >::string_iterator ( const StringType &  string,
const index_type  index = 0 
)
inline

constructor

Definition at line 67 of file string_iterator.h.

Member Function Documentation

template<typename StringType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference nvbio::string_iterator< StringType >::operator* ( )
inline

dereference operator

Definition at line 82 of file string_iterator.h.

template<typename StringType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference nvbio::string_iterator< StringType >::operator* ( ) const
inline

dereference operator

Definition at line 86 of file string_iterator.h.

template<typename StringType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference nvbio::string_iterator< StringType >::operator[] ( const index_type  i)
inline

indexing operator

Parameters
irequested value

Definition at line 73 of file string_iterator.h.

template<typename StringType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference nvbio::string_iterator< StringType >::operator[] ( const index_type  i) const
inline

indexing operator

Parameters
irequested value

Definition at line 78 of file string_iterator.h.

Member Data Documentation

template<typename StringType>
index_type nvbio::string_iterator< StringType >::m_index

Definition at line 90 of file string_iterator.h.

template<typename StringType>
string_type nvbio::string_iterator< StringType >::m_string

Definition at line 89 of file string_iterator.h.

template<typename StringType>
const uint32 nvbio::string_iterator< StringType >::SYMBOL_SIZE = string_traits<StringType>::SYMBOL_SIZE
static

Definition at line 49 of file string_iterator.h.


The documentation for this struct was generated from the following file: