\hypertarget{classCode_1_1Target}{
\section{Code::Target Class Reference}
\label{classCode_1_1Target}\index{Code::Target@{Code::Target}}
}


A target represents where \hyperlink{protocolthe-p}{the} code should be placed.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classCode_1_1Target_a37ac21db6b582c84965776f7c27770c6}{
\hyperlink{classCode_1_1Target_a37ac21db6b582c84965776f7c27770c6}{Target} ()}
\label{classCode_1_1Target_a37ac21db6b582c84965776f7c27770c6}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
\hyperlink{classCode_1_1Target_ab73b01737e911ffa6f7486568b6e5a1c}{Target} (const string \&p, filter::Filter f)
\begin{DoxyCompactList}\small\item\em Construct a target \mbox{[}protocol/filter pair\mbox{]}. \item\end{DoxyCompactList}\item 
bool \hyperlink{classCode_1_1Target_a8fcb79d8fa298e50d43e59289eb177d4}{operator$<$} (const \hyperlink{classCode_1_1Target}{Target} \&rhs) const 
\begin{DoxyCompactList}\small\item\em Operator to compare Targets. \item\end{DoxyCompactList}\item 
\hypertarget{classCode_1_1Target_afa605e5c17b4560ce661728ee82f7022}{
bool {\bfseries operator==} (const \hyperlink{classCode_1_1Target}{Target} \&rhs) const }
\label{classCode_1_1Target_afa605e5c17b4560ce661728ee82f7022}

\item 
\hypertarget{classCode_1_1Target_a10021d6ef0727db9f87431f53e212878}{
bool {\bfseries operator!=} (const \hyperlink{classCode_1_1Target}{Target} \&rhs) const }
\label{classCode_1_1Target_a10021d6ef0727db9f87431f53e212878}

\item 
const string \hyperlink{classCode_1_1Target_a911adca0dec8116661c5767980e753f2}{protocol} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} protocol. \item\end{DoxyCompactList}\item 
void \hyperlink{classCode_1_1Target_aa906664004891c56cc91e23473f7d97a}{set\_\-protocol} (const string \&protocol)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} protocol. \item\end{DoxyCompactList}\item 
filter::Filter \hyperlink{classCode_1_1Target_ad0b13fcd0859c359e0f1571842e01f58}{filter} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} filter type. \item\end{DoxyCompactList}\item 
void \hyperlink{classCode_1_1Target_a9b5ca67a63ef555db9a17d4d31723acc}{set\_\-filter} (const filter::Filter \&filter)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} filter type. \item\end{DoxyCompactList}\item 
string \hyperlink{classCode_1_1Target_aa76bc0946a358e5acd565737db0a1934}{str} () const 
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classCode_1_1Target_ad3772f6d6c79845f24a126fa74b11e7a}{
string {\bfseries \_\-protocol}}
\label{classCode_1_1Target_ad3772f6d6c79845f24a126fa74b11e7a}

