\hypertarget{classMre}{
\section{Mre$<$ E $>$ Class Template Reference}
\label{classMre}\index{Mre@{Mre}}
}


Template class for \hyperlink{protocolthe-p}{the} Multicast \hyperlink{classRouting}{Routing} Entry.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMre_a1985eff71b7096cf1bf32af7dacb9ed6}{Mre} (const \hyperlink{classIPvX}{IPvX} \&source\_\-addr, const \hyperlink{classIPvX}{IPvX} \&group\_\-addr)
\begin{DoxyCompactList}\small\item\em Constructor for a given source and group address. \item\end{DoxyCompactList}\item 
\hypertarget{classMre_a4ab05689a9802ded18b88b760cf59017}{
virtual \hyperlink{classMre_a4ab05689a9802ded18b88b760cf59017}{$\sim$Mre} ()}
\label{classMre_a4ab05689a9802ded18b88b760cf59017}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
const \hyperlink{classSourceGroup}{SourceGroup} \& \hyperlink{classMre_a852fd1949a61889f5364315d1a779e4b}{source\_\-group} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} source-\/group entry. \item\end{DoxyCompactList}\item 
const \hyperlink{classIPvX}{IPvX} \& \hyperlink{classMre_a749efa94ff33823d84d4290fcc46d8be}{source\_\-addr} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} source address. \item\end{DoxyCompactList}\item 
const \hyperlink{classIPvX}{IPvX} \& \hyperlink{classMre_ab54fa95cd2a02fe1316c76a42d349c4b}{group\_\-addr} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} group address. \item\end{DoxyCompactList}\item 
bool \hyperlink{classMre_abb961b475f8f99af0972fd978af0c5e7}{is\_\-same\_\-prefix\_\-s} (const \hyperlink{classIPvXNet}{IPvXNet} \&prefix\_\-s) const 
\begin{DoxyCompactList}\small\item\em Test if this entry matches a source address prefix. \item\end{DoxyCompactList}\item 
bool \hyperlink{classMre_a89895c9404129bfe77bac6c7f530a877}{is\_\-same\_\-prefix\_\-g} (const \hyperlink{classIPvXNet}{IPvXNet} \&prefix\_\-g) const 
\begin{DoxyCompactList}\small\item\em Test if this entry matches a group address prefix. \item\end{DoxyCompactList}\item 
const \hyperlink{classMrt}{Mrt}$<$ E $>$::sg\_\-iterator \& \hyperlink{classMre_abaad1eafd7bb0ab6d304304a210ae265}{sg\_\-key} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} source-\/group table iterator. \item\end{DoxyCompactList}\item 
const \hyperlink{classMrt}{Mrt}$<$ E $>$::gs\_\-iterator \& \hyperlink{classMre_a05f12a0aef60d14500d62a6d2699e190}{gs\_\-key} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} group-\/source table iterator. \item\end{DoxyCompactList}\item 
string \hyperlink{classMre_a2ff0d2aa2d0ae6a2963a36a004ea9bb4}{str} () const 
\begin{DoxyCompactList}\small\item\em Convert this entry from binary form to presentation format. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classMre_a8783cfbd9965d6d3cd02c43ed339b51a}{
const \hyperlink{classSourceGroup}{SourceGroup} {\bfseries \_\-source\_\-group}}
\label{classMre_a8783cfbd9965d6d3cd02c43ed339b51a}

\item 
\hypertarget{classMre_a00633be9d8d32e5d0626d1bf0d8e3aec}{
\hyperlink{classMrt}{Mrt}$<$ E $>$::sg\_\-iterator {\bfseries \_\-sg\_\-key}}
\label{classMre_a00633be9d8d32e5d0626d1bf0d8e3aec}

\item 
\hypertarget{classMre_a1cac3cd7c1a488447fac055da85b5316}{
\hyperlink{classMrt}{Mrt}$<$ E $>$::gs\_\-iterator {\bfseries \_\-gs\_\-key}}
\label{classMre_a1cac3cd7c1a488447fac055da85b5316}

\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classMre_aa02b307987959a51efc5a3d72f0e871e}{
class \hyperlink{classMre_aa02b307987959a51efc5a3d72f0e871e}{Mrt$<$ E $>$}}
\label{classMre_aa02b307987959a51efc5a3d72f0e871e}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class E$>$ class Mre$<$ E $>$}

