Created Linked List node + Linked List - Incomplete

This commit is contained in:
Luke Else 2022-11-07 13:38:27 +00:00
parent 227614c62d
commit 9ec4e515f2
6 changed files with 66 additions and 0 deletions

View File

@ -129,10 +129,14 @@
<ItemGroup> <ItemGroup>
<ClInclude Include="src\Generic\directednode.h" /> <ClInclude Include="src\Generic\directednode.h" />
<ClInclude Include="src\Generic\undirectednode.h" /> <ClInclude Include="src\Generic\undirectednode.h" />
<ClInclude Include="src\LinkedList\linkedlist.h" />
<ClInclude Include="src\LinkedList\linkedlistnode.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="src\Generic\directednode.cpp" /> <ClCompile Include="src\Generic\directednode.cpp" />
<ClCompile Include="src\Generic\undirectednode.cpp" /> <ClCompile Include="src\Generic\undirectednode.cpp" />
<ClCompile Include="src\LinkedList\linkedlist.cpp" />
<ClCompile Include="src\LinkedList\linkedlistnode.cpp" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">

View File

@ -21,6 +21,12 @@
<ClInclude Include="src\Generic\undirectednode.h"> <ClInclude Include="src\Generic\undirectednode.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\LinkedList\linkedlist.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\LinkedList\linkedlistnode.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="src\Generic\directednode.cpp"> <ClCompile Include="src\Generic\directednode.cpp">
@ -29,5 +35,11 @@
<ClCompile Include="src\Generic\undirectednode.cpp"> <ClCompile Include="src\Generic\undirectednode.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\LinkedList\linkedlist.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\LinkedList\linkedlistnode.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -0,0 +1,6 @@
#include "linkedlist.h"
#include "linkedlistnode.h"
namespace Datastructures {
}

View File

@ -0,0 +1,20 @@
#pragma once
namespace Datastructures {
class LinkedList
{
public:
LinkedList();
~LinkedList();
private:
};
LinkedList::LinkedList()
{
}
LinkedList::~LinkedList()
{
}
}

View File

@ -0,0 +1,7 @@
#include "linkedlistnode.h"
namespace Datastructures {
namespace Nodes {
}
}

View File

@ -0,0 +1,17 @@
#pragma once
#include "../Generic/undirectednode.h"
namespace Datastructures {
namespace Nodes {
template <typename T>
class LinkedListNode : public Generic::UndirectedNode<T, LinkedListNode>
{
public:
LinkedListNode();
~LinkedListNode();
private:
};
}
}