Website Summary Files Commits Branches @commit @diff @stats
path: root / List
diff options
context:
space:
mode:
Commit4f27fe893c0e5b85122a228dd66f79bc8fa87088 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 22:01:24 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-02 22:01:24 +0300
Files9e45b453c68af7f57a7704b9ee0a8421a267d5c3 /List
FMI-OOP-P1_TicketSystem-4f27fe893c0e5b85122a228dd66f79bc8fa87088.tar
FMI-OOP-P1_TicketSystem-4f27fe893c0e5b85122a228dd66f79bc8fa87088.tar.gz
FMI-OOP-P1_TicketSystem-4f27fe893c0e5b85122a228dd66f79bc8fa87088.zip
Parentaa8b39d1ea473224ab7b52aaf580201fbc1dfbbf (diff)
Fixed OrderedList location
2 files changed, 0 insertions, 28 deletions
-rw-r--r--List/OrderedList.cpp12
-rw-r--r--List/OrderedList.h16
diff --git a/List/OrderedList.cpp b/List/OrderedList.cpp
deleted file mode 100644
index f3a7450..0000000
--- a/List/OrderedList.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "OrderedList.h"
-
-template <class T>
-bool OrderedList<T>::insert(const T& element) {
- if (List<T>::length == List<T>::count) List<T>::resize();
-
- unsigned insertionInd = 0;
- while (List<T>::elements[insertionInd].compare(element) < 0 && insertionInd < List<T>::count)
- insertionInd++;
-
- return List<T>::insertAt(element, insertionInd);
-}
diff --git a/List/OrderedList.h b/List/OrderedList.h
deleted file mode 100644
index 22f05df..0000000
--- a/List/OrderedList.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef HEADER_ORDEREDLIST
-#define HEADER_ORDEREDLIST
-
-#include "List.h"
-
-template <class T>
-class OrderedList : public List<T> {
-public:
- void add(const T& element) = delete;
- bool insertAt(const T& element, unsigned index) = delete;
-
- bool insert(const T& element);
- // unsigned findIndex(const T& element) const; TODO: binary search
-};
-
-#endif