diff options
| author | rPatrickWarner <[email protected]> | 2024-05-29 20:02:38 -0700 |
|---|---|---|
| committer | rPatrickWarner <[email protected]> | 2024-05-29 20:02:38 -0700 |
| commit | a3535ec86e9d4ca6eda27817d33e0e7bac4b8562 (patch) | |
| tree | b9bc7f2170aae6cad1f9c7ec774adee978d52220 /CST 126/Homework3/linked_list_node.hpp | |
| parent | cleaned up and added some unit tests (diff) | |
| parent | added singly and doubly linked node classes (diff) | |
| download | homework-1-reecepwarner-a3535ec86e9d4ca6eda27817d33e0e7bac4b8562.tar.xz homework-1-reecepwarner-a3535ec86e9d4ca6eda27817d33e0e7bac4b8562.zip | |
merging template node branch into develop
Diffstat (limited to 'CST 126/Homework3/linked_list_node.hpp')
| -rw-r--r-- | CST 126/Homework3/linked_list_node.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/CST 126/Homework3/linked_list_node.hpp b/CST 126/Homework3/linked_list_node.hpp new file mode 100644 index 0000000..42731a7 --- /dev/null +++ b/CST 126/Homework3/linked_list_node.hpp @@ -0,0 +1,26 @@ +#ifndef LINKED_LIST_NODE +#define LINKED_LIST_NODE +#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 |