KaMPIng 0.1.0
(Near) zero-overhead C++ MPI bindings.
|
Encapsulates the rank of a PE. This is needed for p2p communication and rooted MPI
collectives like MPI_Gather
.
More...
#include <parameter_objects.hpp>
Public Member Functions | |
RankDataBuffer (size_t rank) | |
Constructor for Rank. | |
RankDataBuffer (int rank) | |
Constructor for Rank. | |
int | rank_signed () const |
Returns the rank as int . | |
RankDataBuffer< rank_type, parameter_type > | clone () |
Get a copy of this RankDataBuffer. | |
Static Public Attributes | |
static constexpr ParameterType | parameter_type = type |
The type of parameter this object encapsulates. | |
static constexpr RankType | rank_type = RankType::value |
The rank type. | |
Encapsulates the rank of a PE. This is needed for p2p communication and rooted MPI
collectives like MPI_Gather
.
This is a specialized DataBuffer
. Its main functionality is to provide ease-of-use functionality in the form of the methods rank()
and rank_signed()
, which return the encapsulated rank and are easier to read in the code.
|
inline |
Constructor for Rank.
rank | Rank of the PE. |
|
inline |
Constructor for Rank.
rank | Rank of the PE. |
|
inline |
Get a copy of this RankDataBuffer.
|
inline |
Returns the rank as int
.
int
.