12#ifndef ARCCORE_MESSAGEPASSING_MESSAGESOURCEINFO_H
13#define ARCCORE_MESSAGEPASSING_MESSAGESOURCEINFO_H
17#include "arccore/message_passing/MessageTag.h"
18#include "arccore/message_passing/MessageRank.h"
75 bool isValid()
const {
return !m_rank.isNull() && !m_tag.isNull(); }
MessageSourceInfo()=default
Creates a source corresponding to no message (isValid()==false).
Int64 size() const
Message size.
MessageTag tag() const
Message tag.
void setTag(MessageTag tag)
Sets the message tag.
MessageSourceInfo(MessageRank rank, MessageTag tag, Int64 size)
Creates a source corresponding to rank rank and tag tag.
void setSize(Int64 size)
Sets the message size.
MessageRank rank() const
Source rank.
bool isValid() const
Indicates if the source is valid.
void setRank(MessageRank rank)
Sets the source rank.
Declarations of types and methods used by message exchange mechanisms.
std::int64_t Int64
Signed integer type of 64 bits.