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::InfixCore< StringType, CoordType, 2u > Struct Template Reference

Detailed description

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

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

Template Parameters
StringTypethe underlying string type
CoordTypethe type of infix coordinates, string_infix_coord_type for strings or string_set_infix_coord_type for string-sets

Definition at line 80 of file infix.h.

#include <infix.h>

Public Types

typedef StringType string_type
 
typedef CoordType coord_type
 
typedef vector_traits
< CoordType >::value_type 
index_type
 
typedef vector_type
< index_type, 2 >::type 
range_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 InfixCore ()
 
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE InfixCore (const string_type string, const coord_type infix)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE index_type 
size () const
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE index_type 
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 range_type 
range () const
 
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 infix coordinates More...
 

Member Typedef Documentation

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

Definition at line 92 of file infix.h.

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

Definition at line 83 of file infix.h.

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

Definition at line 93 of file infix.h.

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

Definition at line 84 of file infix.h.

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

Definition at line 91 of file infix.h.

template<typename StringType , typename CoordType >
typedef vector_type<index_type,2>::type nvbio::InfixCore< StringType, CoordType, 2u >::range_type

Definition at line 85 of file infix.h.

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

Definition at line 89 of file infix.h.

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

Definition at line 82 of file infix.h.

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

Definition at line 87 of file infix.h.

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

Definition at line 88 of file infix.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 98 of file infix.h.

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

constructor

Definition at line 103 of file infix.h.

Member Function Documentation

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

return an iterator

Definition at line 141 of file infix.h.

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

return an iterator

Definition at line 149 of file infix.h.

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

return the infix coordinates

Definition at line 137 of file infix.h.

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

return an iterator

Definition at line 145 of file infix.h.

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

return an iterator

Definition at line 153 of file infix.h.

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

infix length

Definition at line 117 of file infix.h.

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

indexing operator

Definition at line 122 of file infix.h.

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

indexing operator

Definition at line 127 of file infix.h.

template<typename StringType , typename CoordType >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE range_type nvbio::InfixCore< StringType, CoordType, 2u >::range ( ) const
inline

return the infix range

Definition at line 132 of file infix.h.

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

infix size

Definition at line 112 of file infix.h.

Member Data Documentation

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

the infix coordinates

Definition at line 156 of file infix.h.

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

the underlying string set

Definition at line 155 of file infix.h.


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