Renamed original Queue class to queue as there was conflict with another library's Queue.

Dependents:   TheGarethFork

Fork of Queue by William Basser

Revision:
1:2670ac23765f
Parent:
0:a03810d46457
diff -r a03810d46457 -r 2670ac23765f queue.cpp
--- a/queue.cpp	Fri Oct 22 22:07:25 2010 +0000
+++ b/queue.cpp	Thu Nov 17 04:02:11 2016 +0000
@@ -24,7 +24,7 @@
 #include "queue.h"
 
 // construction 
-Queue::Queue( int iSize, int iCount )
+queue::queue( int iSize, int iCount )
 {
     // allocate space for the queue
     if (( m_pnHead = ( unsigned char* )malloc( iSize * iCount )) != NULL )
@@ -40,14 +40,14 @@
 }
 
 // destruction
-Queue::~Queue( )
+queue::~queue( )
 {
     // free the memory
     free( m_pnHead );
 }
 
 // put an item into the queue
-bool Queue::Put( void* pvItem )
+bool queue::Put( void* pvItem )
 {
     bool bResult = false;
     
@@ -74,7 +74,7 @@
 }
 
 // get an item from the queue
-bool Queue::Get( void* pvItem )
+bool queue::Get( void* pvItem )
 {
     bool bResult = false;
     
@@ -100,7 +100,7 @@
 }
 
 // put an item into the queue
-bool Queue::PutIrq( void* pvItem )
+bool queue::PutIrq( void* pvItem )
 {
     bool bResult = false;
     
@@ -125,7 +125,7 @@
 }
 
 // get an item from the queue
-bool Queue::GetIrq( void* pvItem )
+bool queue::GetIrq( void* pvItem )
 {
     bool bResult = false;
     
@@ -150,14 +150,14 @@
 }
 
 // get the number of items in the queue
-int Queue::GetNumberOfItems( void )
+int queue::GetNumberOfItems( void )
 {
     // return the count
     return( m_iLclCount );
 }
 
 // peeks at the item at the top of the queue
-bool Queue::Peek( void* pvItem )
+bool queue::Peek( void* pvItem )
 {
     bool bResult = false;
     
@@ -176,7 +176,7 @@
 }
 
 // flush all items from the queue
-void Queue::Flush( void )
+void queue::Flush( void )
 {
     // reset the indices
     m_iLclCount = 0;