\hypertarget{classCodeList}{
\section{CodeList Class Reference}
\label{classCodeList}\index{CodeList@{CodeList}}
}


A collection of code fragments.  




{\ttfamily \#include $<$code\_\-list.hh$>$}

Inheritance diagram for CodeList:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classCodeList}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classCodeList_ae800aefb1e7a880125d3dace1bbb5993}{CodeList} (const string \&policy)
\begin{DoxyCompactList}\small\item\em Initialize codelist. \item\end{DoxyCompactList}\item 
void \hyperlink{classCodeList_a83a0c7f1ff6ccd12d70a37c8310e87c8}{push\_\-back} (\hyperlink{classCode}{Code} $\ast$c)
\begin{DoxyCompactList}\small\item\em Append code to \hyperlink{protocolthe-p}{the} list. \item\end{DoxyCompactList}\item 
string \hyperlink{classCodeList_af8185470fc6645dac7e9a137d18b81cf}{str} () const 
\begin{DoxyCompactList}\small\item\em Obtain string representation of \hyperlink{protocolthe-p}{the} code list. \item\end{DoxyCompactList}\item 
void \hyperlink{classCodeList_ae7e2cb49d7b716178121818f82a5342e}{link\_\-code} (\hyperlink{classCode}{Code} \&c) const 
\begin{DoxyCompactList}\small\item\em \hyperlink{classLinks}{Links} all code in \hyperlink{protocolthe-p}{the} code list to c. \item\end{DoxyCompactList}\item 
void \hyperlink{classCodeList_a3feb5eec66b1e3144a5450cccc8165c5}{get\_\-targets} (Code::TargetSet \&targets) const 
\begin{DoxyCompactList}\small\item\em Obtain \hyperlink{protocolthe-p}{the} set of targets \hyperlink{protocolthe-p}{the} code list has. \item\end{DoxyCompactList}\item 
void \hyperlink{classCodeList_ad470a4d2f50c5c5ae1b6427951c2dc6c}{get\_\-targets} (Code::TargetSet \&targets, const filter::Filter \&filter) const 
\begin{DoxyCompactList}\small\item\em Obtain \hyperlink{protocolthe-p}{the} set of targets of particular filter type \hyperlink{protocolthe-p}{the} code list has. \item\end{DoxyCompactList}\item 
void \hyperlink{classCodeList_a58324bea44638668f99ff7f84d8b996f}{get\_\-redist\_\-tags} (const string \&protocol, Code::TagSet \&tagset) const 
\begin{DoxyCompactList}\small\item\em Return \hyperlink{protocolthe-p}{the} tags used by a certain protocol for route redistribution, in \hyperlink{protocolthe-p}{the} code list. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classCodeList_ab1edd48c21eaf1a203a9d961462defbc}{
typedef list$<$ \hyperlink{classCode}{Code} $\ast$ $>$ {\bfseries ListCode}}
\label{classCodeList_ab1edd48c21eaf1a203a9d961462defbc}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classCodeList_afae5e6671c3051fada4463b9f050ef1a}{
string {\bfseries \_\-policy}}
\label{classCodeList_afae5e6671c3051fada4463b9f050ef1a}

\item 
\hypertarget{classCodeList_ab9df38c52c1ad8a1ba762287da58da1e}{
ListCode {\bfseries \_\-codes}}
\label{classCodeList_ab9df38c52c1ad8a1ba762287da58da1e}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
A collection of code fragments. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classCodeList_ae800aefb1e7a880125d3dace1bbb5993}{
\index{CodeList@{CodeList}!CodeList@{CodeList}}
\index{CodeList@{CodeList}!CodeList@{CodeList}}
\subsubsection[{CodeList}]{\setlength{\rightskip}{0pt plus 5cm}CodeList::CodeList (
\begin{DoxyParamCaption}
\item[{const string \&}]{policy}
\end{DoxyParamCaption}
)}}
\label{classCodeList_ae800aefb1e7a880125d3dace1bbb5993}


Initialize codelist. 


\begin{DoxyParams}{Parameters}
{\em policy} & \hyperlink{protocolthe-p}{the} policy name. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classCodeList_a58324bea44638668f99ff7f84d8b996f}{
\index{CodeList@{CodeList}!get\_\-redist\_\-tags@{get\_\-redist\_\-tags}}
\index{get\_\-redist\_\-tags@{get\_\-redist\_\-tags}!CodeList@{CodeList}}
\subsubsection[{get\_\-redist\_\-tags}]{\setlength{\rightskip}{0pt plus 5cm}void CodeList::get\_\-redist\_\-tags (
\begin{DoxyParamCaption}
\item[{const string \&}]{protocol, }
\item[{Code::TagSet \&}]{tagset}
\end{DoxyParamCaption}
) const}}
\label{classCodeList_a58324bea44638668f99ff7f84d8b996f}


