\hypertarget{classPolicyRedistMap}{
\section{PolicyRedistMap Class Reference}
\label{classPolicyRedistMap}\index{PolicyRedistMap@{PolicyRedistMap}}
}


A Map between policytags and where \hyperlink{protocolthe-p}{the} route should be redistributed.  




{\ttfamily \#include $<$policy\_\-redist\_\-map.hh$>$}

Inheritance diagram for PolicyRedistMap:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classPolicyRedistMap}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{classPolicyRedistMap_adb5d0fcc154c560218aec5c59336da2b}{insert} (const string \&protocol, const \hyperlink{classPolicyTags}{PolicyTags} \&tags)
\begin{DoxyCompactList}\small\item\em Configure redistribution to a protcol for these tags. \item\end{DoxyCompactList}\item 
\hypertarget{classPolicyRedistMap_ab903fad99bf6f3d65922eee3899301e0}{
void \hyperlink{classPolicyRedistMap_ab903fad99bf6f3d65922eee3899301e0}{reset} ()}
\label{classPolicyRedistMap_ab903fad99bf6f3d65922eee3899301e0}

\begin{DoxyCompactList}\small\item\em Reset \hyperlink{protocolthe-p}{the} redistribution map. \item\end{DoxyCompactList}\item 
void \hyperlink{classPolicyRedistMap_a10500be1eb24b91cfd7c06f8d342369b}{get\_\-protocols} (set$<$ string $>$ \&out, const \hyperlink{classPolicyTags}{PolicyTags} \&tags)
\begin{DoxyCompactList}\small\item\em Obtain which protocols \hyperlink{protocolthe-p}{the} route containing these tags should be sent to. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPolicyRedistMap_a4eaa2c101ffa386b3242744a5b6c8b9f}{
typedef map$<$ string, \hyperlink{classPolicyTags}{PolicyTags} $\ast$ $>$ {\bfseries Map}}
\label{classPolicyRedistMap_a4eaa2c101ffa386b3242744a5b6c8b9f}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classPolicyRedistMap_afab18b855d5b0bfa14d0935470077554}{
Map {\bfseries \_\-map}}
\label{classPolicyRedistMap_afab18b855d5b0bfa14d0935470077554}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
A Map between policytags and where \hyperlink{protocolthe-p}{the} route should be redistributed. This map normally resides in \hyperlink{protocolthe-p}{the} \hyperlink{classRIB}{RIB}. As routes pass through \hyperlink{protocolthe-p}{the} rib, their policytags need to be analyzed. According to these tags, \hyperlink{protocolthe-p}{the} route must be sent to various routing protocols to enable export policies. 

\subsection{Member Function Documentation}
\hypertarget{classPolicyRedistMap_a10500be1eb24b91cfd7c06f8d342369b}{
\index{PolicyRedistMap@{PolicyRedistMap}!get\_\-protocols@{get\_\-protocols}}
\index{get\_\-protocols@{get\_\-protocols}!PolicyRedistMap@{PolicyRedistMap}}
\subsubsection[{get\_\-protocols}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyRedistMap::get\_\-protocols (
\begin{DoxyParamCaption}
\item[{set$<$ string $>$ \&}]{out, }
\item[{const {\bf PolicyTags} \&}]{tags}
\end{DoxyParamCaption}
)}}
\label{classPolicyRedistMap_a10500be1eb24b91cfd7c06f8d342369b}


Obtain which protocols \hyperlink{protocolthe-p}{the} route containing these tags should be sent to. 


\begin{DoxyParams}{Parameters}
{\em out} & will be filled with protocols route should be sent to. \\
\hline
{\em tags} & policytags that need to be resolved. \\
\hline
\end{DoxyParams}
\hypertarget{classPolicyRedistMap_adb5d0fcc154c560218aec5c59336da2b}{
\index{PolicyRedistMap@{PolicyRedistMap}!insert@{insert}}
\index{insert@{insert}!PolicyRedistMap@{PolicyRedistMap}}
\subsubsection[{insert}]{\setlength{\rightskip}{0pt plus 5cm}void PolicyRedistMap::insert (
\begin{DoxyParamCaption}
\item[{const string \&}]{protocol, }
\item[{const {\bf PolicyTags} \&}]{tags}
\end{DoxyParamCaption}
)}}
\label{classPolicyRedistMap_adb5d0fcc154c560218aec5c59336da2b}


Configure redistribution to a protcol for these tags. 


\begin{DoxyParams}{Parameters}
{\em protocol} & destination protocol for these tags. \\
\hline
{\em tags} & policytags which need to be redistributed to \hyperlink{protocolthe-p}{the} protocol. \\
\hline
\end{DoxyParams}


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