xorp

IfMgrNWayCommandTee< SinkType > Class Template Reference

N-way IfMgr Command Tee. More...

#include <ifmgr_cmd_queue.hh>

Inheritance diagram for IfMgrNWayCommandTee< SinkType >:
IfMgrCommandSinkBase

List of all members.

Public Types

typedef IfMgrCommandSinkBase::Cmd Cmd
typedef list< SinkType * > SinkList

Public Member Functions

void push (const Cmd &cmd)
bool add_sink (SinkType *sink)
 Add an additional output for pushed commands.
bool remove_sink (SinkType *sink)
 Remove an sink for pushed commands.

Protected Attributes

SinkList _sinks

Detailed Description

template<typename SinkType = IfMgrCommandSinkBase>
class IfMgrNWayCommandTee< SinkType >

N-way IfMgr Command Tee.

Instances push commands pushed into them into multiple objects derived from IfMgrCommandSinkBase.


Member Function Documentation

template<typename SinkType >
bool IfMgrNWayCommandTee< SinkType >::add_sink ( SinkType *  sink)

Add an additional output for pushed commands.

Parameters:
sinkreceiver for commands pushed into instance.
Returns:
true if sink is successfully added, false otherwise.
template<typename SinkType >
bool IfMgrNWayCommandTee< SinkType >::remove_sink ( SinkType *  sink)

Remove an sink for pushed commands.

Parameters:
sinkreceiver for commands pushed into instance.
Returns:
true if sink is successfully remove, false otherwise.

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