#include <BaseLookup.h>
Inheritance diagram for AbstractLookup:
Public Member Functions | |
virtual | ~AbstractLookup () |
Virtual destructor. | |
virtual void | lookup (const OverlayKey &key, int numSiblings=1, int hopCountMax=0, LookupListener *listener=NULL)=0 |
Lookup siblings for 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 void AbstractLookup::lookup | ( | const OverlayKey & | key, | |
int | numSiblings = 1 , |
|||
int | hopCountMax = 0 , |
|||
LookupListener * | listener = NULL | |||
) | [pure virtual] |
Lookup siblings for a key.
key | The key to lookup | |
numSiblings | Number of siblings to lookup | |
hopCountMax | Maximum hop count | |
listener | Listener to inform, when the lookup is done |
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 uint AbstractLookup::getAccumulatedHops | ( | ) | const [pure virtual] |
Returns the total number of hops for all lookup paths.
Implemented in BaseLookup.