xorp

IfMgrCommandQueueBase Class Reference

Base class for Command Queue classes. More...

#include <ifmgr_cmd_queue.hh>

Inheritance diagram for IfMgrCommandQueueBase:
IfMgrCommandSinkBase IfMgrCommandFifoQueue IfMgrCommandIfClusteringQueue

List of all members.

Public Types

typedef IfMgrCommandSinkBase::Cmd Cmd

Public Member Functions

virtual void push (const Cmd &cmd)=0
 Add an item to the queue.
virtual bool empty () const =0
virtual Cmdfront ()=0
 Accessor for front item from queue.
virtual const Cmdfront () const =0
 Accessor for front item from queue.
virtual void pop_front ()=0
 Pop the front item from queue.

Detailed Description

Base class for Command Queue classes.


Member Function Documentation

virtual bool IfMgrCommandQueueBase::empty ( ) const [pure virtual]
Returns:
true if queue has no items, false otherwise.

Implemented in IfMgrCommandFifoQueue, and IfMgrCommandIfClusteringQueue.

virtual const Cmd& IfMgrCommandQueueBase::front ( ) const [pure virtual]

Accessor for front item from queue.

Returns:
reference to front item if queue is not empty, junk otherwise.

Implemented in IfMgrCommandFifoQueue, and IfMgrCommandIfClusteringQueue.

virtual Cmd& IfMgrCommandQueueBase::front ( ) [pure virtual]

Accessor for front item from queue.

Returns:
reference to front item if queue is not empty, junk otherwise.

Implemented in IfMgrCommandFifoQueue, and IfMgrCommandIfClusteringQueue.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations