\hypertarget{classSgCount}{
\section{SgCount Class Reference}
\label{classSgCount}\index{SgCount@{SgCount}}
}


Class that contains various counters per (S,G) entry.  




{\ttfamily \#include $<$mfea\_\-mrouter.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSgCount_a8d2cd244388e54e29428c51d7a89f8fd}{
\hyperlink{classSgCount_a8d2cd244388e54e29428c51d7a89f8fd}{SgCount} ()}
\label{classSgCount_a8d2cd244388e54e29428c51d7a89f8fd}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
\hyperlink{classSgCount}{SgCount} \& \hyperlink{classSgCount_ab7f6144cb6b702d8c6b585c579c21d12}{operator=} (const \hyperlink{classSgCount}{SgCount} \&sg\_\-count)
\begin{DoxyCompactList}\small\item\em Assignment Operator. \item\end{DoxyCompactList}\item 
\hyperlink{classSgCount}{SgCount} \& \hyperlink{classSgCount_a5dc7e1d13a183a080825fa7961239fc6}{operator+=} (const \hyperlink{classSgCount}{SgCount} \&sg\_\-count)
\begin{DoxyCompactList}\small\item\em Assign-\/Sum Operator. \item\end{DoxyCompactList}\item 
\hyperlink{classSgCount}{SgCount} \& \hyperlink{classSgCount_a298371a08fc476ecf8b76ffe880fb83e}{operator-\/=} (const \hyperlink{classSgCount}{SgCount} \&sg\_\-count)
\begin{DoxyCompactList}\small\item\em Assign-\/Difference Operator. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{classSgCount_a1a886bfb49cb35285ae2c3b9067f98c9}{pktcnt} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} packet count. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{classSgCount_a2ccfe39841b7d71a41a8064e8ea9a0d0}{bytecnt} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} byte count. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{classSgCount_a94d1c07251c34d0207defc5039001a93}{wrong\_\-if} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} number of packets received on wrong interface. \item\end{DoxyCompactList}\item 
void \hyperlink{classSgCount_a6e334c1de14e6755fdabe7aa935f37a3}{set\_\-pktcnt} (size\_\-t v)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} packet count. \item\end{DoxyCompactList}\item 
void \hyperlink{classSgCount_ab74dec033951ff584a64993dc64539b3}{set\_\-bytecnt} (size\_\-t v)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} byte count. \item\end{DoxyCompactList}\item 
void \hyperlink{classSgCount_ab12e87052987f36e063c27709bdc1fb7}{set\_\-wrong\_\-if} (size\_\-t v)
\begin{DoxyCompactList}\small\item\em Set \hyperlink{protocolthe-p}{the} wrong-\/interface packet count. \item\end{DoxyCompactList}\item 
\hypertarget{classSgCount_a3ead4b3769cbd173549231109dcc377e}{
void \hyperlink{classSgCount_a3ead4b3769cbd173549231109dcc377e}{reset} ()}
\label{classSgCount_a3ead4b3769cbd173549231109dcc377e}

\begin{DoxyCompactList}\small\item\em Reset all counters. \item\end{DoxyCompactList}\item 
bool \hyperlink{classSgCount_a7f90bbb03fbe865a51053cad82ea1b13}{is\_\-valid} () const 
\begin{DoxyCompactList}\small\item\em Test if this entry contains valid counters. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSgCount_a438d83fe382f58d6d8c8febeb1a269e9}{
size\_\-t {\bfseries \_\-pktcnt}}
\label{classSgCount_a438d83fe382f58d6d8c8febeb1a269e9}

\item 
\hypertarget{classSgCount_aa51d5b59f7a6628bfb9c4033a22285aa}{
size\_\-t {\bfseries \_\-bytecnt}}
\label{classSgCount_aa51d5b59f7a6628bfb9c4033a22285aa}

\item 
\hypertarget{classSgCount_a9aba253e88fe0d933f4a20015201ae11}{
size\_\-t {\bfseries \_\-wrong\_\-if}}
\label{classSgCount_a9aba253e88fe0d933f4a20015201ae11}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class that contains various counters per (S,G) entry. All counters are related to \hyperlink{protocolthe-p}{the} multicast data packets per (S,G) entry. 

