Website Summary Files Commits Branches @commit @diff @stats
path: root / Seminar06 / DLLSkeleton.cpp
diff options
context:
space:
mode:
Commit7eee5a78005a9a569186d2c8b4b645a818ab9bf1 (patch)
Author
 Stoycho Kyosev <skyosev@192.168.100.17>
2024-10-06 07:04:44 -0400
Committer
 Stoycho Kyosev <skyosev@192.168.100.17>
2024-10-06 07:04:44 -0400
Files84594e0af29cefa5aae76ace5f8eb81484400e31 /Seminar06/DLLSkeleton.cpp
Data-structures-and-algorithms-7eee5a78005a9a569186d2c8b4b645a818ab9bf1.tar
Data-structures-and-algorithms-7eee5a78005a9a569186d2c8b4b645a818ab9bf1.tar.gz
Data-structures-and-algorithms-7eee5a78005a9a569186d2c8b4b645a818ab9bf1.zip
Parent0841635826cb03c0e74cd75ec3c97c4c3b594d8b (diff)
Cleanup
1 files changed, 0 insertions, 70 deletions
-rw-r--r--Seminar06/DLLSkeleton.cpp70
diff --git a/Seminar06/DLLSkeleton.cpp b/Seminar06/DLLSkeleton.cpp
deleted file mode 100644
index 77811b8..0000000
--- a/Seminar06/DLLSkeleton.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-#ifndef DOUBLY_LINKED_LIST_IMPL_
-#define DOUBLY_LINKED_LIST_IMPL_
-
-#include<exception>
-
-template<class T>
-class DoublyLinkedList {
-private:
- struct DLListNode {};
-
- using Node = DLListNode;
-
- Node* head;
- Node* tail;
-
- void copy(const DoublyLinkedList<T>& other);
- void free();
-
- class Iterator {
- private:
- Node* current;
- Iterator(Node* c) {}
-
- public:
- Iterator& operator++() {}
-
- Iterator operator++(int) {}
-
- Iterator& operator--() {}
-
- Iterator operator--(int) {}
-
- const T& operator*() {}
-
- bool operator==(const Iterator& other) const {}
-
- bool operator!=(const Iterator& other) const {}
-
- friend class DoublyLinkedList<T>;
- };
-
-public:
- DoublyLinkedList();
-
- DoublyLinkedList(const DoublyLinkedList<T>&);
- DoublyLinkedList& operator=(const DoublyLinkedList<T>&);
-
- DoublyLinkedList(DoublyLinkedList<T>&&);
- DoublyLinkedList& operator=(DoublyLinkedList<T>&&);
-
- void pushBack(const T&);
- void popBack();
-
- void pushFront(const T&);
- void popFront();
-
- bool empty() const;
-
- const T& back() const;
- const T& front() const;
-
- Iterator begin();
- Iterator end();
-
- void insert(Iterator at, const T& elem);
-
- ~DoublyLinkedList();
-};
-
-#endif \ No newline at end of file