\hypertarget{classSetManager}{
\section{SetManager Class Reference}
\label{classSetManager}\index{SetManager@{SetManager}}
}


Class that owns all sets.  




{\ttfamily \#include $<$set\_\-manager.hh$>$}

Inheritance diagram for SetManager:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSetManager}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classSetManager_1_1SetNotFound}{SetNotFound}
\begin{DoxyCompactList}\small\item\em Exception thrown when a set with an unknown name is requested. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSetManager_af3ba388b7695e5361bc0a705c82eee42}{
typedef map$<$ string, \hyperlink{classElement}{Element} $\ast$ $>$ {\bfseries SetMap}}
\label{classSetManager_af3ba388b7695e5361bc0a705c82eee42}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{classElement}{Element} \& \hyperlink{classSetManager_a181bd64b48ba54d504a2ddd20d020fd2}{getSet} (const string \&setid) const 
\begin{DoxyCompactList}\small\item\em Return \hyperlink{protocolthe-p}{the} corresponding \hyperlink{classElemSet}{ElemSet} for \hyperlink{protocolthe-p}{the} requested set name. \item\end{DoxyCompactList}\item 
void \hyperlink{classSetManager_a1bd3f1f458ada1ce02e3ad8a340ae4b3}{replace\_\-sets} (SetMap $\ast$sets)
\begin{DoxyCompactList}\small\item\em Resplace all sets with \hyperlink{protocolthe-p}{the} given ones. \item\end{DoxyCompactList}\item 
\hypertarget{classSetManager_a7a3e731e5c6bd1b0543f42fc52621bc2}{
void \hyperlink{classSetManager_a7a3e731e5c6bd1b0543f42fc52621bc2}{clear} ()}
\label{classSetManager_a7a3e731e5c6bd1b0543f42fc52621bc2}

\begin{DoxyCompactList}\small\item\em Zap all sets. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSetManager_a1fc8a72f7fcd68baf81e33acf79eb6fd}{
SetMap $\ast$ {\bfseries \_\-sets}}
\label{classSetManager_a1fc8a72f7fcd68baf81e33acf79eb6fd}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class that owns all sets. It resolves set names to ElemSet's.

Ideally, if \hyperlink{protocolthe-p}{the} contents of a set changes, a filter should not be reconfigured, but only \hyperlink{protocolthe-p}{the} sets. This is currently not \hyperlink{protocolthe-p}{the} case, but there is enough structure to allow it. 

\subsection{Member Function Documentation}
\hypertarget{classSetManager_a181bd64b48ba54d504a2ddd20d020fd2}{
\index{SetManager@{SetManager}!getSet@{getSet}}
\index{getSet@{getSet}!SetManager@{SetManager}}
\subsubsection[{getSet}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Element} \& SetManager::getSet (
\begin{DoxyParamCaption}
\item[{const string \&}]{setid}
\end{DoxyParamCaption}
) const}}
\label{classSetManager_a181bd64b48ba54d504a2ddd20d020fd2}


Return \hyperlink{protocolthe-p}{the} corresponding \hyperlink{classElemSet}{ElemSet} for \hyperlink{protocolthe-p}{the} requested set name. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classElemSet}{ElemSet} requested. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em setid} & name of set wanted. \\
\hline
\end{DoxyParams}
\hypertarget{classSetManager_a1bd3f1f458ada1ce02e3ad8a340ae4b3}{
\index{SetManager@{SetManager}!replace\_\-sets@{replace\_\-sets}}
\index{replace\_\-sets@{replace\_\-sets}!SetManager@{SetManager}}
\subsubsection[{replace\_\-sets}]{\setlength{\rightskip}{0pt plus 5cm}void SetManager::replace\_\-sets (
\begin{DoxyParamCaption}
\item[{SetMap $\ast$}]{sets}
\end{DoxyParamCaption}
)}}
\label{classSetManager_a1bd3f1f458ada1ce02e3ad8a340ae4b3}


Resplace all sets with \hyperlink{protocolthe-p}{the} given ones. 

Caller must not delete them.


\begin{DoxyParams}{Parameters}
{\em sets} & \hyperlink{protocolthe-p}{the} new sets that should be used. \\
\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/set\_\-manager.hh\item 
/home/greearb/git/xorp.ct.github/xorp/policy/backend/set\_\-manager.cc\end{DoxyCompactItemize}
