Website Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit372c1f65317540611ce22a38fe759b46e4d45049 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 09:56:05 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-05-01 09:56:05 +0300
Files381d7d9016b9f04d6e12746868ae70b5f04188ad /src
FMI-OOP-P1_TicketSystem-372c1f65317540611ce22a38fe759b46e4d45049.tar
FMI-OOP-P1_TicketSystem-372c1f65317540611ce22a38fe759b46e4d45049.tar.gz
FMI-OOP-P1_TicketSystem-372c1f65317540611ce22a38fe759b46e4d45049.zip
Parent747c747d5fc533a5414df1ef20309bb92c50443c (diff)
Autocommit at 01.05.2022 @ 09:56
3 files changed, 20 insertions, 0 deletions
-rw-r--r--src/List/List.cpp10
-rw-r--r--src/List/List.h3
-rw-r--r--src/Toolbox.h7
diff --git a/src/List/List.cpp b/src/List/List.cpp
index 66d66df..1ad0679 100644
--- a/src/List/List.cpp
+++ b/src/List/List.cpp
@@ -50,6 +50,16 @@ T& List<T>::operator[](unsigned index) {
return elements[index];
}
+template <class T>
+unsigned List<T>::get_length() const {
+ return length;
+}
+
+template <class T>
+unsigned List<T>::get_count() const {
+ return count;
+}
+
// Rule of 4
template <class T>
diff --git a/src/List/List.h b/src/List/List.h
index 0f256e5..f5d56f3 100644
--- a/src/List/List.h
+++ b/src/List/List.h
@@ -16,6 +16,9 @@ public:
bool removeAt(unsigned index);
T& operator[](unsigned index);
+ unsigned get_length() const;
+ unsigned get_count() const;
+
List();
List& operator=(const List& other);
List(const List& other);
diff --git a/src/Toolbox.h b/src/Toolbox.h
new file mode 100644
index 0000000..93fc92c
--- /dev/null
+++ b/src/Toolbox.h
@@ -0,0 +1,7 @@
+#ifndef HEADER_CONSOLEINTERFACE_TOOLBOX
+#define HEADER_CONSOLEINTERFACE_TOOLBOX
+
+void orderedListElem(const char* message);
+void resetOrderedList(int starter);
+
+#endif