forked from shaobohou/madios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRDSNode.h
40 lines (30 loc) · 1.07 KB
/
RDSNode.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
#ifndef RDSNODE_H
#define RDSNODE_H
#include "array2d.h"
#include "LexiconUnit.h"
#include "ADIOSUtils.h"
using namespace TNT;
typedef std::pair<unsigned int, unsigned int> Connection;
typedef Array2D<std::vector<Connection> > ConnectionMatrix;
typedef std::pair<double, double> SignificancePair;
typedef std::pair<unsigned int, unsigned int> Range;
class RDSNode
{
public:
LexiconUnit *lexicon;
LexiconTypes::LexiconEnum type;
std::vector<Connection> connections;
std::vector<Connection> parents;
RDSNode();
explicit RDSNode(LexiconUnit *lexicon, LexiconTypes::LexiconEnum type);
RDSNode(const RDSNode &other);
~RDSNode();
RDSNode& operator=(const RDSNode &other);
void addConnection(const Connection &con);
const std::vector<Connection>& getConnections() const;
void setConnections(const std::vector<Connection> &connections);
bool addParent(const Connection &newParent);
private:
void deepCopy(const RDSNode &other);
};
#endif