NVBIO
|
A device-side q-gram index for string-sets (see Q-Gram Index Module)
#include <qgram.h>
Public Methods | |
template<typename string_set_type > | |
void | build (const uint32 q, const uint32 symbol_sz, const string_set_type string_set, const uint32 qlut=0) |
template<typename string_set_type , typename seed_functor > | |
void | build (const uint32 q, const uint32 symbol_sz, const string_set_type string_set, const seed_functor seeder, const uint32 qlut=0) |
template<typename SystemTag > | |
QGramSetIndexDevice & | operator= (const QGramIndexCore< SystemTag, uint64, uint32, uint2 > &src) |
Public Methods inherited from nvbio::QGramIndexCore< device_tag, uint64, uint32, uint2 > | |
QGramIndexCore () | |
uint64 | used_host_memory () const |
uint64 | used_device_memory () const |
Additional Inherited Members | |
Public Members inherited from nvbio::QGramIndexCore< device_tag, uint64, uint32, uint2 > | |
uint32 | Q |
the q-gram size More... | |
uint32 | symbol_size |
symbol size More... | |
uint32 | n_qgrams |
the number of q-grams in the original string More... | |
uint32 | n_unique_qgrams |
the number of unique q-grams in the original string More... | |
qgram_vector_type | qgrams |
the sorted list of unique q-grams More... | |
index_vector_type | slots |
slots[i] stores the first occurrence of q-grams[i] in index More... | |
coord_vector_type | index |
the list of occurrences of all (partially-sorted) q-grams in the original string More... | |
uint32 | QL |
the number of LUT symbols More... | |
uint32 | QLS |
the number of leading bits of a q-gram to lookup in the LUT More... | |
index_vector_type | lut |
a LUT used to accelerate q-gram searches More... | |
typedef QGramIndexCore< device_tag, uint64, uint32, uint2> nvbio::QGramSetIndexDevice::core_type |
void nvbio::QGramSetIndexDevice::build | ( | const uint32 | q, |
const uint32 | symbol_sz, | ||
const string_set_type | string_set, | ||
const uint32 | qlut = 0 |
||
) |
build a q-gram index from a given string-set T
string_set_type | the string-set type |
q | the q parameter |
symbol_sz | the size of the symbols, in bits |
string_set | the string-set |
qlut | the number of symbols to include in the LUT (of size O( A^qlut )) used to accelerate q-gram searches |
Definition at line 319 of file qgram_inl.h.
void nvbio::QGramSetIndexDevice::build | ( | const uint32 | q, |
const uint32 | symbol_sz, | ||
const string_set_type | string_set, | ||
const seed_functor | seeder, | ||
const uint32 | qlut = 0 |
||
) |
build a q-gram index from a given string-set T using a Seeding Functor
string_set_type | the string-set type |
seed_functor | the Seeding Functor type |
q | the q parameter |
symbol_sz | the size of the symbols, in bits |
string_set | the string-set |
seeder | the seeding functor |
qlut | the number of symbols to include in the LUT (of size O( A^qlut )) used to accelerate q-gram searches |
Definition at line 195 of file qgram_inl.h.
QGramSetIndexDevice & nvbio::QGramSetIndexDevice::operator= | ( | const QGramIndexCore< SystemTag, uint64, uint32, uint2 > & | src) |
copy operator
Definition at line 389 of file qgram_inl.h.