diff --git a/DataStructures/DataStructures.vcxproj b/DataStructures/DataStructures.vcxproj
index 2b8b000..06db364 100644
--- a/DataStructures/DataStructures.vcxproj
+++ b/DataStructures/DataStructures.vcxproj
@@ -132,12 +132,6 @@
-
-
-
-
-
-
diff --git a/DataStructures/DataStructures.vcxproj.filters b/DataStructures/DataStructures.vcxproj.filters
index 4c79f20..3fc4d05 100644
--- a/DataStructures/DataStructures.vcxproj.filters
+++ b/DataStructures/DataStructures.vcxproj.filters
@@ -28,18 +28,4 @@
Header Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
- Source Files
-
-
\ No newline at end of file
diff --git a/DataStructures/src/LinkedList/linkedlist.h b/DataStructures/src/LinkedList/linkedlist.h
index 346c4d5..b522f4e 100644
--- a/DataStructures/src/LinkedList/linkedlist.h
+++ b/DataStructures/src/LinkedList/linkedlist.h
@@ -8,8 +8,9 @@ namespace Datastructures {
public:
LinkedList();
~LinkedList();
-
private:
-
+ Nodes::LinkedListNode mHead;
+ Nodes::LinkedListNode mTail;
+ int mCount;
};
}
\ No newline at end of file
diff --git a/DataStructures/src/LinkedList/linkedlistnode.h b/DataStructures/src/LinkedList/linkedlistnode.h
index ad3a98f..78c3630 100644
--- a/DataStructures/src/LinkedList/linkedlistnode.h
+++ b/DataStructures/src/LinkedList/linkedlistnode.h
@@ -7,21 +7,12 @@ namespace Datastructures {
class LinkedListNode : public Generic::UndirectedNode>
{
public:
- LinkedListNode(T value, std::shared_ptr> next = nullptr);
- ~LinkedListNode();
-
+ //Inherit Constructor from generic Undirectetd Node
+ using Generic::UndirectedNode>::UndirectedNode;
std::shared_ptr> create(T value, std::shared_ptr> next = nullptr);
-
private:
-
};
- template
- LinkedListNode::LinkedListNode(T value, std::shared_ptr> next) {
- this->value = value;
- this->next = next;
- }
-
//Creates a new node, returning a smart pointer to a stack allocated object
template
std::shared_ptr> LinkedListNode::create(T value, std::shared_ptr> next) {