-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.cpp
More file actions
47 lines (34 loc) · 702 Bytes
/
Copy pathNode.cpp
File metadata and controls
47 lines (34 loc) · 702 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
#include "Node.h"
#include "Operation.h"
#include <iostream>
Node::Node(){
next_ = nullptr ; //initialization of the next node on the null pointer
previous_ = nullptr ; //initialization of the previous node on the null pointer
}
// Getters
Node* Node::next(){
return next_;
}
Node* Node::previous(){
return previous_;
}
void Node::set_next(Node* newval){
next_ = newval;
}
void Node::set_previous(Node* newval){
previous_ = newval;
}
Operation* Node::oper() const {
return 0 ;
}
Node* Node::second_next() const {
return 0 ;
}
void Node::set_second_next(Node* newval){
}
std::string Node::value() const {
return 0 ;
}
std::string Node::print() const {
return 0 ;
}