Created Linked List node + Linked List - Incomplete
This commit is contained in:
parent
227614c62d
commit
9ec4e515f2
@ -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">
|
||||||
|
@ -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>
|
6
DataStructures/src/LinkedList/linkedlist.cpp
Normal file
6
DataStructures/src/LinkedList/linkedlist.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "linkedlist.h"
|
||||||
|
#include "linkedlistnode.h"
|
||||||
|
|
||||||
|
namespace Datastructures {
|
||||||
|
|
||||||
|
}
|
20
DataStructures/src/LinkedList/linkedlist.h
Normal file
20
DataStructures/src/LinkedList/linkedlist.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#pragma once
|
||||||
|
namespace Datastructures {
|
||||||
|
class LinkedList
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LinkedList();
|
||||||
|
~LinkedList();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
LinkedList::LinkedList()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
LinkedList::~LinkedList()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
7
DataStructures/src/LinkedList/linkedlistnode.cpp
Normal file
7
DataStructures/src/LinkedList/linkedlistnode.cpp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include "linkedlistnode.h"
|
||||||
|
|
||||||
|
namespace Datastructures {
|
||||||
|
namespace Nodes {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
17
DataStructures/src/LinkedList/linkedlistnode.h
Normal file
17
DataStructures/src/LinkedList/linkedlistnode.h
Normal 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:
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user