\hypertarget{classExpectTable}{
\section{ExpectTable$<$ A $>$ Class Template Reference}
\label{classExpectTable}\index{ExpectTable@{ExpectTable}}
}


A \hyperlink{classRoute}{Route} Table for comparing route updates received against expected.  




{\ttfamily \#include $<$rt\_\-tab\_\-expect.hh$>$}

Inheritance diagram for ExpectTable$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classExpectTable}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classExpectTable_a3580706637dac0e6d17be0f594674e75}{
{\bfseries ExpectTable} (const string \&tablename, \hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$parent)}
\label{classExpectTable_a3580706637dac0e6d17be0f594674e75}

\item 
\hypertarget{classExpectTable_a0257ec6fd10eb43d1092adf7585ca42f}{
const list$<$ \hyperlink{classExpectedRouteChange}{ExpectedRouteChange}$<$ A $>$ $>$ \& {\bfseries expected\_\-route\_\-changes} () const }
\label{classExpectTable_a0257ec6fd10eb43d1092adf7585ca42f}

\item 
\hypertarget{classExpectTable_aec98835ebd56f5cd3c16e6cf1bed3ec2}{
void {\bfseries expect\_\-add} (const \hyperlink{classIPRouteEntry}{IPRouteEntry}$<$ A $>$ \&route)}
\label{classExpectTable_aec98835ebd56f5cd3c16e6cf1bed3ec2}

\item 
\hypertarget{classExpectTable_a451ed54287c8d4c55c4cdb7b23853e1f}{
void {\bfseries expect\_\-delete} (const \hyperlink{classIPRouteEntry}{IPRouteEntry}$<$ A $>$ \&route)}
\label{classExpectTable_a451ed54287c8d4c55c4cdb7b23853e1f}

\item 
\hypertarget{classExpectTable_a7bca01370df3661a7d0072432c3177b0}{
int {\bfseries add\_\-route} (const \hyperlink{classIPRouteEntry}{IPRouteEntry}$<$ A $>$ \&route, \hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$caller)}
\label{classExpectTable_a7bca01370df3661a7d0072432c3177b0}

\item 
\hypertarget{classExpectTable_ae0add04d74b9fc784631de5965520e48}{
int {\bfseries delete\_\-route} (const \hyperlink{classIPRouteEntry}{IPRouteEntry}$<$ A $>$ $\ast$route, \hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$caller)}
\label{classExpectTable_ae0add04d74b9fc784631de5965520e48}

\item 
\hypertarget{classExpectTable_aa514e310d5a3f46396f681553eef9441}{
const \hyperlink{classIPRouteEntry}{IPRouteEntry}$<$ A $>$ $\ast$ {\bfseries lookup\_\-route} (const \hyperlink{classIPNet}{IPNet}$<$ A $>$ \&net) const }
\label{classExpectTable_aa514e310d5a3f46396f681553eef9441}

\item 
\hypertarget{classExpectTable_aa53cd1dab796346540c35a2d5f7d7122}{
const \hyperlink{classIPRouteEntry}{IPRouteEntry}$<$ A $>$ $\ast$ {\bfseries lookup\_\-route} (const A \&addr) const }
\label{classExpectTable_aa53cd1dab796346540c35a2d5f7d7122}

\item 
\hypertarget{classExpectTable_a2504f7d27c85e81428bc5f4f8e3928ed}{
\hyperlink{classRouteRange}{RouteRange}$<$ A $>$ $\ast$ {\bfseries lookup\_\-route\_\-range} (const A \&addr) const }
\label{classExpectTable_a2504f7d27c85e81428bc5f4f8e3928ed}

\item 
\hypertarget{classExpectTable_a7bde72e0ba6bc89334c8c3e9e1d62e65}{
TableType {\bfseries type} () const }
\label{classExpectTable_a7bde72e0ba6bc89334c8c3e9e1d62e65}

\item 
\hypertarget{classExpectTable_aec2deb636f8ef9e688de4baa09fa8abc}{
\hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$ {\bfseries parent} ()}
\label{classExpectTable_aec2deb636f8ef9e688de4baa09fa8abc}

\item 
\hypertarget{classExpectTable_af6b498aa75c01dd3cf51aff8d85971f2}{
void {\bfseries replumb} (\hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$old\_\-parent, \hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$new\_\-parent)}
\label{classExpectTable_af6b498aa75c01dd3cf51aff8d85971f2}

\item 
\hypertarget{classExpectTable_ac0a755da7c3e4662373704781bdb2daa}{
string {\bfseries str} () const }
\label{classExpectTable_ac0a755da7c3e4662373704781bdb2daa}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classExpectTable_a08eb08e7132518d945a2ebc6ae6eb047}{
\hyperlink{classRouteTable}{RouteTable}$<$ A $>$ $\ast$ {\bfseries \_\-parent}}
\label{classExpectTable_a08eb08e7132518d945a2ebc6ae6eb047}

\item 
\hypertarget{classExpectTable_adf4151192044fa96d2c6ce7539f9b3b6}{
list$<$ \hyperlink{classExpectedRouteChange}{ExpectedRouteChange}$<$ A $>$ $>$ {\bfseries \_\-expected\_\-route\_\-changes}}
\label{classExpectTable_adf4151192044fa96d2c6ce7539f9b3b6}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class A$>$ class ExpectTable$<$ A $>$}

A \hyperlink{classRoute}{Route} Table for comparing route updates received against expected. Users of this class specify expected updates with expect\_\-add and expect\_\-delete. As \hyperlink{protocolthe-p}{the} updates come through they are compared against those expect and generate an assertion failure if those arriving do not match those expected. An assertion failure will also occur if there are unmatched updates upon instance destruction.

This class is strictly for debugging and testing purposes. 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/rib/tests/rt\_\-tab\_\-expect.hh\item 
/home/greearb/git/xorp.ct.github/xorp/rib/tests/rt\_\-tab\_\-expect.cc\end{DoxyCompactItemize}
