\hypertarget{classIfMgrNWayCommandTee}{
\section{IfMgrNWayCommandTee$<$ SinkType $>$ Class Template Reference}
\label{classIfMgrNWayCommandTee}\index{IfMgrNWayCommandTee@{IfMgrNWayCommandTee}}
}


N-\/way IfMgr \hyperlink{classCommand}{Command} Tee.  




{\ttfamily \#include $<$ifmgr\_\-cmd\_\-queue.hh$>$}

Inheritance diagram for IfMgrNWayCommandTee$<$ SinkType $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classIfMgrNWayCommandTee}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfMgrNWayCommandTee_ada90296f07c431fef01d206740cc054f}{
typedef \hyperlink{classref__ptr}{IfMgrCommandSinkBase::Cmd} {\bfseries Cmd}}
\label{classIfMgrNWayCommandTee_ada90296f07c431fef01d206740cc054f}

\item 
\hypertarget{classIfMgrNWayCommandTee_ae329d0833d75926f1c8a590ccaa6f273}{
typedef list$<$ SinkType $\ast$ $>$ {\bfseries SinkList}}
\label{classIfMgrNWayCommandTee_ae329d0833d75926f1c8a590ccaa6f273}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfMgrNWayCommandTee_a593e556911e3e72d58435b046d2add0c}{
void {\bfseries push} (const \hyperlink{classref__ptr}{Cmd} \&cmd)}
\label{classIfMgrNWayCommandTee_a593e556911e3e72d58435b046d2add0c}

\item 
bool \hyperlink{classIfMgrNWayCommandTee_a0f3f907e8ffb77b45ef0ac5243ca1830}{add\_\-sink} (SinkType $\ast$sink)
\begin{DoxyCompactList}\small\item\em Add an additional output for pushed commands. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrNWayCommandTee_a5ed7756b9726a103d4981c5f8def450e}{remove\_\-sink} (SinkType $\ast$sink)
\begin{DoxyCompactList}\small\item\em Remove an sink for pushed commands. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfMgrNWayCommandTee_a8a169f05234f44248edf88bde3c9b47d}{
SinkList {\bfseries \_\-sinks}}
\label{classIfMgrNWayCommandTee_a8a169f05234f44248edf88bde3c9b47d}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename SinkType = IfMgrCommandSinkBase$>$ class IfMgrNWayCommandTee$<$ SinkType $>$}

N-\/way IfMgr \hyperlink{classCommand}{Command} Tee. Instances push commands pushed into them into multiple objects derived from \hyperlink{classIfMgrCommandSinkBase}{IfMgrCommandSinkBase}. 

\subsection{Member Function Documentation}
\hypertarget{classIfMgrNWayCommandTee_a0f3f907e8ffb77b45ef0ac5243ca1830}{
\index{IfMgrNWayCommandTee@{IfMgrNWayCommandTee}!add\_\-sink@{add\_\-sink}}
\index{add\_\-sink@{add\_\-sink}!IfMgrNWayCommandTee@{IfMgrNWayCommandTee}}
\subsubsection[{add\_\-sink}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename SinkType $>$ bool {\bf IfMgrNWayCommandTee}$<$ SinkType $>$::add\_\-sink (
\begin{DoxyParamCaption}
\item[{SinkType $\ast$}]{sink}
\end{DoxyParamCaption}
)}}
\label{classIfMgrNWayCommandTee_a0f3f907e8ffb77b45ef0ac5243ca1830}


Add an additional output for pushed commands. 


\begin{DoxyParams}{Parameters}
{\em sink} & receiver for commands pushed into instance. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if sink is successfully added, false otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrNWayCommandTee_a5ed7756b9726a103d4981c5f8def450e}{
\index{IfMgrNWayCommandTee@{IfMgrNWayCommandTee}!remove\_\-sink@{remove\_\-sink}}
\index{remove\_\-sink@{remove\_\-sink}!IfMgrNWayCommandTee@{IfMgrNWayCommandTee}}
\subsubsection[{remove\_\-sink}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename SinkType $>$ bool {\bf IfMgrNWayCommandTee}$<$ SinkType $>$::remove\_\-sink (
\begin{DoxyParamCaption}
\item[{SinkType $\ast$}]{sink}
\end{DoxyParamCaption}
)}}
\label{classIfMgrNWayCommandTee_a5ed7756b9726a103d4981c5f8def450e}


Remove an sink for pushed commands. 


\begin{DoxyParams}{Parameters}
{\em sink} & receiver for commands pushed into instance. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if sink is successfully remove, false otherwise. 
\end{DoxyReturn}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libfeaclient/ifmgr\_\-cmd\_\-queue.hh\end{DoxyCompactItemize}
