\hypertarget{classElemNextHop}{
\section{ElemNextHop$<$ A $>$ Class Template Reference}
\label{classElemNextHop}\index{ElemNextHop@{ElemNextHop}}
}
Inheritance diagram for ElemNextHop$<$ A $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classElemNextHop}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum {\bfseries Var} \{ \par
{\bfseries VAR\_\-NONE}, 
{\bfseries VAR\_\-DISCARD}, 
{\bfseries VAR\_\-NEXT\_\-TABLE}, 
{\bfseries VAR\_\-PEER\_\-ADDRESS}, 
\par
{\bfseries VAR\_\-REJECT}, 
{\bfseries VAR\_\-SELF}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classElemNextHop_aefd0846323a2e4160fbccd07b72339b3}{
{\bfseries ElemNextHop} (const char $\ast$)}
\label{classElemNextHop_aefd0846323a2e4160fbccd07b72339b3}

\item 
\hypertarget{classElemNextHop_a7f1bd01a1c41c541ca179dc67522b709}{
{\bfseries ElemNextHop} (const A \&nh)}
\label{classElemNextHop_a7f1bd01a1c41c541ca179dc67522b709}

\item 
string \hyperlink{classElemNextHop_aa3536354827e200115ed08090d63cda2}{str} () const 
\begin{DoxyCompactList}\small\item\em Every element must be representable by a string. \item\end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{classElemNextHop_a00fda60010b66590a2ccdeb02bb5e5c0}{type} () const 
\item 
\hypertarget{classElemNextHop_ad3d90bad9b8382978c0e91e414691c03}{
Var {\bfseries var} () const }
\label{classElemNextHop_ad3d90bad9b8382978c0e91e414691c03}

\item 
\hypertarget{classElemNextHop_a6d1d466cd230c5f30473e215386a3997}{
const A \& {\bfseries addr} () const }
\label{classElemNextHop_a6d1d466cd230c5f30473e215386a3997}

\item 
\hypertarget{classElemNextHop_afb2df72c48b97661ebcc87736a23df64}{
const A \& {\bfseries val} () const }
\label{classElemNextHop_afb2df72c48b97661ebcc87736a23df64}

\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classElemNextHop_acf63ea6863619fe7f60f473fb94f9e59}{
static const char $\ast$ {\bfseries id} = \char`\"{}ipv4nexthop\char`\"{}}
\label{classElemNextHop_acf63ea6863619fe7f60f473fb94f9e59}

\item 
\hypertarget{classElemNextHop_a9982368c1f9c9d05abbaec67c7e3838f}{
static Hash {\bfseries \_\-hash} = HASH\_\-ELEM\_\-IPV4NEXTHOP}
\label{classElemNextHop_a9982368c1f9c9d05abbaec67c7e3838f}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classElemNextHop_adc5008e7acf001989b0571cc38257d24}{
Var {\bfseries \_\-var}}
\label{classElemNextHop_adc5008e7acf001989b0571cc38257d24}

\item 
\hypertarget{classElemNextHop_a71de8b96f0bebcd6c704f388e4768284}{
A {\bfseries \_\-addr}}
\label{classElemNextHop_a71de8b96f0bebcd6c704f388e4768284}

\end{DoxyCompactItemize}
\subsubsection*{template$<$class A$>$ class ElemNextHop$<$ A $>$}



\subsection{Member Function Documentation}
\hypertarget{classElemNextHop_aa3536354827e200115ed08090d63cda2}{
\index{ElemNextHop@{ElemNextHop}!str@{str}}
\index{str@{str}!ElemNextHop@{ElemNextHop}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ string {\bf ElemNextHop}$<$ A $>$::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classElemNextHop_aa3536354827e200115ed08090d63cda2}


Every element must be representable by a string. 

This is a requirement to enable \hyperlink{protocolthe-p}{the} policy manager to send elements to \hyperlink{protocolthe-p}{the} backend filters via XRL calls for example.

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


Implements \hyperlink{classElement_a1acf1c63bbe1374c574bf19e3a000552}{Element}.

\hypertarget{classElemNextHop_a00fda60010b66590a2ccdeb02bb5e5c0}{
\index{ElemNextHop@{ElemNextHop}!type@{type}}
\index{type@{type}!ElemNextHop@{ElemNextHop}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class A $>$ const char $\ast$ {\bf ElemNextHop}$<$ A $>$::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classElemNextHop_a00fda60010b66590a2ccdeb02bb5e5c0}
\begin{DoxyReturn}{Returns}
string representation of element type. 
\end{DoxyReturn}


Implements \hyperlink{classElement_a17396c7d64fd4fc15713d3d803b57a56}{Element}.



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