struct RtPtrComparitor

A comparitor for the purposes of sorting containers of RouteEntry objects. More...

Definition#include <route_entry.hh>
Template formRtPtrComparitor<typename A>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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.

bool  operator() (const RouteEntry<A>* a, const RouteEntry<A>* b)

operator()

[const]


Generated by: pavlin on possum.icir.org on Mon Jun 9 13:24:02 2003, using kdoc 2.0a54+XORP.