struct RtPtrComparitor
|
A comparitor for the purposes of sorting containers of RouteEntry objects. More... |
|
|
Public Methods
A comparitor for the purposes of sorting containers of RouteEntry objects.
It examines the data rather than using the address of pointers. The
latter approach makes testing difficult on different platforms since the
tests may inadvertantly make assumptions about the memory layout. The
comparison is arbitrary, it just has to be consistent and reversible.
IFF speed proves to be an issue, RouteEntry can be changed to be an element
in an intrusive linked list that has a sentinel embedded in the
RouteEntryOrigin.
[const]
Generated by: pavlin on possum.icir.org on Mon Jun 9 13:24:02 2003, using kdoc 2.0a54+XORP. |