|
cisst-saw
|
#include <mtsQueue.h>
Public Types | |
| typedef mtsGenericObject | value_type |
| typedef value_type * | pointer |
| typedef const value_type * | const_pointer |
| typedef value_type & | reference |
| typedef const value_type & | const_reference |
| typedef size_t | size_type |
| typedef size_t | index_type |
Public Member Functions | |
| mtsQueueGeneric (void) | |
| mtsQueueGeneric (size_type size, const_reference value) | |
| ~mtsQueueGeneric () | |
| void | SetSize (size_type size, const_reference value) |
| size_type | GetSize (void) const |
| size_type | GetAvailable (void) const |
| bool | IsFull (void) const |
| bool | IsEmpty (void) const |
| const_pointer | Put (const_reference newObject) |
| pointer | Peek (void) const |
| pointer | Get (void) |
Protected Member Functions | |
| void | Allocate (size_type size, const_reference value) |
| void | Free (void) |
Protected Attributes | |
| const cmnClassServicesBase * | ClassServices |
| pointer * | Data |
| pointer * | Head |
| pointer * | Tail |
| pointer * | Sentinel |
| size_type | Size |
| typedef const value_type* mtsQueueGeneric::const_pointer |
| typedef const value_type& mtsQueueGeneric::const_reference |
| typedef size_t mtsQueueGeneric::index_type |
| typedef value_type* mtsQueueGeneric::pointer |
| typedef value_type& mtsQueueGeneric::reference |
| typedef size_t mtsQueueGeneric::size_type |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
Pop the next object to be read from the queue.
|
inline |
Returns number of elements available in queue, i.e. the number of slots used.
|
inline |
Returns size of queue.
|
inline |
Returns true if queue is empty.
|
inline |
Returns true if queue is full.
|
inline |
Get a pointer to the next object to be read, but do not remove the item from the queue.
|
inline |
Copy an object to the queue.
| in | reference to the object to be copied |
|
inline |
Sets the size of the queue (destructive, i.e. won't preserve previously queued elements).
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |