A simple queue Class
Revision 1:abfd5885f80d, committed 2015-04-09
- Comitter:
- fredqian
- Date:
- Thu Apr 09 09:43:56 2015 +0000
- Parent:
- 0:0237fc3fb9ca
- Commit message:
- init commit
Changed in this revision
| Queue.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Queue.h Thu Apr 09 09:38:32 2015 +0000
+++ b/Queue.h Thu Apr 09 09:43:56 2015 +0000
@@ -4,15 +4,11 @@
* Created on: 2013-5-9
* Author: fu
*/
-
#ifndef QUEUE_H_
#define QUEUE_H_
-
#include "stdint.h"
#define PACKAGE_MAX 128
#define RFQUENEMAX 100
-
-
struct RfData
{
uint8_t rbuf[PACKAGE_MAX];
@@ -27,9 +23,8 @@
class QUEUE {
private:
-
uint8_t front;
- uint8_t rear;;
+ uint8_t rear;
public:
struct RfData RfData[RFQUENEMAX];
QUEUE();
@@ -38,7 +33,6 @@
uint8_t dequeue();
void undodequeue();
uint8_t peerqueue();
-
};
#endif /* QUEUE_H_ */