\hypertarget{classOper}{
\section{Oper Class Reference}
\label{classOper}\index{Oper@{Oper}}
}


Base class for operations.  




{\ttfamily \#include $<$operator\_\-base.hh$>$}

Inheritance diagram for Oper:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classOper}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classOper_adb9ef7b864e528f866b9de1fa37f6aaf}{
typedef unsigned char {\bfseries Hash}}
\label{classOper_adb9ef7b864e528f866b9de1fa37f6aaf}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classOper_aec0220e495aeb842c00c815de549db30}{
{\bfseries Oper} (Hash hash, unsigned arity)}
\label{classOper_aec0220e495aeb842c00c815de549db30}

\item 
unsigned \hyperlink{classOper_a8309434fba811ce4a61c8307d2ab5e4c}{arity} () const 
\item 
virtual string \hyperlink{classOper_aa6b8db71aab47fd693f970ef8e624d21}{str} () const =0
\begin{DoxyCompactList}\small\item\em Must be unique. \item\end{DoxyCompactList}\item 
\hypertarget{classOper_ad0004d4176159464e74b86a59a708d83}{
Hash {\bfseries hash} () const }
\label{classOper_ad0004d4176159464e74b86a59a708d83}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classOper_ab1177ebe8da9f6fa28400b09bb3cc78b}{
Hash {\bfseries \_\-hash}}
\label{classOper_ab1177ebe8da9f6fa28400b09bb3cc78b}

\item 
\hypertarget{classOper_ab9b7ae4afd4bb36039c62a41ec0da6a2}{
unsigned {\bfseries \_\-arity}}
\label{classOper_ab9b7ae4afd4bb36039c62a41ec0da6a2}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for operations. An operation is simply an operation that may be done upon elements, such as addition and comparison. 

\subsection{Member Function Documentation}
\hypertarget{classOper_a8309434fba811ce4a61c8307d2ab5e4c}{
\index{Oper@{Oper}!arity@{arity}}
\index{arity@{arity}!Oper@{Oper}}
\subsubsection[{arity}]{\setlength{\rightskip}{0pt plus 5cm}unsigned Oper::arity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classOper_a8309434fba811ce4a61c8307d2ab5e4c}
\begin{DoxyReturn}{Returns}
number of arguments operation takes 
\end{DoxyReturn}
\hypertarget{classOper_aa6b8db71aab47fd693f970ef8e624d21}{
\index{Oper@{Oper}!str@{str}}
\index{str@{str}!Oper@{Oper}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}virtual string Oper::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classOper_aa6b8db71aab47fd693f970ef8e624d21}


Must be unique. 

\begin{DoxyReturn}{Returns}
string representation of operation. 
\end{DoxyReturn}


Implemented in \hyperlink{classUnOper_acefc87d7976320a78a714c799f4fe700}{UnOper}, and \hyperlink{classBinOper_af776ae1f4ec5e8ebbc03c9d0e38ddc09}{BinOper}.



The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/policy/common/operator\_\-base.hh\end{DoxyCompactItemize}
