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

Detailed description

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

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 167 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
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE index_type 
string_id () 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, 4u >::const_iterator

Definition at line 179 of file infix.h.

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

Definition at line 170 of file infix.h.

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

Definition at line 180 of file infix.h.

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

Definition at line 171 of file infix.h.

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

Definition at line 178 of file infix.h.

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

Definition at line 172 of file infix.h.

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

Definition at line 176 of file infix.h.

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

Definition at line 169 of file infix.h.

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

Definition at line 174 of file infix.h.

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

Definition at line 175 of file infix.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 185 of file infix.h.

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

constructor

Definition at line 190 of file infix.h.

Member Function Documentation

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

return an iterator

Definition at line 233 of file infix.h.

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

return an iterator

Definition at line 241 of file infix.h.

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

return the infix coordinates

Definition at line 224 of file infix.h.

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

return an iterator

Definition at line 237 of file infix.h.

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

return an iterator

Definition at line 245 of file infix.h.

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

infix length

Definition at line 204 of file infix.h.

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

indexing operator

Definition at line 209 of file infix.h.

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

indexing operator

Definition at line 214 of file infix.h.

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

return the infix range

Definition at line 219 of file infix.h.

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

infix size

Definition at line 199 of file infix.h.

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

return the string id

Definition at line 229 of file infix.h.

Member Data Documentation

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

the infix coordinates

Definition at line 248 of file infix.h.

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

the underlying string set

Definition at line 247 of file infix.h.


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