-
Notifications
You must be signed in to change notification settings - Fork 1
/
fastcounting.h
executable file
·42 lines (28 loc) · 979 Bytes
/
fastcounting.h
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
35
36
37
38
39
40
41
42
/***************************************************************************
* Copyright (C) 2006 by tianliyu *
* tianliyu@illigal.ge.uiuc.edu *
* *
***************************************************************************/
#ifndef _FASTCOUNTING_H
#define _FASTCOUNTING_H
/**
@author Tian-Li Yu
*/
class FastCounting {
public:
FastCounting ();
FastCounting (int n_ell);
~FastCounting ();
void init (int n_ell);
int getVal (int index) const;
void setVal (int index, int val);
FastCounting& operator= (const FastCounting& c);
int makeInt (int *bb) const;
int getLength () const;
void setLength ();
unsigned int getInt(int start, int length) const;
unsigned long *gene;
int length;
int lengthLong;
};
#endif