\hypertarget{classIfMgrIfTree}{
\section{IfMgrIfTree Class Reference}
\label{classIfMgrIfTree}\index{IfMgrIfTree@{IfMgrIfTree}}
}


Interface configuration tree container.  




{\ttfamily \#include $<$ifmgr\_\-atoms.hh$>$}

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfMgrIfTree_ab5868ad914e3a9c5b9a5daf7b223e2ee}{
typedef map$<$ string, \hyperlink{classIfMgrIfAtom}{IfMgrIfAtom} $>$ {\bfseries IfMap}}
\label{classIfMgrIfTree_ab5868ad914e3a9c5b9a5daf7b223e2ee}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfMgrIfTree_acb627b5d99c7823f63d5d5130c2b856c}{
const IfMap \& \hyperlink{classIfMgrIfTree_acb627b5d99c7823f63d5d5130c2b856c}{interfaces} () const }
\label{classIfMgrIfTree_acb627b5d99c7823f63d5d5130c2b856c}

\begin{DoxyCompactList}\small\item\em Interface collection accessor. \item\end{DoxyCompactList}\item 
\hypertarget{classIfMgrIfTree_a378efd91cd304f80f1227d971e36642c}{
IfMap \& \hyperlink{classIfMgrIfTree_a378efd91cd304f80f1227d971e36642c}{interfaces} ()}
\label{classIfMgrIfTree_a378efd91cd304f80f1227d971e36642c}

\begin{DoxyCompactList}\small\item\em Interface collection accessor. \item\end{DoxyCompactList}\item 
\hypertarget{classIfMgrIfTree_aaf4875c1863b612f0eef14896f695ec7}{
void \hyperlink{classIfMgrIfTree_aaf4875c1863b612f0eef14896f695ec7}{clear} ()}
\label{classIfMgrIfTree_aaf4875c1863b612f0eef14896f695ec7}

