-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.cpp
More file actions
51 lines (40 loc) · 794 Bytes
/
Node.cpp
File metadata and controls
51 lines (40 loc) · 794 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
47
48
49
50
51
#ifndef NODE_CPP
#define NODE_CPP
#include "Node.h"
#include <iostream>
template<class T>
Node<T>::Node() {
}
template<class T>
Node<T>::Node(const Node& orig) {
}
template<class T>
Node<T>::~Node() {
}
template<class T>
Node<T>::Node(T *info) {
this->info = info;
this->nextNode = NULL;
}
template<class T>
Node<T>::Node(T *info, Node<T> *node) {
this->info = info;
this->nextNode = node;
}
template<class T>
T* Node<T>::getInfo() {
return this->info;
}
template<class T>
void Node<T>::setInfo(T *inf) {
this->info = inf;
}
template<class T>
Node<T>* Node<T>::getNext() {
return this->nextNode;
}
template<class T>
void Node<T>::setNext(Node<T> *node) {
this->nextNode = node;
}
#endif /* NODE_H */