Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::MessagePassing::MessageSourceInfo Class Reference

Information about the source of a message. More...

#include <arccore/message_passing/MessageSourceInfo.h>

Public Member Functions

 MessageSourceInfo ()=default
 Creates a source corresponding to no message (isValid()==false).
 MessageSourceInfo (MessageRank rank, MessageTag tag, Int64 size)
 Creates a source corresponding to rank rank and tag tag.
MessageRank rank () const
 Source rank.
void setRank (MessageRank rank)
 Sets the source rank.
MessageTag tag () const
 Message tag.
void setTag (MessageTag tag)
 Sets the message tag.
Int64 size () const
 Message size.
void setSize (Int64 size)
 Sets the message size.
bool isValid () const
 Indicates if the source is valid.

Detailed Description

Information about the source of a message.

This information is used to retrieve message information following a call to mpProbe() or mpLegacyProbe(). The returned instance can be used to perform a reception via mpReceive().

Definition at line 36 of file MessageSourceInfo.h.

Constructor & Destructor Documentation

◆ MessageSourceInfo()

Arcane::MessagePassing::MessageSourceInfo::MessageSourceInfo ( MessageRank rank,
MessageTag tag,
Int64 size )
inline

Creates a source corresponding to rank rank and tag tag.

If rank.isNull() or tag.isNull(), then isValid() will be false.

Definition at line 48 of file MessageSourceInfo.h.

References rank(), size(), and tag().

Member Function Documentation

◆ isValid()

bool Arcane::MessagePassing::MessageSourceInfo::isValid ( ) const
inline

Indicates if the source is valid.

Definition at line 75 of file MessageSourceInfo.h.

◆ rank()

MessageRank Arcane::MessagePassing::MessageSourceInfo::rank ( ) const
inline

Source rank.

Definition at line 57 of file MessageSourceInfo.h.

Referenced by MessageSourceInfo(), and setRank().

◆ setRank()

void Arcane::MessagePassing::MessageSourceInfo::setRank ( MessageRank rank)
inline

Sets the source rank.

Definition at line 60 of file MessageSourceInfo.h.

References rank().

Referenced by Arcane::MessagePassing::PointToPointMessageInfo::setDestinationRank().

◆ setSize()

void Arcane::MessagePassing::MessageSourceInfo::setSize ( Int64 size)
inline

Sets the message size.

Definition at line 72 of file MessageSourceInfo.h.

References size().

◆ setTag()

void Arcane::MessagePassing::MessageSourceInfo::setTag ( MessageTag tag)
inline

Sets the message tag.

Definition at line 66 of file MessageSourceInfo.h.

References tag().

Referenced by Arcane::MessagePassing::PointToPointMessageInfo::setTag().

◆ size()

Int64 Arcane::MessagePassing::MessageSourceInfo::size ( ) const
inline

Message size.

Definition at line 69 of file MessageSourceInfo.h.

Referenced by MessageSourceInfo(), and setSize().

◆ tag()

MessageTag Arcane::MessagePassing::MessageSourceInfo::tag ( ) const
inline

Message tag.

Definition at line 63 of file MessageSourceInfo.h.

Referenced by MessageSourceInfo(), and setTag().


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