-
Notifications
You must be signed in to change notification settings - Fork 3
/
Result.hh
38 lines (29 loc) · 813 Bytes
/
Result.hh
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
#ifndef RESULT_HEADER
#define RESULT_HEADER
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <string>
class Result{
public:
//constructor
Result(std::string sequence,std::string restricted, std::string final_structure, double final_energy);
//destructor
~Result();
//getter
std::string get_sequence();
std::string get_restricted();
std::string get_final_structure();
double get_final_energy();
struct Result_comp{
bool operator ()(Result &x, Result &y) const {
return x.get_final_energy() < y.get_final_energy();
}
} result_comp;
private:
std::string sequence;
std::string restricted;
std::string final_structure;
double final_energy;
};
#endif