xorp
|
Interface Command Clustering Queue. More...
#include <ifmgr_cmd_queue.hh>
Public Types | |
typedef IfMgrCommandQueueBase::Cmd | Cmd |
typedef list< Cmd > | CmdList |
Public Member Functions | |
void | push (const Cmd &cmd) |
Add an item to the queue. | |
bool | empty () const |
Cmd & | front () |
Accessor for front item from queue. | |
const Cmd & | front () 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 |
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.
bool IfMgrCommandIfClusteringQueue::empty | ( | ) | const [virtual] |
Implements IfMgrCommandQueueBase.
const IfMgrCommandIfClusteringQueue::Cmd & IfMgrCommandIfClusteringQueue::front | ( | ) | const [virtual] |
Accessor for front item from queue.
Implements IfMgrCommandQueueBase.
IfMgrCommandIfClusteringQueue::Cmd & IfMgrCommandIfClusteringQueue::front | ( | ) | [virtual] |
Accessor for front item from queue.
Implements IfMgrCommandQueueBase.