Website Summary Files Commits Branches @commit @diff @stats
path: root / src / List / List.h
diff options
context:
space:
mode:
Commitb0f046461b44a0c4002ea667a726403ff4a1a701 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-04 10:58:48 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-04 10:58:48 +0300
Filesd5a340a133f2f18394445446b218e56765ecb4a5 /src/List/List.h
FMI-OOP-P1_TicketSystem-b0f046461b44a0c4002ea667a726403ff4a1a701.tar
FMI-OOP-P1_TicketSystem-b0f046461b44a0c4002ea667a726403ff4a1a701.tar.gz
FMI-OOP-P1_TicketSystem-b0f046461b44a0c4002ea667a726403ff4a1a701.zip
Parentbff99a11272743fb1caa4b7d345ebb3b0f8a5609 (diff)
Moved templated stuff into hpp files and added a blank main.cpp file
1 files changed, 0 insertions, 42 deletions
-rw-r--r--src/List/List.h42
diff --git a/src/List/List.h b/src/List/List.h
deleted file mode 100644
index 23e3ee5..0000000
--- a/src/List/List.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef HEADER_LIST
-#define HEADER_LIST
-
-#include "istream"
-#include "ostream"
-
-template <class T>
-class List {
- T* elements;
- unsigned length;
- unsigned count;
-
- void resize();
- void free();
- void copyFrom(const List& other);
-
-public:
- List(const T* elements, unsigned elementsCount);
- void add(const T& element);
- bool insertAt(const T& element, unsigned index);
- bool removeAt(unsigned index);
- unsigned findIndex(const T& element) const;
- bool contain(const T& element) const;
- T& operator[](unsigned index);
- const T& operator[](unsigned index) const;
-
- std::istream& read(std::istream& istr);
- std::ostream& write(std::ostream& ostr) const;
-
- unsigned get_length() const;
- unsigned get_count() const;
-
- List();
- List& operator=(const List& other);
- List(const List& other);
- ~List();
-
- List(List&& other);
- List& operator=(List&& other);
-};
-
-#endif