Ejemplo n.º 1
0
void HashMap::Add(ReadSequence *rs)
{
    uint32_t rid_hash = _GetHash((*rs).readID) % this->size;

    HashEntry *h = new HashEntry(rid_hash);
    h->SetValue(rs);

    if(this->Get(rs) == NULL)
    {
        this->_map[rid_hash]->push_back(h);
        this->item_count++;
    }
}