NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules | Classes | Functions
Strings Module

Detailed Description

This module defines various functions and classes to operate with strings and string-sets which vary for the internal representation. For a deeper explanation, see the Strings Module page.

Modules

 Alphabets
 
 String Prefetchers
 
 String Sets
 
 Vectorized String Loading
 
 Wavelet Trees
 

Classes

struct  nvbio::string_iterator< StringType >
 
struct  nvbio::string_traits< T >
 
struct  nvbio::string_traits< T * >
 
struct  nvbio::string_traits< const T * >
 

Functions

NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint64 
nvbio::length (const char *str)
 
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)
 

Function Documentation

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint64 nvbio::length ( const char *  str)

length of an ASCII string

Definition at line 44 of file string.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > make_string_iterator ( const StringType &  string)
related

make a string iterator

Definition at line 98 of file string_iterator.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const string_iterator< StringType > &  it1,
const string_iterator< StringType > &  it2 
)
related

inequality test

Definition at line 90 of file string_iterator_inl.h.

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 
)
related

add offset

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & operator++ ( string_iterator< StringType > &  it)
related

pre-increment operator

Definition at line 101 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > operator++ ( string_iterator< StringType > &  it,
int  dummy 
)
related

post-increment operator

Definition at line 111 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & operator+= ( string_iterator< StringType > &  it,
const typename string_iterator< StringType >::difference_type  distance 
)
related

add offset

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 
)
related

subtract offset

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType >::difference_type operator- ( const string_iterator< StringType >  it1,
const string_iterator< StringType >  it2 
)
related

difference

Definition at line 181 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & operator-- ( string_iterator< StringType > &  it)
related

pre-decrement operator

Definition at line 122 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > operator-- ( string_iterator< StringType > &  it,
int  dummy 
)
related

post-decrement operator

Definition at line 132 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_iterator< StringType > & operator-= ( string_iterator< StringType > &  it,
const typename string_iterator< StringType >::difference_type  distance 
)
related

subtract offset

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator< ( const string_iterator< StringType > &  it1,
const string_iterator< StringType > &  it2 
)
related

less than

Definition at line 40 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator<= ( const string_iterator< StringType > &  it1,
const string_iterator< StringType > &  it2 
)
related

less than

Definition at line 50 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const string_iterator< StringType > &  it1,
const string_iterator< StringType > &  it2 
)
related

equality test

Definition at line 80 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator> ( const string_iterator< StringType > &  it1,
const string_iterator< StringType > &  it2 
)
related

greater than

Definition at line 60 of file string_iterator_inl.h.

template<typename StringType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator>= ( const string_iterator< StringType > &  it1,
const string_iterator< StringType > &  it2 
)
related

greater than

Definition at line 70 of file string_iterator_inl.h.