Payload data class for KmerState. More...
#include <kmers.hpp>
Public Attributes | |
ULong | count |
k-mer count. | |
Protected Attributes | |
PKmerState | m_pState |
Pointer to the owning KmerState object. | |
KmerId | m_id |
ID of k-mer, cached here from m_pState to avoid pointer dereferencing during sorting. |
Payload data class for KmerState.
Separate class for payload allows lazy allocation of that data. The main reason is to have as few payload objects as we actually saw k-mers in the input. This in turn will allow extraction of k-mer counts in time which does not depend on the size of k-mer space (k-mer length).
k-mer count.
KmerId MGT::KmerStateData::m_id [protected] |
ID of k-mer, cached here from m_pState to avoid pointer dereferencing during sorting.
PKmerState MGT::KmerStateData::m_pState [protected] |
Pointer to the owning KmerState object.