-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNode.cpp
77 lines (63 loc) · 1.38 KB
/
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
66
67
68
69
70
71
72
73
74
75
76
77
#include <cstdlib>
#include "Node.h"
//den xreiazontai an kanw include to .cpp file
#include "dataTypes.h"
#include "euclideanNode.h"
#include "clusterNode.h"
#include "kMedoids.h"
template <class T>
Node<T>::Node(T Data)
{
data = Data;
next = NULL;
prev = NULL;
}
template <class T>
Node<T>::~Node()
{
}
template <class T>
Node<T>* Node<T>::get_next()
{
return next;
}
template <class T>
Node<T>* Node<T>::get_prev()
{
return prev;
}
template <class T>
T Node<T>::get_data()
{
return data;
}
template <class T>
void Node<T>::set_next(Node<T>* next1)
{
next = next1;
}
template <class T>
void Node<T>::set_prev(Node<T>* prev1)
{
prev = prev1;
}
template <class T>
void Node<T>::set_data(T Data)
{
data = Data;
}
template class Node<int>;
template class Node<double>;
template class Node<std::string>;
template class Node<Vector* >;
template class Node<Hamming* >;
template class Node<EuclideanNode* >;
template class Node<MatrixPoint* >;
template class Node<ClusterNode<Vector*>*>;
template class Node<ClusterNode<Hamming*>*>;
template class Node<ClusterNode<EuclideanNode*>*>;
template class Node<ClusterNode<MatrixPoint*>*>;
template class Node<LshAssingNode<Vector*>*>;
template class Node<LshAssingNode<Hamming*>*>;
template class Node<LshAssingNode<EuclideanNode*>*>;
template class Node<LshAssingNode<MatrixPoint*>*>;