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_set_qgram_functor< string_set_type > Struct Template Reference

Detailed description

template< typename string_set_type>
struct nvbio::string_set_qgram_functor< string_set_type >

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

Template Parameters
string_set_typethe string-set type

Definition at line 848 of file qgram.h.

#include <qgram.h>

Public Types

typedef uint32 argument_type
 
typedef uint64 result_type
 
typedef
string_set_type::string_type 
string_type
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_set_qgram_functor (const uint32 _Q, const uint32 _symbol_size, const string_set_type _string_set)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint64 
operator() (const uint2 id) 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 string_set_type string_set
 string-set More...
 

Member Typedef Documentation

template<typename string_set_type>
typedef uint32 nvbio::string_set_qgram_functor< string_set_type >::argument_type

Definition at line 850 of file qgram.h.

template<typename string_set_type>
typedef uint64 nvbio::string_set_qgram_functor< string_set_type >::result_type

Definition at line 851 of file qgram.h.

template<typename string_set_type>
typedef string_set_type::string_type nvbio::string_set_qgram_functor< string_set_type >::string_type

Definition at line 853 of file qgram.h.

Constructor & Destructor Documentation

template<typename string_set_type>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::string_set_qgram_functor< string_set_type >::string_set_qgram_functor ( const uint32  _Q,
const uint32  _symbol_size,
const string_set_type  _string_set 
)
inline

constructor

Parameters
_Qthe q-gram length
_symbol_sizethe size of the symbols, in bits
_string_setthe string-set

Definition at line 862 of file qgram.h.

Member Function Documentation

template<typename string_set_type>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint64 nvbio::string_set_qgram_functor< string_set_type >::operator() ( const uint2  id) const
inline

functor operator

Parameters
idstring-set coordinate

Definition at line 873 of file qgram.h.

Member Data Documentation

template<typename string_set_type>
const uint32 nvbio::string_set_qgram_functor< string_set_type >::Q

q-gram size

Definition at line 888 of file qgram.h.

template<typename string_set_type>
const string_set_type nvbio::string_set_qgram_functor< string_set_type >::string_set

string-set

Definition at line 891 of file qgram.h.

template<typename string_set_type>
const uint32 nvbio::string_set_qgram_functor< string_set_type >::symbol_mask

symbol size

Definition at line 890 of file qgram.h.

template<typename string_set_type>
const uint32 nvbio::string_set_qgram_functor< string_set_type >::symbol_size

symbol size

Definition at line 889 of file qgram.h.


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