aboutsummaryrefslogtreecommitdiff
path: root/CST 126/Homework 3/LinkedListNodes.cpp
diff options
context:
space:
mode:
authorWesleyR <[email protected]>2024-06-09 23:09:50 -0700
committerWesleyR <[email protected]>2024-06-09 23:09:50 -0700
commitcb041a37b810a5dfa04c1c7f4315f9c3bbc8df0c (patch)
tree61b0d3d555e1596b5156e2d18e015497b438c2e4 /CST 126/Homework 3/LinkedListNodes.cpp
parentUpdating before template node branch (diff)
downloadhomework-1-wesleyr23-Template_Node.tar.xz
homework-1-wesleyr23-Template_Node.zip
Submission for HW 3, In-Class Exercise 3, and In-Class Exercise 4HEADdevelopTemplate_Node
Diffstat (limited to 'CST 126/Homework 3/LinkedListNodes.cpp')
-rw-r--r--CST 126/Homework 3/LinkedListNodes.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/CST 126/Homework 3/LinkedListNodes.cpp b/CST 126/Homework 3/LinkedListNodes.cpp
new file mode 100644
index 0000000..e45b2de
--- /dev/null
+++ b/CST 126/Homework 3/LinkedListNodes.cpp
@@ -0,0 +1,23 @@
+#ifndef LINKED_LIST_NODES_HPP
+#define LINKED_LIST_NODES_HPP
+
+#include "node.hpp"
+
+namespace CST126
+{
+ template<typename T>
+ class singly_linked_node : Node<T>
+ {
+ protected:
+ singly_linked_node* _next{ nullptr };
+
+ };
+
+ template<typename T>
+ class doubly_linked_node final : singly_linked_node<T>
+ {
+ protected:
+ doubly_linked_node* _prev{ nullptr };
+ };
+}
+#endif \ No newline at end of file