-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPTable.h
More file actions
48 lines (38 loc) · 911 Bytes
/
PTable.h
File metadata and controls
48 lines (38 loc) · 911 Bytes
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
43
44
45
46
47
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: PTable.h
* Author: pwof
*/
#ifndef PTABLE_H
#define PTABLE_H
typedef struct{
int j;
double p_ub;
} P_ENTRY;
typedef std::vector<P_ENTRY> PTableRow;
class PTable {
public:
PTable();
PTable(const PTable& orig);
virtual ~PTable();
bool ReadFromFreqFile(std::string FileName);
int GetmaxNi() {return maxNi;}
int GetminDiff() {return minDiff;}
int GetmaxDiff() {return maxDiff;}
std::vector<PTableRow> GetData() {return Data;}
void WriteToFile();
void Write();
private:
int maxNi;
int minDiff;
int maxDiff;
std::vector<PTableRow> Data;
void SetmaxNi();
void SetminDiff();
void SetmaxDiff();
};
#endif /* PTABLE_H */