\begin{DoxyCompactList}\small\item\em Clear all interface state. \item\end{DoxyCompactList}\item 
const \hyperlink{classIfMgrIfAtom}{IfMgrIfAtom} $\ast$ \hyperlink{classIfMgrIfTree_a68e367174e43f37478c048e56ee50442}{find\_\-interface} (const string \&ifname) const 
\begin{DoxyCompactList}\small\item\em Find interface. \item\end{DoxyCompactList}\item 
\hyperlink{classIfMgrIfAtom}{IfMgrIfAtom} $\ast$ \hyperlink{classIfMgrIfTree_a7294a01e7d8ca9ee39b8bbab262cc908}{find\_\-interface} (const string \&ifname)
\begin{DoxyCompactList}\small\item\em Find interface. \item\end{DoxyCompactList}\item 
const \hyperlink{classIfMgrVifAtom}{IfMgrVifAtom} $\ast$ \hyperlink{classIfMgrIfTree_a1848955472536be1eb0cfaafe1a8efa3}{find\_\-vif} (const string \&ifname, const string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Find virtual interface. \item\end{DoxyCompactList}\item 
\hyperlink{classIfMgrVifAtom}{IfMgrVifAtom} $\ast$ \hyperlink{classIfMgrIfTree_a49644ca350484c0678bd50545e6749c2}{find\_\-vif} (const string \&ifname, const string \&vifname)
\begin{DoxyCompactList}\small\item\em Find virtual interface. \item\end{DoxyCompactList}\item 
const \hyperlink{classIfMgrIPv4Atom}{IfMgrIPv4Atom} $\ast$ \hyperlink{classIfMgrIfTree_a7b65aaa82ecd74a2ebba8ece98b8fd87}{find\_\-addr} (const string \&ifname, const string \&vifname, const \hyperlink{classIPv4}{IPv4} \&addr) const 
\begin{DoxyCompactList}\small\item\em Find \hyperlink{classIPv4}{IPv4} address structure. \item\end{DoxyCompactList}\item 
\hyperlink{classIfMgrIPv4Atom}{IfMgrIPv4Atom} $\ast$ \hyperlink{classIfMgrIfTree_a6e9f0dc6d37e4358f3eab74e2696888f}{find\_\-addr} (const string \&ifname, const string \&vifname, const \hyperlink{classIPv4}{IPv4} \&addr)
\begin{DoxyCompactList}\small\item\em Find \hyperlink{classIPv4}{IPv4} address structure. \item\end{DoxyCompactList}\item 
const \hyperlink{classIfMgrIPv6Atom}{IfMgrIPv6Atom} $\ast$ \hyperlink{classIfMgrIfTree_adc6cbb316374c80fa843b59c5a3d71f7}{find\_\-addr} (const string \&ifname, const string \&vifname, const \hyperlink{classIPv6}{IPv6} \&addr) const 
\begin{DoxyCompactList}\small\item\em Find \hyperlink{classIPv6}{IPv6} address structure. \item\end{DoxyCompactList}\item 
\hyperlink{classIfMgrIPv6Atom}{IfMgrIPv6Atom} $\ast$ \hyperlink{classIfMgrIfTree_afe10c292e3319dbf8ab24941c8547b54}{find\_\-addr} (const string \&ifname, const string \&vifname, const \hyperlink{classIPv6}{IPv6} \&addr)
\begin{DoxyCompactList}\small\item\em Find \hyperlink{classIPv6}{IPv6} address structure. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_a55c1c25b86ba8279312be9f81559906b}{operator==} (const \hyperlink{classIfMgrIfTree}{IfMgrIfTree} \&o) const 
\begin{DoxyCompactList}\small\item\em Equality operator. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_a18e0da217a14aab627c899a1e2dcc280}{is\_\-my\_\-addr} (const \hyperlink{classIPv4}{IPv4} \&addr, string \&ifname, string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Test if an \hyperlink{classIPv4}{IPv4} address belongs to an interface. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_ac4d2dfa6e113b19e150b36c92857e0d4}{is\_\-my\_\-addr} (const \hyperlink{classIPv6}{IPv6} \&addr, string \&ifname, string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Test if an \hyperlink{classIPv6}{IPv6} address belongs to an interface. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_a6c009759850a491c2c69f149d0d1907e}{is\_\-my\_\-addr} (const \hyperlink{classIPvX}{IPvX} \&addr, string \&ifname, string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Test if an \hyperlink{classIPvX}{IPvX} address belongs to an interface. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_a960ae08b12c94290970fe36e7ca0de4c}{is\_\-directly\_\-connected} (const \hyperlink{classIPv4}{IPv4} \&addr, string \&ifname, string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Test if an \hyperlink{classIPv4}{IPv4} address is directly connected to an interface. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_aa83cd994618f670305f01aa8d94e08dc}{is\_\-directly\_\-connected} (const \hyperlink{classIPv6}{IPv6} \&addr, string \&ifname, string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Test if an \hyperlink{classIPv6}{IPv6} address is directly connected to an interface. \item\end{DoxyCompactList}\item 
bool \hyperlink{classIfMgrIfTree_ac280236df19962645ade464d92ed66fd}{is\_\-directly\_\-connected} (const \hyperlink{classIPvX}{IPvX} \&addr, string \&ifname, string \&vifname) const 
\begin{DoxyCompactList}\small\item\em Test if an \hyperlink{classIPvX}{IPvX} address is directly connected to an interface. \item\end{DoxyCompactList}\item 
\hypertarget{classIfMgrIfTree_a75ff7c90ec01a0914fc0b26ae06fb5d3}{
string {\bfseries toString} () const }
\label{classIfMgrIfTree_a75ff7c90ec01a0914fc0b26ae06fb5d3}

\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classIfMgrIfTree_a15d53869c9bbabd24bb0fa49f95620d1}{
IfMap {\bfseries \_\-interfaces}}
\label{classIfMgrIfTree_a15d53869c9bbabd24bb0fa49f95620d1}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Interface configuration tree container. The \hyperlink{classIfMgrIfTree}{IfMgrIfTree} is \hyperlink{protocolthe-p}{the} top-\/level container of interface configuration state. The tree contains a collection of \hyperlink{classIfMgrIfAtom}{IfMgrIfAtom} objects, each of which represents \hyperlink{protocolthe-p}{the} configuration state of a physical interface. 

\subsection{Member Function Documentation}
\hypertarget{classIfMgrIfTree_a7b65aaa82ecd74a2ebba8ece98b8fd87}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-addr@{find\_\-addr}}
\index{find\_\-addr@{find\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf IfMgrIPv4Atom} $\ast$ IfMgrIfTree::find\_\-addr (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname, }
\item[{const {\bf IPv4} \&}]{addr}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a7b65aaa82ecd74a2ebba8ece98b8fd87}


