AbstractLookup Class Reference

#include <BaseLookup.h>

Inheritance diagram for AbstractLookup:

BaseLookup List of all members.

Detailed Description

This class declares an abstract iterative lookup.

Author:
Sebastian Mies


Public Member Functions

virtual ~AbstractLookup ()
 Virtual destructor.
virtual void lookup (const OverlayKey &key, uint numNeighbors=0, int hopCountMax=0, LookupListener *listener=NULL)=0
 Lookup a neighborhood or a key.
virtual const NodeVectorgetResult () const =0
 Returns the result of the lookup.
virtual bool isValid () const =0
 Returns true, if the lookup was successful.
virtual uint getAccumulatedHops () const =0
 Returns the total number of hops for all lookup paths.


Constructor & Destructor Documentation

AbstractLookup::~AbstractLookup (  )  [virtual]

Virtual destructor.

00037 {}


Member Function Documentation

virtual uint AbstractLookup::getAccumulatedHops (  )  const [pure virtual]

Returns the total number of hops for all lookup paths.

Returns:
The accumulated number of hops.

Implemented in BaseLookup.

virtual const NodeVector& AbstractLookup::getResult (  )  const [pure virtual]

Returns the result of the lookup.

Returns:
The result node vector.

Implemented in BaseLookup.

virtual bool AbstractLookup::isValid (  )  const [pure virtual]

Returns true, if the lookup was successful.

Returns:
true, if the lookup was successful.

Implemented in BaseLookup.

virtual void AbstractLookup::lookup ( const OverlayKey key,
uint  numNeighbors = 0,
int  hopCountMax = 0,
LookupListener listener = NULL 
) [pure virtual]

Lookup a neighborhood or a key.

Parameters:
key The key to lookup
numNeighbors Number of Neighbors to lookup
hopCountMax Maximum hop count
listener Listener to inform, when the lookup is done

Implemented in BaseLookup.


The documentation for this class was generated from the following files:
Generated on Fri May 11 14:52:39 2007 for ITM OverSim by  doxygen 1.4.7