template<
typename RequestType,
typename AnswerType>
class Utilities::MPI::ConsensusAlgorithms::Process< RequestType, AnswerType >
A base class for concrete implementations of classes that provide the information that the algorithms derived from the ConsensusAlgorithms::Interface base class require. The main functionality of this class is to return a list of process ranks this process wants data from and to deal with the optional payload of the messages sent/received by the ConsensusAlgorithm classes.
There are two kinds of messages:
- send/request message: A message consisting of a data request which should be answered by another process. This message is considered as a request message by the receiving rank.
- receive message: The answer to a send/request message.
- Template Parameters
-
RequestType | The type of the elements of the vector to sent. |
AnswerType | The type of the elements of the vector to received. |
- Note
- Since the payloads of the messages are optional, users have to deal with buffers themselves. The ConsensusAlgorithm classes (1) deliver only references to empty vectors (of size 0) the data to be sent can be inserted to or read from, and (2) communicate these vectors blindly.
- Deprecated:
- Instead of deriving a class from this base class and providing a corresponding object to one of the run() functions, use the free functions in this namespace that take function objects as arguments.
Definition at line 161 of file mpi_consensus_algorithms.h.