aboutsummaryrefslogtreecommitdiff
path: root/week13/Exercise1/IndexArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'week13/Exercise1/IndexArray.h')
-rw-r--r--week13/Exercise1/IndexArray.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/week13/Exercise1/IndexArray.h b/week13/Exercise1/IndexArray.h
new file mode 100644
index 0000000..90c948e
--- /dev/null
+++ b/week13/Exercise1/IndexArray.h
@@ -0,0 +1,18 @@
+#pragma once
+
+class IndexArray {
+ void free();
+ void copyFrom(const IndexArray& other);
+
+protected:
+ int *indecies;
+ unsigned size;
+
+public:
+ IndexArray();
+ virtual ~IndexArray();
+ IndexArray(const IndexArray& other);
+ IndexArray& operator=(const IndexArray& other);
+ IndexArray(IndexArray&& other);
+ IndexArray& operator=(IndexArray&& other);
+};