\subsection{Member Function Documentation}
\hypertarget{classSgCount_a2ccfe39841b7d71a41a8064e8ea9a0d0}{
\index{SgCount@{SgCount}!bytecnt@{bytecnt}}
\index{bytecnt@{bytecnt}!SgCount@{SgCount}}
\subsubsection[{bytecnt}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t SgCount::bytecnt (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a2ccfe39841b7d71a41a8064e8ea9a0d0}


Get \hyperlink{protocolthe-p}{the} byte count. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} byte count. 
\end{DoxyReturn}
\hypertarget{classSgCount_a7f90bbb03fbe865a51053cad82ea1b13}{
\index{SgCount@{SgCount}!is\_\-valid@{is\_\-valid}}
\index{is\_\-valid@{is\_\-valid}!SgCount@{SgCount}}
\subsubsection[{is\_\-valid}]{\setlength{\rightskip}{0pt plus 5cm}bool SgCount::is\_\-valid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a7f90bbb03fbe865a51053cad82ea1b13}


Test if this entry contains valid counters. 

\begin{DoxyReturn}{Returns}
true if this entry contains valid counters, otherwise false. 
\end{DoxyReturn}
\hypertarget{classSgCount_a5dc7e1d13a183a080825fa7961239fc6}{
\index{SgCount@{SgCount}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!SgCount@{SgCount}}
\subsubsection[{operator+=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf SgCount}\& SgCount::operator+= (
\begin{DoxyParamCaption}
\item[{const {\bf SgCount} \&}]{sg\_\-count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a5dc7e1d13a183a080825fa7961239fc6}


Assign-\/Sum Operator. 


\begin{DoxyParams}{Parameters}
{\em sg\_\-count} & \hyperlink{protocolthe-p}{the} value to add to this entry. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} entry with \hyperlink{protocolthe-p}{the} new value after sg\_\-count was added. 
\end{DoxyReturn}
\hypertarget{classSgCount_a298371a08fc476ecf8b76ffe880fb83e}{
\index{SgCount@{SgCount}!operator-\/=@{operator-\/=}}
\index{operator-\/=@{operator-\/=}!SgCount@{SgCount}}
\subsubsection[{operator-\/=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf SgCount}\& SgCount::operator-\/= (
\begin{DoxyParamCaption}
\item[{const {\bf SgCount} \&}]{sg\_\-count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a298371a08fc476ecf8b76ffe880fb83e}


Assign-\/Difference Operator. 


\begin{DoxyParams}{Parameters}
{\em sg\_\-count} & \hyperlink{protocolthe-p}{the} value to substract from this entry. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} entry with \hyperlink{protocolthe-p}{the} new value after sg\_\-count was substracted. 
\end{DoxyReturn}
\hypertarget{classSgCount_ab7f6144cb6b702d8c6b585c579c21d12}{
\index{SgCount@{SgCount}!operator=@{operator=}}
\index{operator=@{operator=}!SgCount@{SgCount}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf SgCount}\& SgCount::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf SgCount} \&}]{sg\_\-count}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_ab7f6144cb6b702d8c6b585c579c21d12}


Assignment Operator. 


\begin{DoxyParams}{Parameters}
{\em sg\_\-count} & \hyperlink{protocolthe-p}{the} value to assing to this entry. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} entry with \hyperlink{protocolthe-p}{the} new value assigned. 
\end{DoxyReturn}
\hypertarget{classSgCount_a1a886bfb49cb35285ae2c3b9067f98c9}{
\index{SgCount@{SgCount}!pktcnt@{pktcnt}}
\index{pktcnt@{pktcnt}!SgCount@{SgCount}}
\subsubsection[{pktcnt}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t SgCount::pktcnt (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a1a886bfb49cb35285ae2c3b9067f98c9}


Get \hyperlink{protocolthe-p}{the} packet count. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} packet count. 
\end{DoxyReturn}
\hypertarget{classSgCount_ab74dec033951ff584a64993dc64539b3}{
\index{SgCount@{SgCount}!set\_\-bytecnt@{set\_\-bytecnt}}
\index{set\_\-bytecnt@{set\_\-bytecnt}!SgCount@{SgCount}}
\subsubsection[{set\_\-bytecnt}]{\setlength{\rightskip}{0pt plus 5cm}void SgCount::set\_\-bytecnt (
\begin{DoxyParamCaption}
\item[{size\_\-t}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_ab74dec033951ff584a64993dc64539b3}


Set \hyperlink{protocolthe-p}{the} byte count. 


\begin{DoxyParams}{Parameters}
{\em v} & \hyperlink{protocolthe-p}{the} value to assign to \hyperlink{protocolthe-p}{the} byte count. \\
\hline
\end{DoxyParams}
\hypertarget{classSgCount_a6e334c1de14e6755fdabe7aa935f37a3}{
\index{SgCount@{SgCount}!set\_\-pktcnt@{set\_\-pktcnt}}
\index{set\_\-pktcnt@{set\_\-pktcnt}!SgCount@{SgCount}}
\subsubsection[{set\_\-pktcnt}]{\setlength{\rightskip}{0pt plus 5cm}void SgCount::set\_\-pktcnt (
\begin{DoxyParamCaption}
\item[{size\_\-t}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a6e334c1de14e6755fdabe7aa935f37a3}


Set \hyperlink{protocolthe-p}{the} packet count. 


\begin{DoxyParams}{Parameters}
{\em v} & \hyperlink{protocolthe-p}{the} value to assign to \hyperlink{protocolthe-p}{the} packet count. \\
\hline
\end{DoxyParams}
\hypertarget{classSgCount_ab12e87052987f36e063c27709bdc1fb7}{
\index{SgCount@{SgCount}!set\_\-wrong\_\-if@{set\_\-wrong\_\-if}}
\index{set\_\-wrong\_\-if@{set\_\-wrong\_\-if}!SgCount@{SgCount}}
\subsubsection[{set\_\-wrong\_\-if}]{\setlength{\rightskip}{0pt plus 5cm}void SgCount::set\_\-wrong\_\-if (
\begin{DoxyParamCaption}
\item[{size\_\-t}]{v}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_ab12e87052987f36e063c27709bdc1fb7}


Set \hyperlink{protocolthe-p}{the} wrong-\/interface packet count. 


\begin{DoxyParams}{Parameters}
{\em v} & \hyperlink{protocolthe-p}{the} value to assign to \hyperlink{protocolthe-p}{the} wrong-\/interface packet count. \\
\hline
\end{DoxyParams}
\hypertarget{classSgCount_a94d1c07251c34d0207defc5039001a93}{
\index{SgCount@{SgCount}!wrong\_\-if@{wrong\_\-if}}
\index{wrong\_\-if@{wrong\_\-if}!SgCount@{SgCount}}
\subsubsection[{wrong\_\-if}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t SgCount::wrong\_\-if (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classSgCount_a94d1c07251c34d0207defc5039001a93}


Get \hyperlink{protocolthe-p}{the} number of packets received on wrong interface. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} number of packets received on wrong interface. 
\end{DoxyReturn}


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