xorp

IfMgrIP< A > Struct Template Reference

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

#include <ifmgr_atoms.hh>


Detailed Description

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

The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations