Marcus Lee / LinearArray
Revision:
4:7743528fb9e5
Parent:
3:8e9f85814809
Child:
5:0f65cdadb1a4
--- a/linearArray.h	Wed Mar 01 10:35:15 2017 +0000
+++ b/linearArray.h	Thu Mar 02 13:10:56 2017 +0000
@@ -9,19 +9,19 @@
         LinearArray(int size);
         ~LinearArray();
         int push(type item);
-        type pop(int index = 0);
-        type& peek(int index = 0);
+        type pop();
+        type& peek();
         int size();
-        int elements();
-        bool hasSpace();
         bool empty();
+        bool full();
+        int count();
     private:
         type* array;
         int elem_count;
         int array_size;
+        int rear;
+        int front;
 
-        int elem_decrease();
-        int elem_increase();
 }; 
 
 #include "linearArray.hpp"