\item 
\hypertarget{classCode_1_1Target_a1516b659ce47c12989c36460c3943840}{
filter::Filter {\bfseries \_\-filter}}
\label{classCode_1_1Target_a1516b659ce47c12989c36460c3943840}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
A target represents where \hyperlink{protocolthe-p}{the} code should be placed. A target consists of a protocol and a filter type. It identifies exactly which filter of which protocol has to be configured with this code. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classCode_1_1Target_ab73b01737e911ffa6f7486568b6e5a1c}{
\index{Code::Target@{Code::Target}!Target@{Target}}
\index{Target@{Target}!Code::Target@{Code::Target}}
\subsubsection[{Target}]{\setlength{\rightskip}{0pt plus 5cm}Code::Target::Target (
\begin{DoxyParamCaption}
\item[{const string \&}]{p, }
\item[{filter::Filter}]{f}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classCode_1_1Target_ab73b01737e911ffa6f7486568b6e5a1c}


Construct a target \mbox{[}protocol/filter pair\mbox{]}. 


\begin{DoxyParams}{Parameters}
{\em p} & target protocol. \\
\hline
{\em f} & target filter. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classCode_1_1Target_ad0b13fcd0859c359e0f1571842e01f58}{
\index{Code::Target@{Code::Target}!filter@{filter}}
\index{filter@{filter}!Code::Target@{Code::Target}}
\subsubsection[{filter}]{\setlength{\rightskip}{0pt plus 5cm}filter::Filter Code::Target::filter (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classCode_1_1Target_ad0b13fcd0859c359e0f1571842e01f58}


Get \hyperlink{protocolthe-p}{the} filter type. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} filter type. 
\end{DoxyReturn}
\hypertarget{classCode_1_1Target_a8fcb79d8fa298e50d43e59289eb177d4}{
\index{Code::Target@{Code::Target}!operator$<$@{operator$<$}}
\index{operator$<$@{operator$<$}!Code::Target@{Code::Target}}
\subsubsection[{operator$<$}]{\setlength{\rightskip}{0pt plus 5cm}bool Code::Target::operator$<$ (
\begin{DoxyParamCaption}
\item[{const {\bf Target} \&}]{rhs}
\end{DoxyParamCaption}
) const}}
\label{classCode_1_1Target_a8fcb79d8fa298e50d43e59289eb177d4}


Operator to compare Targets. 

Needed for STL set storage.

\begin{DoxyReturn}{Returns}
true if target is less than argument 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em rhs} & target to compare with \\
\hline
\end{DoxyParams}
\hypertarget{classCode_1_1Target_a911adca0dec8116661c5767980e753f2}{
\index{Code::Target@{Code::Target}!protocol@{protocol}}
\index{protocol@{protocol}!Code::Target@{Code::Target}}
\subsubsection[{protocol}]{\setlength{\rightskip}{0pt plus 5cm}const string Code::Target::protocol (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classCode_1_1Target_a911adca0dec8116661c5767980e753f2}


Get \hyperlink{protocolthe-p}{the} protocol. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} protocol. 
\end{DoxyReturn}
\hypertarget{classCode_1_1Target_a9b5ca67a63ef555db9a17d4d31723acc}{
\index{Code::Target@{Code::Target}!set\_\-filter@{set\_\-filter}}
\index{set\_\-filter@{set\_\-filter}!Code::Target@{Code::Target}}
\subsubsection[{set\_\-filter}]{\setlength{\rightskip}{0pt plus 5cm}void Code::Target::set\_\-filter (
\begin{DoxyParamCaption}
\item[{const filter::Filter \&}]{filter}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classCode_1_1Target_a9b5ca67a63ef555db9a17d4d31723acc}


Set \hyperlink{protocolthe-p}{the} filter type. 


\begin{DoxyParams}{Parameters}
{\em filter} & \hyperlink{protocolthe-p}{the} filter type. \\
\hline
\end{DoxyParams}
\hypertarget{classCode_1_1Target_aa906664004891c56cc91e23473f7d97a}{
\index{Code::Target@{Code::Target}!set\_\-protocol@{set\_\-protocol}}
\index{set\_\-protocol@{set\_\-protocol}!Code::Target@{Code::Target}}
\subsubsection[{set\_\-protocol}]{\setlength{\rightskip}{0pt plus 5cm}void Code::Target::set\_\-protocol (
\begin{DoxyParamCaption}
\item[{const string \&}]{protocol}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classCode_1_1Target_aa906664004891c56cc91e23473f7d97a}


Set \hyperlink{protocolthe-p}{the} protocol. 


\begin{DoxyParams}{Parameters}
{\em protocol} & \hyperlink{protocolthe-p}{the} protocol name. \\
\hline
\end{DoxyParams}
\hypertarget{classCode_1_1Target_aa76bc0946a358e5acd565737db0a1934}{
\index{Code::Target@{Code::Target}!str@{str}}
\index{str@{str}!Code::Target@{Code::Target}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string Code::Target::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classCode_1_1Target_aa76bc0946a358e5acd565737db0a1934}
\begin{DoxyReturn}{Returns}
string representation of target. 
\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.hh\item 
/home/greearb/git/xorp.ct.github/xorp/policy/code.cc\end{DoxyCompactItemize}
