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::string_qgram_functor< string_type > Struct Template Reference

Detailed description

template< typename string_type>
struct nvbio::string_qgram_functor< string_type >

A utility functor to extract the i-th q-gram out of a string

Template Parameters
string_typethe string iterator type

Definition at line 802 of file qgram.h.

#include <qgram.h>

Public Types

typedef uint32 argument_type
 
typedef uint64 result_type
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_qgram_functor (const uint32 _Q, const uint32 _symbol_size, const uint32 _string_len, const string_type _string)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint64 
operator() (const uint32 i) const
 

Public Members

const uint32 Q
 q-gram size More...
 
const uint32 symbol_size
 symbol size More...
 
const uint32 symbol_mask
 symbol size More...
 
const uint32 string_len
 string length More...
 
const string_type string
 string iterator More...
 

Member Typedef Documentation

template<typename string_type>
typedef uint32 nvbio::string_qgram_functor< string_type >::argument_type

Definition at line 804 of file qgram.h.

template<typename string_type>
typedef uint64 nvbio::string_qgram_functor< string_type >::result_type

Definition at line 805 of file qgram.h.

Constructor & Destructor Documentation

template<typename string_type>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::string_qgram_functor< string_type >::string_qgram_functor ( const uint32  _Q,
const uint32  _symbol_size,
const uint32  _string_len,
const string_type  _string 
)
inline

constructor

Parameters
_Qthe q-gram length
_symbol_sizethe size of the symbols, in bits
_string_lenstring length
_stringstring iterator

Definition at line 815 of file qgram.h.

Member Function Documentation

template<typename string_type>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint64 nvbio::string_qgram_functor< string_type >::operator() ( const uint32  i) const
inline

functor operator

Parameters
iposition along the string

Definition at line 827 of file qgram.h.

Member Data Documentation

template<typename string_type>
const uint32 nvbio::string_qgram_functor< string_type >::Q

q-gram size

Definition at line 836 of file qgram.h.

template<typename string_type>
const string_type nvbio::string_qgram_functor< string_type >::string

string iterator

Definition at line 840 of file qgram.h.

template<typename string_type>
const uint32 nvbio::string_qgram_functor< string_type >::string_len

string length

Definition at line 839 of file qgram.h.

template<typename string_type>
const uint32 nvbio::string_qgram_functor< string_type >::symbol_mask

symbol size

Definition at line 838 of file qgram.h.

template<typename string_type>
const uint32 nvbio::string_qgram_functor< string_type >::symbol_size

symbol size

Definition at line 837 of file qgram.h.


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