Group PAG / Mbed OS PAG-CourseWork-NicksEdits

Dependencies:   LPS25H hts221

Fork of Coursework by Group PAG

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MyQueue.h Source File

MyQueue.h

00001 #ifndef Queue_H
00002 #define Queue_H
00003 #include "Reading.h"
00004  
00005 class MyQueue{
00006        //variables 
00007        public: 
00008        int maxSize;
00009        int front;
00010        int back;
00011        int count;
00012        bool isFull;
00013        Reading *storage;
00014        
00015        
00016        //realisticly what we need::
00017        //read values taking argument n
00018        //read values taking no argument 
00019        //take value and put it in the right place
00020        //delete with argument
00021        //delete without argument
00022        
00023        MyQueue();
00024        void push(Reading r);
00025        void read(int nR); // where nR is the number to read, if REAL ALL is typed then the method will be called by something like queue.read(queue.count).
00026        void deleteRecords(int nD); //as above but nD is number to delete
00027            
00028 };
00029 #endif