-
Notifications
You must be signed in to change notification settings - Fork 4
/
GSSTypes.h
56 lines (42 loc) · 1.21 KB
/
GSSTypes.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
Pharmit
Copyright (c) David Ryan Koes, University of Pittsburgh and contributors.
All rights reserved.
Pharmit is licensed under both the BSD 3-clause license and the GNU
Public License version 2. Any use of the code that retains its reliance
on the GPL-licensed OpenBabel library is subject to the terms of the GPL2.
Use of the Pharmit code independently of OpenBabel (or any other
GPL2 licensed software) may choose between the BSD or GPL licenses.
See the LICENSE file provided with the distribution for more information.
*/
/*
* GSSTypes.h
*
* Created on: Oct 18, 2011
* Author: dkoes
*
* Simple types used by GSSTrees
*/
#ifndef GSSTYPES_H_
#define GSSTYPES_H_
#define BOOST_FILESYSTEM_VERSION 3
#include <boost/filesystem.hpp>
#include <vector>
#include <cassert>
using namespace std;
typedef unsigned long file_index;
struct result_info
{
file_index pos; //position of result
double val; //some measure of goodness of result
result_info(): pos(0), val(0) {}
result_info(file_index p, double v): pos(p), val(v) {}
//sort by position for better access
bool operator<(const result_info& rhs) const
{
return pos < rhs.pos;
}
};
class DataViewer;
struct Cluster;
#endif /* GSSTYPES_H_ */