Protocols::Generics::FifoQueue Class Reference

#include <FifoQueue.h> [code]

Inherits Protocols::Generics::DataQueue.

Inheritance diagram for Protocols::Generics::FifoQueue:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Generics::FifoQueue:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 35 of file FifoQueue.h.

Public Member Functions

 FifoQueue ()
bool isEmpty () const
 Tells whether any elements are queued or not.
void enqueue (const Data &)
 Adds a Data object to the queue.
Data next () const
void dequeue ()
 Drops the Data objects that is next() in the queue.

Private Member Functions

 FifoQueue (const FifoQueue &)
FifoQueueoperator= (const FifoQueue &)

Private Attributes

QList< Dataqueue


Constructor & Destructor Documentation

Protocols::Generics::FifoQueue::FifoQueue const FifoQueue  )  [private]
 

FifoQueue::FifoQueue  ) 
 

Definition at line 27 of file FifoQueue.cpp.


Member Function Documentation

void FifoQueue::dequeue  )  [virtual]
 

Drops the Data objects that is next() in the queue.

Note:
You would normally call next() first and would then call dequeue() next only if the Data object need not be buffered any longer (e.g it was sent over the network).

Implements Protocols::Generics::DataQueue.

Definition at line 48 of file FifoQueue.cpp.

void FifoQueue::enqueue const Data data  )  [virtual]
 

Adds a Data object to the queue.

Parameters:
data is the Data object to add to the queue.

Implements Protocols::Generics::DataQueue.

Definition at line 37 of file FifoQueue.cpp.

bool FifoQueue::isEmpty  )  const [virtual]
 

Tells whether any elements are queued or not.

Returns:
true if at least one Data object is queued.

false if no Data objects are queued.

Implements Protocols::Generics::DataQueue.

Definition at line 32 of file FifoQueue.cpp.

Data FifoQueue::next  )  const [virtual]
 

Implements Protocols::Generics::DataQueue.

Definition at line 42 of file FifoQueue.cpp.

FifoQueue& Protocols::Generics::FifoQueue::operator= const FifoQueue  )  [private]
 


Member Data Documentation

QList<Data> Protocols::Generics::FifoQueue::queue [private]
 

Definition at line 48 of file FifoQueue.h.


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