xorp

IfMgrCommandIfClusteringQueue Class Reference

Interface Command Clustering Queue. More...

#include <ifmgr_cmd_queue.hh>

Inheritance diagram for IfMgrCommandIfClusteringQueue:
IfMgrCommandQueueBase IfMgrCommandSinkBase

List of all members.

Public Types

typedef IfMgrCommandQueueBase::Cmd Cmd
typedef list< CmdCmdList

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 Member Functions

void change_active_interface ()

Protected Attributes

string _current_ifname
CmdList _future_cmds
CmdList _current_cmds

Detailed Description

Interface Command Clustering Queue.

This Queue attempts to cluster commands based on their interface name. Only command objects derived from IfMgrIfCommandBase may be placed in the queue, command objects not falling in this category will give rise to assertion failures.


Member Function Documentation

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

Implements IfMgrCommandQueueBase.

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

Accessor for front item from queue.

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

Implements IfMgrCommandQueueBase.

IfMgrCommandIfClusteringQueue::Cmd & IfMgrCommandIfClusteringQueue::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