\hypertarget{classElemCom32}{
\section{ElemCom32 Class Reference}
\label{classElemCom32}\index{ElemCom32@{ElemCom32}}
}


32bit unsigned integer with BGP communities friendly syntax.  




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

Inheritance diagram for ElemCom32:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classElemCom32}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classElemCom32_a21ba7334920c8f5194bcfba5c0c6e5a3}{ElemCom32} (const char $\ast$)
\begin{DoxyCompactList}\small\item\em \hyperlink{classElement}{Element} constructor with a parser for a BGP community syntax. \item\end{DoxyCompactList}\item 
\hypertarget{classElemCom32_a17cba67e6be8589dd10d51d11dd3a38b}{
{\bfseries ElemCom32} (const uint32\_\-t val)}
\label{classElemCom32_a17cba67e6be8589dd10d51d11dd3a38b}

\item 
string \hyperlink{classElemCom32_abf4c8ec84d1b236f64c09e4d9175348b}{str} () const 
\begin{DoxyCompactList}\small\item\em Every element must be representable by a string. \item\end{DoxyCompactList}\item 
\hypertarget{classElemCom32_aa813ab46d329137ce3cc7da79355e3a3}{
uint32\_\-t {\bfseries val} () const }
\label{classElemCom32_aa813ab46d329137ce3cc7da79355e3a3}

\item 
const char $\ast$ \hyperlink{classElemCom32_a4798525e4ca37b6790c2471b5162df5f}{type} () const 
\item 
\hypertarget{classElemCom32_a364a0550dc752d18f83fc134360a961f}{
bool {\bfseries operator==} (const \hyperlink{classElemCom32}{ElemCom32} \&rhs) const }
\label{classElemCom32_a364a0550dc752d18f83fc134360a961f}

\item 
\hypertarget{classElemCom32_ab485c9579e84da23de913efc3637525c}{
bool {\bfseries operator$<$} (const \hyperlink{classElemCom32}{ElemCom32} \&rhs) const }
\label{classElemCom32_ab485c9579e84da23de913efc3637525c}

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

\item 
\hypertarget{classElemCom32_af8c85c4453859fc5162da655f96fef82}{
static Hash {\bfseries \_\-hash} = HASH\_\-ELEM\_\-COM32}
\label{classElemCom32_af8c85c4453859fc5162da655f96fef82}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classElemCom32_acf69ffe65db74820b49fbdcb1ea6c2ef}{
uint32\_\-t {\bfseries \_\-val}}
\label{classElemCom32_acf69ffe65db74820b49fbdcb1ea6c2ef}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
32bit unsigned integer with BGP communities friendly syntax. \char`\"{}X\char`\"{} -\/$>$ (uint32\_\-t) X \char`\"{}:X\char`\"{} -\/$>$ (uint16\_\-t) X \char`\"{}X:\char`\"{} -\/$>$ ((uint16\_\-t) X) $<$$<$ 16 \char`\"{}X:Y\char`\"{} -\/$>$ (((uint16\_\-t) X) $<$$<$ 16) + (uint16\_\-t) Y 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classElemCom32_a21ba7334920c8f5194bcfba5c0c6e5a3}{
\index{ElemCom32@{ElemCom32}!ElemCom32@{ElemCom32}}
\index{ElemCom32@{ElemCom32}!ElemCom32@{ElemCom32}}
\subsubsection[{ElemCom32}]{\setlength{\rightskip}{0pt plus 5cm}ElemCom32::ElemCom32 (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{c\_\-str}
\end{DoxyParamCaption}
)}}
\label{classElemCom32_a21ba7334920c8f5194bcfba5c0c6e5a3}


\hyperlink{classElement}{Element} constructor with a parser for a BGP community syntax. 

\char`\"{}N\char`\"{} -\/$>$ (uint32\_\-t) N \char`\"{}:N\char`\"{} -\/$>$ (uint16\_\-t) N \char`\"{}N:\char`\"{} -\/$>$ ((uint16\_\-t) N) $<$$<$ 16 \char`\"{}N:M\char`\"{} -\/$>$ (((uint16\_\-t) N) $<$$<$ 16) + (uint16\_\-t) M 

\subsection{Member Function Documentation}
\hypertarget{classElemCom32_abf4c8ec84d1b236f64c09e4d9175348b}{
\index{ElemCom32@{ElemCom32}!str@{str}}
\index{str@{str}!ElemCom32@{ElemCom32}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string ElemCom32::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classElemCom32_abf4c8ec84d1b236f64c09e4d9175348b}


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{classElemCom32_a4798525e4ca37b6790c2471b5162df5f}{
\index{ElemCom32@{ElemCom32}!type@{type}}
\index{type@{type}!ElemCom32@{ElemCom32}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ ElemCom32::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline, virtual\mbox{]}}}}
\label{classElemCom32_a4798525e4ca37b6790c2471b5162df5f}
\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}