Find \hyperlink{classIPv4}{IPv4} address structure. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface responsible for address. \\
\hline
{\em vifname} & name of virtual interface responsible for address. \\
\hline
{\em addr} & \hyperlink{classIPv4}{IPv4} address. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to virtual interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a6e9f0dc6d37e4358f3eab74e2696888f}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-addr@{find\_\-addr}}
\index{find\_\-addr@{find\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IfMgrIPv4Atom} $\ast$ IfMgrIfTree::find\_\-addr (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname, }
\item[{const {\bf IPv4} \&}]{addr}
\end{DoxyParamCaption}
)}}
\label{classIfMgrIfTree_a6e9f0dc6d37e4358f3eab74e2696888f}


Find \hyperlink{classIPv4}{IPv4} address structure. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface responsible for address. \\
\hline
{\em vifname} & name of virtual interface responsible for address. \\
\hline
{\em addr} & \hyperlink{classIPv4}{IPv4} address. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to virtual interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_adc6cbb316374c80fa843b59c5a3d71f7}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-addr@{find\_\-addr}}
\index{find\_\-addr@{find\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf IfMgrIPv6Atom} $\ast$ IfMgrIfTree::find\_\-addr (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname, }
\item[{const {\bf IPv6} \&}]{addr}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_adc6cbb316374c80fa843b59c5a3d71f7}


Find \hyperlink{classIPv6}{IPv6} address structure. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface responsible for address. \\
\hline
{\em vifname} & name of virtual interface responsible for address. \\
\hline
{\em addr} & \hyperlink{classIPv6}{IPv6} address. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to virtual interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_afe10c292e3319dbf8ab24941c8547b54}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-addr@{find\_\-addr}}
\index{find\_\-addr@{find\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IfMgrIPv6Atom} $\ast$ IfMgrIfTree::find\_\-addr (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname, }
\item[{const {\bf IPv6} \&}]{addr}
\end{DoxyParamCaption}
)}}
\label{classIfMgrIfTree_afe10c292e3319dbf8ab24941c8547b54}


Find \hyperlink{classIPv6}{IPv6} address structure. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface responsible for address. \\
\hline
{\em vifname} & name of virtual interface responsible for address. \\
\hline
{\em addr} & \hyperlink{classIPv6}{IPv6} address. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to virtual interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a68e367174e43f37478c048e56ee50442}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-interface@{find\_\-interface}}
\index{find\_\-interface@{find\_\-interface}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-interface}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf IfMgrIfAtom} $\ast$ IfMgrIfTree::find\_\-interface (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a68e367174e43f37478c048e56ee50442}


Find interface. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface to find. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a7294a01e7d8ca9ee39b8bbab262cc908}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-interface@{find\_\-interface}}
\index{find\_\-interface@{find\_\-interface}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-interface}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IfMgrIfAtom} $\ast$ IfMgrIfTree::find\_\-interface (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname}
\end{DoxyParamCaption}
)}}
\label{classIfMgrIfTree_a7294a01e7d8ca9ee39b8bbab262cc908}


Find interface. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface to find. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a1848955472536be1eb0cfaafe1a8efa3}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-vif@{find\_\-vif}}
\index{find\_\-vif@{find\_\-vif}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-vif}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf IfMgrVifAtom} $\ast$ IfMgrIfTree::find\_\-vif (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a1848955472536be1eb0cfaafe1a8efa3}


Find virtual interface. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface responsible for virtual interface. \\
\hline
{\em vifname} & name of virtual interface. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to virtual interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a49644ca350484c0678bd50545e6749c2}{
\index{IfMgrIfTree@{IfMgrIfTree}!find\_\-vif@{find\_\-vif}}
\index{find\_\-vif@{find\_\-vif}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{find\_\-vif}]{\setlength{\rightskip}{0pt plus 5cm}{\bf IfMgrVifAtom} $\ast$ IfMgrIfTree::find\_\-vif (
\begin{DoxyParamCaption}
\item[{const string \&}]{ifname, }
\item[{const string \&}]{vifname}
\end{DoxyParamCaption}
)}}
\label{classIfMgrIfTree_a49644ca350484c0678bd50545e6749c2}


