#include <BaseLookup.h>
Inheritance diagram for AbstractLookup:
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 NodeVector & | getResult () 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. |
virtual uint AbstractLookup::getAccumulatedHops | ( | ) | const [pure virtual] |
Returns the total number of hops for all lookup paths.
Implemented in BaseLookup.
virtual const NodeVector& AbstractLookup::getResult | ( | ) | const [pure virtual] |
virtual bool AbstractLookup::isValid | ( | ) | const [pure virtual] |
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.
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.