summaryrefslogtreecommitdiff
path: root/algo1w3/IntDoubleLink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w3/IntDoubleLink.cpp')
-rw-r--r--algo1w3/IntDoubleLink.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/algo1w3/IntDoubleLink.cpp b/algo1w3/IntDoubleLink.cpp
new file mode 100644
index 0000000..fb7d7a3
--- /dev/null
+++ b/algo1w3/IntDoubleLink.cpp
@@ -0,0 +1,19 @@
+#include "IntDoubleLink.h"
+
+IntDoubleLink::IntDoubleLink() { }
+IntDoubleLink::~IntDoubleLink() { }
+
+IntDoubleLink::IntDoubleLink(int value, IntDoubleLink* prev, IntDoubleLink* next) {
+ this->value = value;
+ this->prev = prev;
+ this->next = next;
+}
+
+IntDoubleLink* IntDoubleLink::getPrev() {
+ return this->prev;
+}
+
+IntDoubleLink* IntDoubleLink::getNext() {
+ return this->next;
+}
+