Return \hyperlink{protocolthe-p}{the} tags used by a certain protocol for route redistribution, in \hyperlink{protocolthe-p}{the} code list. 


\begin{DoxyParams}{Parameters}
{\em protocol} & protocol caller wants tags of. \\
\hline
{\em tagset} & filled with policytags used by protocol for route redistribution. \\
\hline
\end{DoxyParams}
\hypertarget{classCodeList_ad470a4d2f50c5c5ae1b6427951c2dc6c}{
\index{CodeList@{CodeList}!get\_\-targets@{get\_\-targets}}
\index{get\_\-targets@{get\_\-targets}!CodeList@{CodeList}}
\subsubsection[{get\_\-targets}]{\setlength{\rightskip}{0pt plus 5cm}void CodeList::get\_\-targets (
\begin{DoxyParamCaption}
\item[{Code::TargetSet \&}]{targets, }
\item[{const filter::Filter \&}]{filter}
\end{DoxyParamCaption}
) const}}
\label{classCodeList_ad470a4d2f50c5c5ae1b6427951c2dc6c}


Obtain \hyperlink{protocolthe-p}{the} set of targets of particular filter type \hyperlink{protocolthe-p}{the} code list has. 


\begin{DoxyParams}{Parameters}
{\em targets} & argument is filled with targets \hyperlink{protocolthe-p}{the} code list has. \\
\hline
{\em filter} & \hyperlink{protocolthe-p}{the} filter type. \\
\hline
\end{DoxyParams}
\hypertarget{classCodeList_a3feb5eec66b1e3144a5450cccc8165c5}{
\index{CodeList@{CodeList}!get\_\-targets@{get\_\-targets}}
\index{get\_\-targets@{get\_\-targets}!CodeList@{CodeList}}
\subsubsection[{get\_\-targets}]{\setlength{\rightskip}{0pt plus 5cm}void CodeList::get\_\-targets (
\begin{DoxyParamCaption}
\item[{Code::TargetSet \&}]{targets}
\end{DoxyParamCaption}
) const}}
\label{classCodeList_a3feb5eec66b1e3144a5450cccc8165c5}


Obtain \hyperlink{protocolthe-p}{the} set of targets \hyperlink{protocolthe-p}{the} code list has. 


\begin{DoxyParams}{Parameters}
{\em targets} & argument is filled with targets \hyperlink{protocolthe-p}{the} code list has. \\
\hline
\end{DoxyParams}
\hypertarget{classCodeList_ae7e2cb49d7b716178121818f82a5342e}{
\index{CodeList@{CodeList}!link\_\-code@{link\_\-code}}
\index{link\_\-code@{link\_\-code}!CodeList@{CodeList}}
\subsubsection[{link\_\-code}]{\setlength{\rightskip}{0pt plus 5cm}void CodeList::link\_\-code (
\begin{DoxyParamCaption}
\item[{{\bf Code} \&}]{c}
\end{DoxyParamCaption}
) const}}
\label{classCodeList_ae7e2cb49d7b716178121818f82a5342e}


\hyperlink{classLinks}{Links} all code in \hyperlink{protocolthe-p}{the} code list to c. 

The code is basically added to c.


\begin{DoxyParams}{Parameters}
{\em c} & code to link current code list to. \\
\hline
\end{DoxyParams}
\hypertarget{classCodeList_a83a0c7f1ff6ccd12d70a37c8310e87c8}{
\index{CodeList@{CodeList}!push\_\-back@{push\_\-back}}
\index{push\_\-back@{push\_\-back}!CodeList@{CodeList}}
\subsubsection[{push\_\-back}]{\setlength{\rightskip}{0pt plus 5cm}void CodeList::push\_\-back (
\begin{DoxyParamCaption}
\item[{{\bf Code} $\ast$}]{c}
\end{DoxyParamCaption}
)}}
\label{classCodeList_a83a0c7f1ff6ccd12d70a37c8310e87c8}


Append code to \hyperlink{protocolthe-p}{the} list. 

\hyperlink{classCode}{Code} is now owned by \hyperlink{protocolthe-p}{the} code list.


\begin{DoxyParams}{Parameters}
{\em c} & code to append. Caller must not delete code. \\
\hline
\end{DoxyParams}
\hypertarget{classCodeList_af8185470fc6645dac7e9a137d18b81cf}{
\index{CodeList@{CodeList}!str@{str}}
\index{str@{str}!CodeList@{CodeList}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string CodeList::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classCodeList_af8185470fc6645dac7e9a137d18b81cf}


Obtain string representation of \hyperlink{protocolthe-p}{the} code list. 

\begin{DoxyReturn}{Returns}
string representation of \hyperlink{protocolthe-p}{the} code list. 
\end{DoxyReturn}


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