Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
SubRequestCompletionInfo.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* SubRequestCompletionInfo.h (C) 2000-2025 */
9/* */
10/* Completion information for a sub-request. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCCORE_MESSAGEPASSING_INTERNAL_SUBREQUESTCOMPLETIONINFO_H
13#define ARCCORE_MESSAGEPASSING_INTERNAL_SUBREQUESTCOMPLETIONINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/message_passing/MessageRank.h"
18#include "arccore/message_passing/MessageTag.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
32class ARCCORE_MESSAGEPASSING_EXPORT SubRequestCompletionInfo
33{
34 public:
35
36 SubRequestCompletionInfo(MessageRank rank, MessageTag tag)
37 : m_source_rank(rank)
38 , m_source_tag(tag)
39 {}
40
41 public:
42
44 MessageRank sourceRank() const { return m_source_rank; }
46 MessageTag sourceTag() const { return m_source_tag; }
47
48 private:
49
50 MessageRank m_source_rank;
51 MessageTag m_source_tag;
52};
53
54/*---------------------------------------------------------------------------*/
55/*---------------------------------------------------------------------------*/
56
57} // namespace Arcane::MessagePassing
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62#endif
MessageRank sourceRank() const
Source rank of the request.
MessageTag sourceTag() const
Source tag of the request.
Declarations of types and methods used by message exchange mechanisms.