-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.h
More file actions
67 lines (62 loc) · 1.04 KB
/
Copy pathNode.h
File metadata and controls
67 lines (62 loc) · 1.04 KB
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
66
67
#ifndef NODE_H
#define NODE_H
#include <iostream>
#include"Mission.h"
using namespace std;
template < typename T>
class Node
{
private:
T item; // A data item
Node<T>* next; // Pointer to next node
//int WaitingMountPromotionDays;
public:
int priority;
Node()
{
next = nullptr;
}
Node(const T& data)
{
item = data;
next = nullptr;
//emergencypriority()
//Mission::emergencypriority();
}
Node(const T& data, int priorit)
{
item = data;
next = nullptr;
//emergencypriority()
priority = priorit;
//Mission::emergencypriority();
}
T getItem() const
{
return item;
}
Node<T>* getNext() const
{
return next;
}
void setItem(const T& data)
{
item = data;
}
void setNext(Node<T>* nextNodePtr)
{
next = nextNodePtr;
}
int getpriority()
{
return priority;
}
void setpriority(const int& priorit)
{
priority = priorit;
}
/*int detWaitingMountPromotionDays() {
return WaitingMountPromotionDays;
}*/
};
#endif