gatb.core-API-0.0.0
|
Define a type that associates a value and an abundance. More...
#include <Abundance.hpp>
Public Member Functions | |
Abundance (const Type &val, const Number &abund) | |
Abundance & | operator= (const Abundance &a) |
const Number & | getAbundance () const |
const Type & | getValue () const |
bool | operator== (const Abundance &other) const |
Static Public Member Functions | |
static hid_t | hdf5 (bool &isCompound) |
Define a type that associates a value and an abundance.
We have often to count kmers, so we define a specific structure for this.
The structure has two templates types:
|
inline |
Constructor.
[in] | val | : value of the item |
[in] | abund | : abundance of the item. |
|
inline |
Get the abundance of the object
|
inline |
Get the value of the item
|
inlinestatic |
Creates a HDF5 type identifier for the [kmer,abundance] structure. This type will be used for dumping Count instances in a HDF5 file (like SortingCount algorithm does).
[in] | isCompound | : tells whether the structure is compound (SHOULD BE OBSOLETE IN THE FUTURE) |
Affectation operator.
[in] | a | : object to be copied. |
|
inline |
Equality operator. alues and abundances must be equals
[in] | other | : object to be compared to |