◆ calcClosestRedirect()
virtual minhton::NodeInfo minhton::SearchExactAlgorithmGeneral::calcClosestRedirect |
( |
double |
dest_value | ) |
|
|
protectedpure virtual |
◆ performSearchExact()
void minhton::SearchExactAlgorithmGeneral::performSearchExact |
( |
const minhton::NodeInfo & |
destination, |
|
|
std::shared_ptr< MessageSEVariant > |
query |
|
) |
| |
|
overridevirtual |
The actual implementation of the search exact procedure.
We do not do this in the processSearchExact method because we also locally need to call this method.
Therefore processSearchExact simply calls this method.
Typical Usage:
void performSearchExact(const minhton::NodeInfo &destination, std::shared_ptr< MessageSEVariant > query) override
Definition search_exact_algorithm_general.cpp:29
- Parameters
-
destination_node | the desired destination node |
query | the content intended for the destination_node |
Implements minhton::SearchExactAlgorithmInterface.
◆ process()
void minhton::SearchExactAlgorithmGeneral::process |
( |
const MessageVariant & |
msg | ) |
|
|
overridevirtual |
◆ processSearchExact()
This method will be called when we receive a SEARCH_EXACT message.
A node wants to forward a message to another node, but only knows the logical position in the tree.
If we are the destination node we process the message via the recv-method. Otherwise we forward the message further.
Typical Usage:
void processSearchExact(const minhton::MessageSearchExact &msg)
Definition search_exact_algorithm_general.cpp:24
- Parameters
-
msg | the message we received and want to process |
The documentation for this class was generated from the following files: