Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXPtrQueueOf< TYPE > Class Template Reference

Queue of pointers to TYPE. More...

#include <FXPtrQueue.h>

Inheritance diagram for FX::FXPtrQueueOf< TYPE >:
FX::FXPtrQueue

Public Member Functions

 FXPtrQueueOf (FXuint sz)
 
FXbool push (TYPE *ptr)
 
FXbool peek (TYPE *&ptr)
 
FXbool pop (TYPE *&ptr)
 
- Public Member Functions inherited from FX::FXPtrQueue
 FXPtrQueue ()
 Create initially empty queue.
 
 FXPtrQueue (FXival sz)
 Create queue with initial size.
 
FXbool setSize (FXival sz)
 Change size of queue; return true if success.
 
FXival getSize () const
 Return size.
 
FXival getUsed () const
 Return number of used slots.
 
FXival getFree () const
 Return number of free slots.
 
FXbool isFull () const
 Check if queue is full.
 
FXbool isEmpty () const
 Check if queue is empty.
 
FXbool push (FXptr ptr)
 Add item to queue, return true if success.
 
FXbool peek (FXptr &ptr)
 Peek for item.
 
FXbool pop (FXptr &ptr)
 Remove item from queue, return true if success.
 
FXbool pop ()
 Drop item from queue, return true if success.
 
 ~FXPtrQueue ()
 Destroy queue.
 

Detailed Description

template<typename TYPE>
class FX::FXPtrQueueOf< TYPE >

Queue of pointers to TYPE.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp