NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | Public Members | List of all members
nvbio::PrefixCore< StringType, CoordType, 2u > Struct Template Reference

Detailed description

template< typename StringType, typename CoordType>
struct nvbio::PrefixCore< StringType, CoordType, 2u >

A class to represent a string prefix, i.e. an arbitrarily placed substring

Template Parameters
StringTypethe underlying string type
CoordTypethe type of prefix coordinates, uint32|uint64

Definition at line 161 of file prefix.h.

#include <prefix.h>

Public Types

typedef StringType string_type
 
typedef CoordType coord_type
 
typedef vector_traits
< CoordType >::value_type 
index_type
 
typedef std::iterator_traits
< string_type >::value_type 
symbol_type
 
typedef std::iterator_traits
< string_type >::value_type 
value_type
 
typedef std::iterator_traits
< string_type >::reference 
reference
 
typedef string_traits
< StringType >::iterator 
iterator
 
typedef string_traits
< StringType >::const_iterator 
const_iterator
 
typedef string_traits
< StringType >
::forward_iterator 
forward_iterator
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE PrefixCore ()
 
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE PrefixCore (const string_type string, const coord_type prefix)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint32 
size () const
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint32 
length () const
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE symbol_type 
operator[] (const uint32 i) const
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE reference 
operator[] (const uint32 i)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE coord_type 
coords () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Public Members

string_type m_string
 the underlying string set More...
 
coord_type m_coords
 the prefix coordinates More...
 

Member Typedef Documentation

template<typename StringType , typename CoordType >
typedef string_traits<StringType>::const_iterator nvbio::PrefixCore< StringType, CoordType, 2u >::const_iterator

Definition at line 172 of file prefix.h.

template<typename StringType , typename CoordType >
typedef CoordType nvbio::PrefixCore< StringType, CoordType, 2u >::coord_type

Definition at line 164 of file prefix.h.

template<typename StringType , typename CoordType >
typedef string_traits<StringType>::forward_iterator nvbio::PrefixCore< StringType, CoordType, 2u >::forward_iterator

Definition at line 173 of file prefix.h.

template<typename StringType , typename CoordType >
typedef vector_traits<CoordType>::value_type nvbio::PrefixCore< StringType, CoordType, 2u >::index_type

Definition at line 165 of file prefix.h.

template<typename StringType , typename CoordType >
typedef string_traits<StringType>::iterator nvbio::PrefixCore< StringType, CoordType, 2u >::iterator

Definition at line 171 of file prefix.h.

template<typename StringType , typename CoordType >
typedef std::iterator_traits<string_type>::reference nvbio::PrefixCore< StringType, CoordType, 2u >::reference

Definition at line 169 of file prefix.h.

template<typename StringType , typename CoordType >
typedef StringType nvbio::PrefixCore< StringType, CoordType, 2u >::string_type

Definition at line 163 of file prefix.h.

template<typename StringType , typename CoordType >
typedef std::iterator_traits<string_type>::value_type nvbio::PrefixCore< StringType, CoordType, 2u >::symbol_type

Definition at line 167 of file prefix.h.

template<typename StringType , typename CoordType >
typedef std::iterator_traits<string_type>::value_type nvbio::PrefixCore< StringType, CoordType, 2u >::value_type

Definition at line 168 of file prefix.h.

Constructor & Destructor Documentation

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::PrefixCore< StringType, CoordType, 2u >::PrefixCore ( )
inline

constructor

Definition at line 178 of file prefix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::PrefixCore< StringType, CoordType, 2u >::PrefixCore ( const string_type  string,
const coord_type  prefix 
)
inline

constructor

Definition at line 183 of file prefix.h.

Member Function Documentation

template<typename StringType , typename CoordType >
iterator nvbio::PrefixCore< StringType, CoordType, 2u >::begin ( void  )
inline

return an iterator

Definition at line 216 of file prefix.h.

template<typename StringType , typename CoordType >
const_iterator nvbio::PrefixCore< StringType, CoordType, 2u >::begin ( void  ) const
inline

return an iterator

Definition at line 224 of file prefix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE coord_type nvbio::PrefixCore< StringType, CoordType, 2u >::coords ( ) const
inline

return the prefix coordinates

Definition at line 212 of file prefix.h.

template<typename StringType , typename CoordType >
iterator nvbio::PrefixCore< StringType, CoordType, 2u >::end ( void  )
inline

return an iterator

Definition at line 220 of file prefix.h.

template<typename StringType , typename CoordType >
const_iterator nvbio::PrefixCore< StringType, CoordType, 2u >::end ( void  ) const
inline

return an iterator

Definition at line 228 of file prefix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint32 nvbio::PrefixCore< StringType, CoordType, 2u >::length ( ) const
inline

prefix length

Definition at line 197 of file prefix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE symbol_type nvbio::PrefixCore< StringType, CoordType, 2u >::operator[] ( const uint32  i) const
inline

indexing operator

Definition at line 202 of file prefix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE reference nvbio::PrefixCore< StringType, CoordType, 2u >::operator[] ( const uint32  i)
inline

indexing operator

Definition at line 207 of file prefix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint32 nvbio::PrefixCore< StringType, CoordType, 2u >::size ( void  ) const
inline

prefix size

Definition at line 192 of file prefix.h.

Member Data Documentation

template<typename StringType , typename CoordType >
coord_type nvbio::PrefixCore< StringType, CoordType, 2u >::m_coords

the prefix coordinates

Definition at line 231 of file prefix.h.

template<typename StringType , typename CoordType >
string_type nvbio::PrefixCore< StringType, CoordType, 2u >::m_string

the underlying string set

Definition at line 230 of file prefix.h.


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