\hypertarget{structIfMgrIP}{
\section{IfMgrIP$<$ A $>$ Struct Template Reference}
\label{structIfMgrIP}\index{IfMgrIP@{IfMgrIP}}
}


Class specialized to provide a way to find IfMgrIPv\{4,6\}Atom given IPv\{4,6\} type.  




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



\subsection{Detailed Description}
\subsubsection*{template$<$typename A$>$ struct IfMgrIP$<$ A $>$}

Class specialized to provide a way to find IfMgrIPv\{4,6\}Atom given IPv\{4,6\} type. This is useful for code that is solely interested in common attributes and methods of \hyperlink{classIfMgrIPv4Atom}{IfMgrIPv4Atom} and \hyperlink{classIfMgrIPv6Atom}{IfMgrIPv6Atom}.

Example usage: 
\begin{DoxyPre}
 template <typename a>="">
 bool addr\_exists\_and\_enabled(IfMgrVifAtom& vif, const A& a)
 \{
     const typename IfMgrIP<A>::Atom* a = vif.find\_addr(a);
     return a != 0 \&\& a->enabled();
 \}
 \end{DoxyPre}
 

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