summaryrefslogtreecommitdiff
path: root/algo1w3/IntDoubleLink.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-14 23:25:13 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-14 23:26:40 +0100
commit2b22b0eb65d20f590f67ce21efe6ef71840f31f5 (patch)
tree2f571c4d34b7c7a438b4caa7ba0ad0b0856a86b4 /algo1w3/IntDoubleLink.cpp
parent2bb7c5e97111c7c92dbf682ef49c54a229dfcfce (diff)
week 3 deel 2
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;
+}
+