Find virtual interface. 


\begin{DoxyParams}{Parameters}
{\em ifname} & name of interface responsible for virtual interface. \\
\hline
{\em vifname} & name of virtual interface. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to virtual interface structure on success, 0 otherwise. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a960ae08b12c94290970fe36e7ca0de4c}{
\index{IfMgrIfTree@{IfMgrIfTree}!is\_\-directly\_\-connected@{is\_\-directly\_\-connected}}
\index{is\_\-directly\_\-connected@{is\_\-directly\_\-connected}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{is\_\-directly\_\-connected}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::is\_\-directly\_\-connected (
\begin{DoxyParamCaption}
\item[{const {\bf IPv4} \&}]{addr, }
\item[{string \&}]{ifname, }
\item[{string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a960ae08b12c94290970fe36e7ca0de4c}


Test if an \hyperlink{classIPv4}{IPv4} address is directly connected to an interface. 

If an interface toward an address is down, then \hyperlink{protocolthe-p}{the} address is not considered as directly connected.


\begin{DoxyParams}{Parameters}
{\em addr} & \hyperlink{protocolthe-p}{the} address to test. \\
\hline
{\em ifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} interface toward \hyperlink{protocolthe-p}{the} address if \hyperlink{protocolthe-p}{the} address is directly connected otherwise an empty string. \\
\hline
{\em vifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} vif toward \hyperlink{protocolthe-p}{the} address if \hyperlink{protocolthe-p}{the} address is directly connected otherwise an empty string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address is directly connected, otherwise false. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_ac280236df19962645ade464d92ed66fd}{
\index{IfMgrIfTree@{IfMgrIfTree}!is\_\-directly\_\-connected@{is\_\-directly\_\-connected}}
\index{is\_\-directly\_\-connected@{is\_\-directly\_\-connected}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{is\_\-directly\_\-connected}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::is\_\-directly\_\-connected (
\begin{DoxyParamCaption}
\item[{const {\bf IPvX} \&}]{addr, }
\item[{string \&}]{ifname, }
\item[{string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_ac280236df19962645ade464d92ed66fd}


Test if an \hyperlink{classIPvX}{IPvX} address is directly connected to an interface. 

If an interface toward an address is down, then \hyperlink{protocolthe-p}{the} address is not considered as directly connected.


\begin{DoxyParams}{Parameters}
{\em addr} & \hyperlink{protocolthe-p}{the} address to test. \\
\hline
{\em ifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} interface toward \hyperlink{protocolthe-p}{the} address if \hyperlink{protocolthe-p}{the} address is directly connected otherwise an empty string. \\
\hline
{\em vifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} vif toward \hyperlink{protocolthe-p}{the} address if \hyperlink{protocolthe-p}{the} address is directly connected otherwise an empty string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address is directly connected, otherwise false. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_aa83cd994618f670305f01aa8d94e08dc}{
\index{IfMgrIfTree@{IfMgrIfTree}!is\_\-directly\_\-connected@{is\_\-directly\_\-connected}}
\index{is\_\-directly\_\-connected@{is\_\-directly\_\-connected}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{is\_\-directly\_\-connected}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::is\_\-directly\_\-connected (
\begin{DoxyParamCaption}
\item[{const {\bf IPv6} \&}]{addr, }
\item[{string \&}]{ifname, }
\item[{string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_aa83cd994618f670305f01aa8d94e08dc}


Test if an \hyperlink{classIPv6}{IPv6} address is directly connected to an interface. 

If an interface toward an address is down, then \hyperlink{protocolthe-p}{the} address is not considered as directly connected.


\begin{DoxyParams}{Parameters}
{\em addr} & \hyperlink{protocolthe-p}{the} address to test. \\
\hline
{\em ifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} interface toward \hyperlink{protocolthe-p}{the} address if \hyperlink{protocolthe-p}{the} address is directly connected otherwise an empty string. \\
\hline
{\em vifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} vif toward \hyperlink{protocolthe-p}{the} address if \hyperlink{protocolthe-p}{the} address is directly connected otherwise an empty string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address is directly connected, otherwise false. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a18e0da217a14aab627c899a1e2dcc280}{
\index{IfMgrIfTree@{IfMgrIfTree}!is\_\-my\_\-addr@{is\_\-my\_\-addr}}
\index{is\_\-my\_\-addr@{is\_\-my\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{is\_\-my\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::is\_\-my\_\-addr (
\begin{DoxyParamCaption}
\item[{const {\bf IPv4} \&}]{addr, }
\item[{string \&}]{ifname, }
\item[{string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a18e0da217a14aab627c899a1e2dcc280}


Test if an \hyperlink{classIPv4}{IPv4} address belongs to an interface. 

If an interface with \hyperlink{protocolthe-p}{the} address is down, then \hyperlink{protocolthe-p}{the} address is not considered to belong to that interface.


\begin{DoxyParams}{Parameters}
{\em addr} & \hyperlink{protocolthe-p}{the} address to test. \\
\hline
{\em ifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} interface \hyperlink{protocolthe-p}{the} address belongs to, or an empty string. \\
\hline
{\em vifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} vif \hyperlink{protocolthe-p}{the} address belongs to, or an empty string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address belongs to an interface, otherwise false. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_ac4d2dfa6e113b19e150b36c92857e0d4}{
\index{IfMgrIfTree@{IfMgrIfTree}!is\_\-my\_\-addr@{is\_\-my\_\-addr}}
\index{is\_\-my\_\-addr@{is\_\-my\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{is\_\-my\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::is\_\-my\_\-addr (
\begin{DoxyParamCaption}
\item[{const {\bf IPv6} \&}]{addr, }
\item[{string \&}]{ifname, }
\item[{string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_ac4d2dfa6e113b19e150b36c92857e0d4}


Test if an \hyperlink{classIPv6}{IPv6} address belongs to an interface. 

If an interface with \hyperlink{protocolthe-p}{the} address is down, then \hyperlink{protocolthe-p}{the} address is not considered to belong to that interface.


\begin{DoxyParams}{Parameters}
{\em addr} & \hyperlink{protocolthe-p}{the} address to test. \\
\hline
{\em ifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} interface \hyperlink{protocolthe-p}{the} address belongs to, or an empty string. \\
\hline
{\em vifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} vif \hyperlink{protocolthe-p}{the} address belongs to, or an empty string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address belongs to an interface, otherwise false. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a6c009759850a491c2c69f149d0d1907e}{
\index{IfMgrIfTree@{IfMgrIfTree}!is\_\-my\_\-addr@{is\_\-my\_\-addr}}
\index{is\_\-my\_\-addr@{is\_\-my\_\-addr}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{is\_\-my\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::is\_\-my\_\-addr (
\begin{DoxyParamCaption}
\item[{const {\bf IPvX} \&}]{addr, }
\item[{string \&}]{ifname, }
\item[{string \&}]{vifname}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a6c009759850a491c2c69f149d0d1907e}


Test if an \hyperlink{classIPvX}{IPvX} address belongs to an interface. 

If an interface with \hyperlink{protocolthe-p}{the} address is down, then \hyperlink{protocolthe-p}{the} address is not considered to belong to that interface.


\begin{DoxyParams}{Parameters}
{\em addr} & \hyperlink{protocolthe-p}{the} address to test. \\
\hline
{\em ifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} interface \hyperlink{protocolthe-p}{the} address belongs to, or an empty string. \\
\hline
{\em vifname} & \hyperlink{protocolthe-p}{the} return-\/by-\/reference name of \hyperlink{protocolthe-p}{the} vif \hyperlink{protocolthe-p}{the} address belongs to, or an empty string. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address belongs to an interface, otherwise false. 
\end{DoxyReturn}
\hypertarget{classIfMgrIfTree_a55c1c25b86ba8279312be9f81559906b}{
\index{IfMgrIfTree@{IfMgrIfTree}!operator==@{operator==}}
\index{operator==@{operator==}!IfMgrIfTree@{IfMgrIfTree}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}bool IfMgrIfTree::operator== (
\begin{DoxyParamCaption}
\item[{const {\bf IfMgrIfTree} \&}]{o}
\end{DoxyParamCaption}
) const}}
\label{classIfMgrIfTree_a55c1c25b86ba8279312be9f81559906b}


Equality operator. 


\begin{DoxyParams}{Parameters}
{\em o} & tree to compare against. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if this instance and o are \hyperlink{protocolthe-p}{the} same, false otherwise. 
\end{DoxyReturn}


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