#include <staticQ.h>
constructor, sets the nullObject 
 
 
template<class T> 
      
        
          | boolean Q< T >::full | ( |  | ) | const | 
      
 
returns true if full, false otherwise 
- Returns
- true if full, false otherwise 
 
 
pops the oldest elt off the queue 
- Returns
- the elt popped, or nullObject if queue is empty. the elt is not deleted from heap. 
 
 
template<class T> 
      
        
          | boolean Q< T >::push | ( | T | elt | ) |  | 
      
 
copy a new elt onto the queue 
- Parameters
- 
  
    | elt | the elt to be enqueued |  
 
- Returns
- boolean TRUE if enqueued 
 
 
template<class T> 
      
        
          | int Q< T >::qLength | ( |  | ) | const | 
      
 
return nb elts in queue 
- Returns
- nb elts in queue 
 
 
template<class T> 
      
        
          | unsigned int Q< T >::qNbObjects | ( |  | ) | const | 
      
 
returns the number of objects in the queue 
- Returns
- number of objects in queue 
 
 
template<class T> 
  
  | 
        
          | unsigned int Q< T >::gptr = 0 |  | protected | 
 
index of the next spot to get an elt 
 
 
if true when queue is full, delete oldest elt, otherwise do not enqueue new elts 
 
 
template<class T> 
  
  | 
        
          | unsigned int Q< T >::pptr = 0 |  | protected | 
 
index of the next spot to put an elt 
 
 
max nb of elts that the queue can contain 
 
 
template<class T> 
  
  | 
        
          | unsigned int Q< T >::qNbObj = 0 |  | protected | 
 
 
The documentation for this class was generated from the following file:
- /home/bob/Desktop/temp/Yannick/PhD_Support/temp/SPI/RPI/Python/serialApp/SerialSlave2560/staticQ.h