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, 1u > Struct Template Reference

Detailed description

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

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 80 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, 1u >::const_iterator

Definition at line 91 of file prefix.h.

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

Definition at line 83 of file prefix.h.

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

Definition at line 92 of file prefix.h.

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

Definition at line 84 of file prefix.h.

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

Definition at line 90 of file prefix.h.

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

Definition at line 88 of file prefix.h.

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

Definition at line 82 of file prefix.h.

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

Definition at line 86 of file prefix.h.

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

Definition at line 87 of file prefix.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 97 of file prefix.h.

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

constructor

Definition at line 102 of file prefix.h.

Member Function Documentation

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

return an iterator

Definition at line 135 of file prefix.h.

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

return an iterator

Definition at line 143 of file prefix.h.

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

return the prefix coordinates

Definition at line 131 of file prefix.h.

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

return an iterator

Definition at line 139 of file prefix.h.

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

return an iterator

Definition at line 147 of file prefix.h.

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

prefix length

Definition at line 116 of file prefix.h.

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

indexing operator

Definition at line 121 of file prefix.h.

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

indexing operator

Definition at line 126 of file prefix.h.

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

prefix size

Definition at line 111 of file prefix.h.

Member Data Documentation

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

the prefix coordinates

Definition at line 150 of file prefix.h.

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

the underlying string set

Definition at line 149 of file prefix.h.


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