KaMPIng 0.1.0
(Near) zero-overhead C++ MPI bindings.
Loading...
Searching...
No Matches
kamping::internal::RankDataBuffer< RankType::any, type > Class Template Reference

Encapsulates the rank of a PE. This is needed for p2p communication and rooted MPI collectives like MPI_Gather. More...

#include <parameter_objects.hpp>

Inheritance diagram for kamping::internal::RankDataBuffer< RankType::any, type >:
kamping::internal::ParameterObjectBase

Public Member Functions

int rank_signed () const
 Returns the rank as int.
 
RankDataBuffer< rank_type, parameter_typeclone ()
 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::any
 The rank type.
 

Detailed Description

template<ParameterType type>
class kamping::internal::RankDataBuffer< RankType::any, type >

Encapsulates the rank of a PE. This is needed for p2p communication and rooted MPI collectives like MPI_Gather.

This is a specialization for MPI_ANY_SOURCE which only implements rank_signed(), without allocating any additional memory.

Member Function Documentation

◆ clone()

Get a copy of this RankDataBuffer.

Returns
A copy of this RankDataBuffer.

◆ rank_signed()

template<ParameterType type>
int kamping::internal::RankDataBuffer< RankType::any, type >::rank_signed ( ) const
inline

Returns the rank as int.

Returns
Rank as int.

The documentation for this class was generated from the following file: