Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: linearArray.h
- 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"