File: LinearCounter.h

package info (click to toggle)
mapsembler2 2.2.4%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,288 kB
  • sloc: cpp: 51,204; ansic: 13,165; sh: 542; makefile: 394; asm: 271; python: 28
file content (29 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  LinearCounter.h

#ifndef LinearCounter_h
#define LinearCounter_h
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <cmath> // for log2f
#include "Bank.h"
#include "Bloom.h"

class LinearCounter{

protected:

    Bloom *bloom;
    unsigned long desired_size, bloom_size; 
public:
    void add(bloom_elem kmer);
    long count();
    int contains(bloom_elem kmer); // dummy, because bloom_pass_reads wants this method to be exposed
    bool is_accurate();

    LinearCounter(long size);
    ~LinearCounter();
};

#endif