xorp

IfMgrCommandFifoQueue Class Reference

FIFO Queue for command objects. More...

#include <ifmgr_cmd_queue.hh>

Inheritance diagram for IfMgrCommandFifoQueue:
IfMgrCommandQueueBase IfMgrCommandSinkBase

List of all members.

Public Types

typedef IfMgrCommandQueueBase::Cmd Cmd

Public Member Functions

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

Protected Attributes

list< Cmd_fifo

Detailed Description

FIFO Queue for command objects.


Member Function Documentation

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

Implements IfMgrCommandQueueBase.

const IfMgrCommandFifoQueue::Cmd & IfMgrCommandFifoQueue::front ( ) const [virtual]

Accessor for front item from queue.

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

Implements IfMgrCommandQueueBase.

IfMgrCommandFifoQueue::Cmd & IfMgrCommandFifoQueue::front ( ) [virtual]

Accessor for front item from queue.

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

Implements IfMgrCommandQueueBase.


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