NVBIO
|
The base q-gram index core class (see Q-Gram Index Module)
#include <qgram.h>
Public Types | |
typedef QGramVectorType | qgram_vector_type |
typedef IndexVectorType | index_vector_type |
typedef CoordVectorType | coord_vector_type |
typedef std::iterator_traits < qgram_vector_type > ::value_type | qgram_type |
typedef std::iterator_traits < coord_vector_type > ::value_type | coord_type |
typedef QGramIndexViewCore < QGramVectorType, IndexVectorType, CoordVectorType > | plain_view_type |
typedef QGramIndexViewCore < QGramVectorType, IndexVectorType, CoordVectorType > | const_plain_view_type |
typedef qgram_type | argument_type |
typedef uint2 | result_type |
Public Methods | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | QGramIndexViewCore () |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | QGramIndexViewCore (const uint32 _Q, const uint32 _symbol_size, const uint32 _n_qgrams, const uint32 _n_unique_qgrams, const qgram_vector_type _qgrams, const index_vector_type _slots, const coord_vector_type _index, const uint32 _QL, const uint32 _QLS, const index_vector_type _lut) |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint2 | range (const qgram_type g) const |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint2 | operator() (const qgram_type g) const |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE coord_type | locate (const uint32 i) const |
Public Members | |
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... | |
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... | |
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... | |
index_vector_type | lut |
a LUT used to accelerate q-gram searches More... | |
typedef qgram_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::argument_type |
typedef QGramIndexViewCore<QGramVectorType,IndexVectorType,CoordVectorType> nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::const_plain_view_type |
typedef std::iterator_traits<coord_vector_type>::value_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::coord_type |
typedef CoordVectorType nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::coord_vector_type |
typedef IndexVectorType nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::index_vector_type |
typedef QGramIndexViewCore<QGramVectorType,IndexVectorType,CoordVectorType> nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::plain_view_type |
typedef std::iterator_traits<qgram_vector_type>::value_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::qgram_type |
typedef QGramVectorType nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::qgram_vector_type |
typedef uint2 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::result_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
coord_vector_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::index |
index_vector_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::lut |
uint32 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::n_qgrams |
uint32 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::n_unique_qgrams |
uint32 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::Q |
qgram_vector_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::qgrams |
uint32 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::QL |
uint32 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::QLS |
index_vector_type nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::slots |
uint32 nvbio::QGramIndexViewCore< QGramVectorType, IndexVectorType, CoordVectorType >::symbol_size |