Template class for \hyperlink{protocolthe-p}{the} Multicast \hyperlink{classRouting}{Routing} Entry. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classMre_a1985eff71b7096cf1bf32af7dacb9ed6}{
\index{Mre@{Mre}!Mre@{Mre}}
\index{Mre@{Mre}!Mre@{Mre}}
\subsubsection[{Mre}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ {\bf Mre}$<$ E $>$::{\bf Mre} (
\begin{DoxyParamCaption}
\item[{const {\bf IPvX} \&}]{source\_\-addr, }
\item[{const {\bf IPvX} \&}]{group\_\-addr}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_a1985eff71b7096cf1bf32af7dacb9ed6}


Constructor for a given source and group address. 


\begin{DoxyParams}{Parameters}
{\em source\_\-addr} & \hyperlink{protocolthe-p}{the} source address of \hyperlink{protocolthe-p}{the} entry. \\
\hline
{\em group\_\-addr} & \hyperlink{protocolthe-p}{the} group address of \hyperlink{protocolthe-p}{the} entry. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classMre_ab54fa95cd2a02fe1316c76a42d349c4b}{
\index{Mre@{Mre}!group\_\-addr@{group\_\-addr}}
\index{group\_\-addr@{group\_\-addr}!Mre@{Mre}}
\subsubsection[{group\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ const {\bf IPvX}\& {\bf Mre}$<$ E $>$::group\_\-addr (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_ab54fa95cd2a02fe1316c76a42d349c4b}


Get \hyperlink{protocolthe-p}{the} group address. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} group address of \hyperlink{protocolthe-p}{the} entry. 
\end{DoxyReturn}
\hypertarget{classMre_a05f12a0aef60d14500d62a6d2699e190}{
\index{Mre@{Mre}!gs\_\-key@{gs\_\-key}}
\index{gs\_\-key@{gs\_\-key}!Mre@{Mre}}
\subsubsection[{gs\_\-key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ const {\bf Mrt}$<$E$>$::gs\_\-iterator\& {\bf Mre}$<$ E $>$::gs\_\-key (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_a05f12a0aef60d14500d62a6d2699e190}


Get \hyperlink{protocolthe-p}{the} group-\/source table iterator. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} group-\/source table for this entry. 
\end{DoxyReturn}
\hypertarget{classMre_a89895c9404129bfe77bac6c7f530a877}{
\index{Mre@{Mre}!is\_\-same\_\-prefix\_\-g@{is\_\-same\_\-prefix\_\-g}}
\index{is\_\-same\_\-prefix\_\-g@{is\_\-same\_\-prefix\_\-g}!Mre@{Mre}}
\subsubsection[{is\_\-same\_\-prefix\_\-g}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ bool {\bf Mre}$<$ E $>$::is\_\-same\_\-prefix\_\-g (
\begin{DoxyParamCaption}
\item[{const {\bf IPvXNet} \&}]{prefix\_\-g}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_a89895c9404129bfe77bac6c7f530a877}


Test if this entry matches a group address prefix. 


\begin{DoxyParams}{Parameters}
{\em prefix\_\-g} & \hyperlink{protocolthe-p}{the} group address prefix to match against. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} entry group address belongs to address prefix prefix\_\-g, otherwise false. 
\end{DoxyReturn}
\hypertarget{classMre_abb961b475f8f99af0972fd978af0c5e7}{
\index{Mre@{Mre}!is\_\-same\_\-prefix\_\-s@{is\_\-same\_\-prefix\_\-s}}
\index{is\_\-same\_\-prefix\_\-s@{is\_\-same\_\-prefix\_\-s}!Mre@{Mre}}
\subsubsection[{is\_\-same\_\-prefix\_\-s}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ bool {\bf Mre}$<$ E $>$::is\_\-same\_\-prefix\_\-s (
\begin{DoxyParamCaption}
\item[{const {\bf IPvXNet} \&}]{prefix\_\-s}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_abb961b475f8f99af0972fd978af0c5e7}


Test if this entry matches a source address prefix. 


\begin{DoxyParams}{Parameters}
{\em prefix\_\-s} & \hyperlink{protocolthe-p}{the} source address prefix to match against. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} entry source address belongs to address prefix prefix\_\-s, otherwise false. 
\end{DoxyReturn}
\hypertarget{classMre_abaad1eafd7bb0ab6d304304a210ae265}{
\index{Mre@{Mre}!sg\_\-key@{sg\_\-key}}
\index{sg\_\-key@{sg\_\-key}!Mre@{Mre}}
\subsubsection[{sg\_\-key}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ const {\bf Mrt}$<$E$>$::sg\_\-iterator\& {\bf Mre}$<$ E $>$::sg\_\-key (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_abaad1eafd7bb0ab6d304304a210ae265}


Get \hyperlink{protocolthe-p}{the} source-\/group table iterator. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} source-\/group table iterator for this entry. 
\end{DoxyReturn}
\hypertarget{classMre_a749efa94ff33823d84d4290fcc46d8be}{
\index{Mre@{Mre}!source\_\-addr@{source\_\-addr}}
\index{source\_\-addr@{source\_\-addr}!Mre@{Mre}}
\subsubsection[{source\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ const {\bf IPvX}\& {\bf Mre}$<$ E $>$::source\_\-addr (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_a749efa94ff33823d84d4290fcc46d8be}


Get \hyperlink{protocolthe-p}{the} source address. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} source address of \hyperlink{protocolthe-p}{the} entry. 
\end{DoxyReturn}
\hypertarget{classMre_a852fd1949a61889f5364315d1a779e4b}{
\index{Mre@{Mre}!source\_\-group@{source\_\-group}}
\index{source\_\-group@{source\_\-group}!Mre@{Mre}}
\subsubsection[{source\_\-group}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ const {\bf SourceGroup}\& {\bf Mre}$<$ E $>$::source\_\-group (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_a852fd1949a61889f5364315d1a779e4b}


Get \hyperlink{protocolthe-p}{the} source-\/group entry. 

\begin{DoxyReturn}{Returns}
a reference to \hyperlink{protocolthe-p}{the} \hyperlink{classSourceGroup}{SourceGroup} source-\/group entry 
\end{DoxyReturn}
\hypertarget{classMre_a2ff0d2aa2d0ae6a2963a36a004ea9bb4}{
\index{Mre@{Mre}!str@{str}}
\index{str@{str}!Mre@{Mre}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class E$>$ string {\bf Mre}$<$ E $>$::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classMre_a2ff0d2aa2d0ae6a2963a36a004ea9bb4}


Convert this entry from binary form to presentation format. 

\begin{DoxyReturn}{Returns}
C++ string with \hyperlink{protocolthe-p}{the} human-\/readable ASCII representation of \hyperlink{protocolthe-p}{the} entry. 
\end{DoxyReturn}


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