\hypertarget{classAdv}{
\section{Adv$<$ A $>$ Class Template Reference}
\label{classAdv}\index{Adv@{Adv}}
}


Storage for routing table entries indexed by advertising router.  




{\ttfamily \#include $<$routing\_\-table.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAdv_abf2fc0a5aa7ca47386f884e3827169e6}{
void \hyperlink{classAdv_abf2fc0a5aa7ca47386f884e3827169e6}{clear\_\-area} (\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} area)}
\label{classAdv_abf2fc0a5aa7ca47386f884e3827169e6}

\begin{DoxyCompactList}\small\item\em Clear all entries for this area. \item\end{DoxyCompactList}\item 
bool \hyperlink{classAdv_aa2ee91ea1399d85d33dddaeb4e171e1a}{add\_\-entry} (\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} area, uint32\_\-t adv, const \hyperlink{classRouteEntry}{RouteEntry}$<$ A $>$ \&rt, const char $\ast$dbg)
\begin{DoxyCompactList}\small\item\em Add an entry for this routing entry keyed on advertising router. \item\end{DoxyCompactList}\item 
bool \hyperlink{classAdv_a62b49186661c387a8549417751bd743e}{replace\_\-entry} (\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} area, uint32\_\-t adv, const \hyperlink{classRouteEntry}{RouteEntry}$<$ A $>$ \&rt, const char $\ast$dbg)
\begin{DoxyCompactList}\small\item\em Replace entry with new entry keyed on advertising router. \item\end{DoxyCompactList}\item 
bool \hyperlink{classAdv_a1845e7ca608a17540a486f60351aa29c}{lookup\_\-entry} (\hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID} area, uint32\_\-t adv, \hyperlink{classRouteEntry}{RouteEntry}$<$ A $>$ \&rt) const 
\begin{DoxyCompactList}\small\item\em Lookup an entry by advertising router. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAdv_a4433666798379698365127697ae908bb}{
typedef map$<$ \hyperlink{structOspfTypes_a8fc36f0cbcee50cfdb0d10b192aaa53a}{OspfTypes::RouterID}, \hyperlink{classRouteEntry}{RouteEntry}$<$ A $>$ $>$ {\bfseries AREA}}
\label{classAdv_a4433666798379698365127697ae908bb}

\item 
\hypertarget{classAdv_a931f30c4ab36d059239e10d4b2070e97}{
typedef map$<$ \hyperlink{structOspfTypes_a8276e5e81192074d7c95e445995d18c6}{OspfTypes::AreaID}, AREA $>$ {\bfseries ADV}}
\label{classAdv_a931f30c4ab36d059239e10d4b2070e97}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classAdv_a38e5f8665dc01b0bf64fe97476a90457}{
ADV {\bfseries \_\-adv}}
\label{classAdv_a38e5f8665dc01b0bf64fe97476a90457}

\end{DoxyCompactItemize}


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

Storage for routing table entries indexed by advertising router. 

\subsection{Member Function Documentation}
\hypertarget{classAdv_aa2ee91ea1399d85d33dddaeb4e171e1a}{
\index{Adv@{Adv}!add\_\-entry@{add\_\-entry}}
\index{add\_\-entry@{add\_\-entry}!Adv@{Adv}}
\subsubsection[{add\_\-entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ bool {\bf Adv}$<$ A $>$::add\_\-entry (
\begin{DoxyParamCaption}
\item[{{\bf OspfTypes::AreaID}}]{area, }
\item[{uint32\_\-t}]{adv, }
\item[{const {\bf RouteEntry}$<$ A $>$ \&}]{rt, }
\item[{const char $\ast$}]{dbg}
\end{DoxyParamCaption}
)}}
\label{classAdv_aa2ee91ea1399d85d33dddaeb4e171e1a}


Add an entry for this routing entry keyed on advertising router. 


\begin{DoxyParams}{Parameters}
{\em area} & to add entry. \\
\hline
{\em adv} & advertising router. \\
\hline
{\em rt} & associated routing entry. \\
\hline
\end{DoxyParams}
\hypertarget{classAdv_a1845e7ca608a17540a486f60351aa29c}{
\index{Adv@{Adv}!lookup\_\-entry@{lookup\_\-entry}}
\index{lookup\_\-entry@{lookup\_\-entry}!Adv@{Adv}}
\subsubsection[{lookup\_\-entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ bool {\bf Adv}$<$ A $>$::lookup\_\-entry (
\begin{DoxyParamCaption}
\item[{{\bf OspfTypes::AreaID}}]{area, }
\item[{uint32\_\-t}]{adv, }
\item[{{\bf RouteEntry}$<$ A $>$ \&}]{rt}
\end{DoxyParamCaption}
) const}}
\label{classAdv_a1845e7ca608a17540a486f60351aa29c}


Lookup an entry by advertising router. 


\begin{DoxyParams}{Parameters}
{\em area} & to look in. \\
\hline
{\em adv} & router to look for. \\
\hline
{\em rt} & routing entry returned if entry is found.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if entry is found 
\end{DoxyReturn}
\hypertarget{classAdv_a62b49186661c387a8549417751bd743e}{
\index{Adv@{Adv}!replace\_\-entry@{replace\_\-entry}}
\index{replace\_\-entry@{replace\_\-entry}!Adv@{Adv}}
\subsubsection[{replace\_\-entry}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename A$>$ bool {\bf Adv}$<$ A $>$::replace\_\-entry (
\begin{DoxyParamCaption}
\item[{{\bf OspfTypes::AreaID}}]{area, }
\item[{uint32\_\-t}]{adv, }
\item[{const {\bf RouteEntry}$<$ A $>$ \&}]{rt, }
\item[{const char $\ast$}]{dbg}
\end{DoxyParamCaption}
)}}
\label{classAdv_a62b49186661c387a8549417751bd743e}


Replace entry with new entry keyed on advertising router. 


\begin{DoxyParams}{Parameters}
{\em area} & to add entry. \\
\hline
{\em adv} & advertising router. \\
\hline
{\em rt} & associated routing entry. \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/ospf/routing\_\-table.hh\item 
/home/greearb/git/xorp.ct.github/xorp/ospf/routing\_\-table.cc\end{DoxyCompactItemize}
