\hypertarget{classOlsrVarRW}{
\section{OlsrVarRW Class Reference}
\label{classOlsrVarRW}\index{OlsrVarRW@{OlsrVarRW}}
}
Inheritance diagram for OlsrVarRW:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classOlsrVarRW}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \{ \par
{\bfseries VAR\_\-NETWORK} =  VAR\_\-PROTOCOL, 
{\bfseries VAR\_\-NEXTHOP}, 
{\bfseries VAR\_\-METRIC}, 
{\bfseries VAR\_\-VTYPE}, 
\par
{\bfseries VAR\_\-ORIGINATOR}, 
{\bfseries VAR\_\-MAINADDR}, 
{\bfseries VAR\_\-OLSRMAX}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classOlsrVarRW_af1eb381f3d90b9e60f6fcf6923ea95d9}{
{\bfseries OlsrVarRW} (\hyperlink{classIPNet}{IPv4Net} \&network, \hyperlink{classIPv4}{IPv4} \&nexthop, uint32\_\-t \&metric, \hyperlink{classIPv4}{IPv4} \&originator, \hyperlink{classIPv4}{IPv4} \&main\_\-addr, uint32\_\-t vtype, \hyperlink{classPolicyTags}{PolicyTags} \&policytags)}
\label{classOlsrVarRW_af1eb381f3d90b9e60f6fcf6923ea95d9}

\item 
\hypertarget{classOlsrVarRW_af6ce7fcfed0649cb89f08e369a035f52}{
void \hyperlink{classOlsrVarRW_af6ce7fcfed0649cb89f08e369a035f52}{start\_\-read} ()}
\label{classOlsrVarRW_af6ce7fcfed0649cb89f08e369a035f52}

\begin{DoxyCompactList}\small\item\em If any reads are performed, this is a marker which informs \hyperlink{protocolthe-p}{the} derived class that reads will now start. \item\end{DoxyCompactList}\item 
\hyperlink{classElement}{Element} $\ast$ \hyperlink{classOlsrVarRW_a0ef1c04cd16c9316df1317b7f07acb4b}{single\_\-read} (const Id \&id)
\begin{DoxyCompactList}\small\item\em Read of a variable. \item\end{DoxyCompactList}\item 
void \hyperlink{classOlsrVarRW_ac6c43e9dda86033ea5de55ba53765cd5}{single\_\-write} (const Id \&id, const \hyperlink{classElement}{Element} \&e)
\begin{DoxyCompactList}\small\item\em Write of a variable. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classOlsrVarRW_a0bc06863b71241de5b6118b732bd5d57}{
\hyperlink{classIPNet}{IPv4Net} \& {\bfseries \_\-network}}
\label{classOlsrVarRW_a0bc06863b71241de5b6118b732bd5d57}

\item 
\hypertarget{classOlsrVarRW_a2dc2f6715dc9cde66445383b0a5f8c69}{
\hyperlink{classIPv4}{IPv4} \& {\bfseries \_\-nexthop}}
\label{classOlsrVarRW_a2dc2f6715dc9cde66445383b0a5f8c69}

\item 
\hypertarget{classOlsrVarRW_ad6a8d4f1b46083089bb06f7bbb2b31e7}{
uint32\_\-t \& {\bfseries \_\-metric}}
\label{classOlsrVarRW_ad6a8d4f1b46083089bb06f7bbb2b31e7}

\item 
\hypertarget{classOlsrVarRW_a7401d3e90f0f6a1a3fc312307085ba8c}{
\hyperlink{classIPv4}{IPv4} \& {\bfseries \_\-originator}}
\label{classOlsrVarRW_a7401d3e90f0f6a1a3fc312307085ba8c}

\item 
\hypertarget{classOlsrVarRW_a79b950c8ce226b9042ab7cc642959e47}{
\hyperlink{classIPv4}{IPv4} \& {\bfseries \_\-main\_\-addr}}
\label{classOlsrVarRW_a79b950c8ce226b9042ab7cc642959e47}

\item 
\hypertarget{classOlsrVarRW_a2cb17a7b8c68a4a145592c50722ded22}{
uint32\_\-t \& {\bfseries \_\-vtype}}
\label{classOlsrVarRW_a2cb17a7b8c68a4a145592c50722ded22}

\item 
\hypertarget{classOlsrVarRW_a2175cc5c34229bf43b701c9ee1b62d7a}{
\hyperlink{classPolicyTags}{PolicyTags} \& {\bfseries \_\-policytags}}
\label{classOlsrVarRW_a2175cc5c34229bf43b701c9ee1b62d7a}

\item 
\hypertarget{classOlsrVarRW_aae84761a5085ac27157d07d7d2555532}{
\hyperlink{classElementFactory}{ElementFactory} {\bfseries \_\-ef}}
\label{classOlsrVarRW_aae84761a5085ac27157d07d7d2555532}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{classOlsrVarRW_a0ef1c04cd16c9316df1317b7f07acb4b}{
\index{OlsrVarRW@{OlsrVarRW}!single\_\-read@{single\_\-read}}
\index{single\_\-read@{single\_\-read}!OlsrVarRW@{OlsrVarRW}}
\subsubsection[{single\_\-read}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Element} $\ast$ OlsrVarRW::single\_\-read (
\begin{DoxyParamCaption}
\item[{const Id \&}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classOlsrVarRW_a0ef1c04cd16c9316df1317b7f07acb4b}


Read of a variable. 

The \hyperlink{classVarRW}{VarRW} needs to read a particular element. This may return NULL indicating ElemNull-\/-\/-\/i.e. variable not present in THIS route.

\begin{DoxyReturn}{Returns}
variable requested. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em id} & \hyperlink{protocolthe-p}{the} id of \hyperlink{protocolthe-p}{the} variable. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classSingleVarRW_a54ef877baad0937b181563e8b5eef44a}{SingleVarRW}.

\hypertarget{classOlsrVarRW_ac6c43e9dda86033ea5de55ba53765cd5}{
\index{OlsrVarRW@{OlsrVarRW}!single\_\-write@{single\_\-write}}
\index{single\_\-write@{single\_\-write}!OlsrVarRW@{OlsrVarRW}}
\subsubsection[{single\_\-write}]{\setlength{\rightskip}{0pt plus 5cm}void OlsrVarRW::single\_\-write (
\begin{DoxyParamCaption}
\item[{const Id \&}]{id, }
\item[{const {\bf Element} \&}]{e}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classOlsrVarRW_ac6c43e9dda86033ea5de55ba53765cd5}


Write of a variable. 

The write MUST be performed now, as \hyperlink{protocolthe-p}{the} element pointer may become invalid after this call. Also, a single write will be called for each modified element.


\begin{DoxyParams}{Parameters}
{\em id} & identifier of variable to be written to. \\
\hline
{\em e} & value of variable. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classSingleVarRW_a24cde180db3bac1e4554cafa1809ba7a}{SingleVarRW}.



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