struct IfMgrIP

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

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types


Detailed Description

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 IfMgrIPv4Atom and IfMgrIPv6Atom.

Example usage:


 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();
 }

typedef IfMgrIPv4Atom Atom

Atom

typedef IfMgrIPv6Atom Atom

Atom


Generated by: pavlin on possum.icir.org on Thu Jul 8 23:48:24 2004, using kdoc $.