File: TupleCountTable.hpp

package info (click to toggle)
pbseqlib 5.3.5%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,148 kB
  • sloc: cpp: 77,259; python: 331; sh: 103; makefile: 41
file content (34 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (4)
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
30
31
32
33
34
#ifndef _BLASR_TUPLE_COUNT_TABLE_HPP_
#define _BLASR_TUPLE_COUNT_TABLE_HPP_

#include <algorithm>
#include <cassert>
#include <fstream>
#include <iostream>

#include <alignment/tuples/TupleMetrics.hpp>

template <typename TSequence, typename TTuple>
class TupleCountTable
{
public:
    int *countTable;
    TupleData countTableLength;
    int nTuples;
    TupleMetrics tm;
    bool deleteStructures;
    void InitCountTable(TupleMetrics &ptm);

    TupleCountTable();
    ~TupleCountTable();
    void Free();

    void IncrementCount(TTuple &tuple);
    void AddSequenceTupleCountsLR(TSequence &seq);
    void Write(std::ofstream &out);
    void Read(std::ifstream &in);
};

#include "TupleCountTableImpl.hpp"

#endif