-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.cpp
65 lines (49 loc) · 851 Bytes
/
Node.cpp
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
57
58
59
60
61
62
63
64
65
#include <iostream>
#include <string>
#include <vector>
#include "Node.h"
using namespace std;
Node::Node() {
Seq.resize(0);
Name = "";
Weight = 0;
Shift = 0;
Rev = false;
}
Node::~Node() { Seq.clear(); }
vector<double> Node::getSeq() {
return Seq;
}
string Node::getName() {
return Name;
}
int Node::getWeight() {
return Weight;
}
int Node::getShift() {
return Shift;
}
bool Node::getRev() {
return Rev;
}
void Node::addSeq(double newSeq) {
Seq.push_back(newSeq);
}
void Node::setName(string newName) {
Name = newName;
}
void Node::setWeight(int newWeight) {
Weight = newWeight;
}
void Node::setShift(int newShift) {
Shift = newShift;
}
void Node::setRev(bool newRev) {
Rev = newRev;
}
double Node::getSeqIndex(int index) {
return Seq[index];
}
void Node::setSeqIndex(int index, double value) {
Seq[index] = value;
}