Rank of a message. More...
#include <arccore/message_passing/MessageRank.h>
Public Member Functions | |
| MessageRank () | |
| Default rank. | |
| MessageRank (Int32 rank) | |
| Int32 | value () const |
| Rank value. | |
| void | setValue (Int32 rank) |
| Sets the rank value. | |
| bool | isNull () const |
| True if the rank is uninitialized, corresponding to the default rank. | |
| bool | isAnySource () const |
| True if the rank corresponds to anySourceRank(). | |
| bool | isProcNull () const |
| True if the rank corresponds to procNullRank(). | |
| void | print (std::ostream &o) const |
Static Public Member Functions | |
| static MessageRank | anySourceRank () |
| Rank corresponding to MPI_ANY_SOURCE. | |
| static MessageRank | procNullRank () |
| Rank corresponding to MPI_PROC_NULL. | |
Friends | |
| bool | operator== (const MessageRank &a, const MessageRank &b) |
| bool | operator!= (const MessageRank &a, const MessageRank &b) |
| bool | operator< (const MessageRank &a, const MessageRank &b) |
| std::ostream & | operator<< (std::ostream &o, const MessageRank &tag) |
Rank of a message.
The exact type of the rank depends on the implementation. To be as generic as possible, we use the 'Int32' type, which is also the one used by MPI.
There are three special values for the rank:
Definition at line 44 of file MessageRank.h.
|
inline |
Default rank.
The meaning of the default rank depends on the message type.
Definition at line 54 of file MessageRank.h.
Referenced by anySourceRank(), and procNullRank().
|
inlineexplicit |
Definition at line 58 of file MessageRank.h.
|
inlinestatic |
Rank corresponding to MPI_ANY_SOURCE.
Definition at line 91 of file MessageRank.h.
References MessageRank().
|
inline |
True if the rank corresponds to anySourceRank().
Definition at line 85 of file MessageRank.h.
|
inline |
True if the rank is uninitialized, corresponding to the default rank.
Definition at line 82 of file MessageRank.h.
|
inline |
True if the rank corresponds to procNullRank().
Definition at line 88 of file MessageRank.h.
| void Arcane::MessagePassing::MessageRank::print | ( | std::ostream & | o | ) | const |
Definition at line 27 of file MessageRank.cc.
|
inlinestatic |
Rank corresponding to MPI_PROC_NULL.
Definition at line 94 of file MessageRank.h.
References MessageRank().
|
inline |
Sets the rank value.
Definition at line 79 of file MessageRank.h.
|
inline |
Rank value.
Definition at line 76 of file MessageRank.h.
Referenced by Arcane::Parallel::VariableParallelOperationBase::applyOperation().
|
friend |
Definition at line 66 of file MessageRank.h.
|
friend |
Definition at line 70 of file MessageRank.h.
|
friend |
Definition at line 97 of file MessageRank.h.
|
friend |
Definition at line 62 of file MessageRank.h.