summaryrefslogtreecommitdiff
path: root/algo1w3/IntDoubleLink.h
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w3/IntDoubleLink.h')
-rw-r--r--algo1w3/IntDoubleLink.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/algo1w3/IntDoubleLink.h b/algo1w3/IntDoubleLink.h
new file mode 100644
index 0000000..e3cb385
--- /dev/null
+++ b/algo1w3/IntDoubleLink.h
@@ -0,0 +1,22 @@
+#pragma once
+class IntDoubleLink {
+private:
+ IntDoubleLink();
+ IntDoubleLink(int, IntDoubleLink*, IntDoubleLink*);
+
+public:
+ virtual ~IntDoubleLink();
+
+public:
+ virtual IntDoubleLink *getPrev();
+ virtual IntDoubleLink *getNext();
+
+private:
+ int value = 0;
+ IntDoubleLink* next = nullptr;
+ IntDoubleLink* prev = nullptr;
+
+private:
+ friend class IntDoubleLinkedList;
+};
+