Skip to content

Commit

Permalink
Merge pull request #5 from ermolaevv/dev
Browse files Browse the repository at this point in the history
Switch to Custom Linked List
  • Loading branch information
ermolaevv authored Mar 15, 2024
2 parents 5fce611 + 987adec commit 9731367
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions table/ListTable/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set(test "${nameBaseProj}_test")


include_directories("../Table/include")
include_directories("../../polinom/include")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_subdirectory(src)
add_subdirectory(test)
3 changes: 2 additions & 1 deletion table/ListTable/include/ListTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
#include <list>

#include "Table.h"
#include "DatList.h"

/// <summary>
/// Линейная таблица на списке.
/// </summary>
template <class Key, class Value>
class ListTable : public Table<Key,Value> {
protected:
std::list<typename Table<Key, Value>::template STableRec<Key, Value>> data;
TDatList<typename Table<Key, Value>::template STableRec<Key, Value>> data;
public:
ListTable(size_t maxSize = 10000) : Table<Key, Value>(maxSize) { }
~ListTable() { }
Expand Down

0 comments on commit 9731367

Please sign in to comment.