\hypertarget{classLinkCode}{
\section{LinkCode Class Reference}
\label{classLinkCode}\index{LinkCode@{LinkCode}}
}


Helper class which represents \hyperlink{protocolthe-p}{the} link code used in a link tuple.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLinkCode_ad2d8d834a9b6aaeb07db5b30cd7c598e}{
{\bfseries LinkCode} (\hyperlink{structOlsrTypes_a49660be3860e0e723a6d6450b31a1eb9}{OlsrTypes::NeighborType} ntype, \hyperlink{structOlsrTypes_a13b918d8bafa2fd850a7404fcb6cf5d2}{OlsrTypes::LinkType} ltype)  throw (BadLinkCode)}
\label{classLinkCode_ad2d8d834a9b6aaeb07db5b30cd7c598e}

\item 
\hypertarget{classLinkCode_a7a22ffa4b706e317e1cf201a8ea747b1}{
{\bfseries LinkCode} (uint8\_\-t code)  throw (BadLinkCode)}
\label{classLinkCode_a7a22ffa4b706e317e1cf201a8ea747b1}

\item 
\hypertarget{classLinkCode_aadb29b9d85fbb536ade9560e3b133c73}{
{\bfseries LinkCode} (const \hyperlink{classLinkCode}{LinkCode} \&rhs)}
\label{classLinkCode_aadb29b9d85fbb536ade9560e3b133c73}

\item 
\hypertarget{classLinkCode_a4ee8200bb5fe975cb20a84d88cdc180f}{
\hyperlink{classLinkCode}{LinkCode} \& {\bfseries operator=} (const uint8\_\-t \&rhs)  throw (BadLinkCode)}
\label{classLinkCode_a4ee8200bb5fe975cb20a84d88cdc180f}

\item 
\hypertarget{classLinkCode_a1905e6422c828905524cdf2f746115e8}{
{\bfseries operator uint8\_\-t} () const }
\label{classLinkCode_a1905e6422c828905524cdf2f746115e8}

\item 
\hypertarget{classLinkCode_a6f6e2b1e6ae268783d9ae8eec061899a}{
\hyperlink{structOlsrTypes_a49660be3860e0e723a6d6450b31a1eb9}{OlsrTypes::NeighborType} {\bfseries neighbortype} () const }
\label{classLinkCode_a6f6e2b1e6ae268783d9ae8eec061899a}

\item 
\hypertarget{classLinkCode_a4114e23eb18c74568e03192ce401fc4e}{
\hyperlink{structOlsrTypes_a13b918d8bafa2fd850a7404fcb6cf5d2}{OlsrTypes::LinkType} {\bfseries linktype} () const }
\label{classLinkCode_a4114e23eb18c74568e03192ce401fc4e}

\item 
\hypertarget{classLinkCode_aad34015ff82573e45cc1df802fb370cd}{
bool {\bfseries is\_\-unspec\_\-link} () const }
\label{classLinkCode_aad34015ff82573e45cc1df802fb370cd}

\item 
\hypertarget{classLinkCode_a01687d2cf729290d4339c5765ffe0200}{
bool {\bfseries is\_\-asym\_\-link} () const }
\label{classLinkCode_a01687d2cf729290d4339c5765ffe0200}

\item 
\hypertarget{classLinkCode_af90c9466a11d29ad95fb29710170a85e}{
bool {\bfseries is\_\-sym\_\-link} () const }
\label{classLinkCode_af90c9466a11d29ad95fb29710170a85e}

\item 
\hypertarget{classLinkCode_a5001417cb4c75a2ee098e132725ca63d}{
bool {\bfseries is\_\-lost\_\-link} () const }
\label{classLinkCode_a5001417cb4c75a2ee098e132725ca63d}

\item 
\hypertarget{classLinkCode_ab77c47984e133e8ca085c4b1e190343e}{
bool {\bfseries is\_\-mpr\_\-neighbor} () const }
\label{classLinkCode_ab77c47984e133e8ca085c4b1e190343e}

\item 
\hypertarget{classLinkCode_ad50cb843151abdbf0fea0a6eadc6a9e3}{
bool {\bfseries is\_\-sym\_\-neighbor} () const }
\label{classLinkCode_ad50cb843151abdbf0fea0a6eadc6a9e3}

\item 
\hypertarget{classLinkCode_a9af66dca32232d311bd3241ba52e3375}{
bool {\bfseries is\_\-not\_\-neighbor} () const }
\label{classLinkCode_a9af66dca32232d311bd3241ba52e3375}

\item 
\hypertarget{classLinkCode_a79650ea9a04f1226e5642f0dbb4d5c5c}{
string {\bfseries str} () const }
\label{classLinkCode_a79650ea9a04f1226e5642f0dbb4d5c5c}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLinkCode_a77745d1f767f559e1508f90c51a5f62c}{
void {\bfseries throw\_\-if\_\-not\_\-valid} ()}
\label{classLinkCode_a77745d1f767f559e1508f90c51a5f62c}

\item 
\hypertarget{classLinkCode_ababb2e20516b48ddfa89cfd66efee203}{
bool {\bfseries is\_\-valid} ()}
\label{classLinkCode_ababb2e20516b48ddfa89cfd66efee203}

\end{DoxyCompactItemize}
\subsection*{Static Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLinkCode_a46e6bc1c11fa074c4eb9d20dd9ac605c}{
static const char $\ast$ {\bfseries linktype\_\-to\_\-str} (\hyperlink{structOlsrTypes_a13b918d8bafa2fd850a7404fcb6cf5d2}{OlsrTypes::LinkType} t)}
\label{classLinkCode_a46e6bc1c11fa074c4eb9d20dd9ac605c}

\item 
\hypertarget{classLinkCode_a37a93e0db4591a820a00de28c895f015}{
static const char $\ast$ {\bfseries neighbortype\_\-to\_\-str} (\hyperlink{structOlsrTypes_a49660be3860e0e723a6d6450b31a1eb9}{OlsrTypes::NeighborType} t)}
\label{classLinkCode_a37a93e0db4591a820a00de28c895f015}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classLinkCode_ac29feb4b2ecff2ec85cd6978ce9717e4}{
uint8\_\-t {\bfseries \_\-linkcode}}
\label{classLinkCode_ac29feb4b2ecff2ec85cd6978ce9717e4}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Helper class which represents \hyperlink{protocolthe-p}{the} link code used in a link tuple. 

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