An opaque wrapper for MPI_Comm with a vendor-independent representation without any <mpi.h> header.
More...
Public Types | |
| typedef std::intptr_t | value_type |
| Storage for MPI_Comm (as integer or pointer) More... | |
Public Member Functions | |
| Communicator (const Communicator &) noexcept=default | |
| Copy construct. More... | |
| Communicator (Communicator &&) noexcept=default | |
| Move construct. More... | |
| Communicator & | operator= (const Communicator &) noexcept=default |
| Copy assignment. More... | |
| Communicator & | operator= (Communicator &&) noexcept=default |
| Move assignment. More... | |
| bool | operator== (const Communicator &rhs) const noexcept |
| Test for equality. More... | |
| bool | operator!= (const Communicator &rhs) const noexcept |
| Test for inequality. More... | |
| Communicator () noexcept | |
| Default construct as MPI_COMM_NULL. More... | |
| Communicator (const void *p) noexcept | |
| Construct from MPI_Comm (as pointer type) More... | |
| Communicator (value_type val) noexcept | |
| Construct from MPI_Comm (as integer type) More... | |
| value_type | value () const noexcept |
| Return raw value. More... | |
| const void * | pointer () const noexcept |
| Return as pointer value. More... | |
| bool | good () const noexcept |
| True if not equal to MPI_COMM_NULL. More... | |
| void | reset () noexcept |
| Reset to default constructed value (MPI_COMM_NULL) More... | |
| int | size () const |
| The number of ranks associated with the communicator. More... | |
Static Public Member Functions | |
| static Communicator | lookup (const int comm) |
| Transcribe internally indexed communicator to wrapped value. More... | |
An opaque wrapper for MPI_Comm with a vendor-independent representation without any <mpi.h> header.
The MPI standard states that MPI_Comm is always an opaque object. Generally it is either an integer (eg, mpich) or a pointer (eg, openmpi).
Definition at line 2451 of file UPstream.H.
| typedef std::intptr_t value_type |
Storage for MPI_Comm (as integer or pointer)
Definition at line 2460 of file UPstream.H.
|
defaultnoexcept |
Copy construct.
|
defaultnoexcept |
Move construct.
|
noexcept |
Default construct as MPI_COMM_NULL.
Definition at line 25 of file UPstreamCommunicator.C.
|
inlineexplicitnoexcept |
Construct from MPI_Comm (as pointer type)
Definition at line 2526 of file UPstream.H.
|
inlineexplicitnoexcept |
Construct from MPI_Comm (as integer type)
Definition at line 2534 of file UPstream.H.
|
defaultnoexcept |
Copy assignment.
|
defaultnoexcept |
Move assignment.
|
inlinenoexcept |
Test for equality.
Definition at line 2502 of file UPstream.H.
|
inlinenoexcept |
Test for inequality.
Definition at line 2510 of file UPstream.H.
|
static |
Transcribe internally indexed communicator to wrapped value.
Example,
Definition at line 34 of file UPstreamCommunicator.C.
|
inlinenoexcept |
Return raw value.
Definition at line 2561 of file UPstream.H.
|
inlinenoexcept |
Return as pointer value.
Definition at line 2566 of file UPstream.H.
|
noexcept |
True if not equal to MPI_COMM_NULL.
Definition at line 42 of file UPstreamCommunicator.C.
|
noexcept |
Reset to default constructed value (MPI_COMM_NULL)
Definition at line 48 of file UPstreamCommunicator.C.
| int size | ( | ) | const |
The number of ranks associated with the communicator.
Definition at line 52 of file UPstreamCommunicator.C.