Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
PointToPointInfo.cc
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/* PointToPointInfo.cc (C) 2000-2020 */
9/* */
10/* Information for sending/receiving a point-to-point message. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/message_passing/PointToPointInfo.h"
15
16#include <iostream>
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21namespace Arccore
22{
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27void MessagePassing::PointToPointInfo::
28print(std::ostream& o) const
29{
30 if (m_type == Type::T_Null)
31 o << "(null)";
32 else if (m_type == T_RankTag)
33 o << "(rank=" << m_rank << ",tag=" << tag << ")";
34 else
35 o << m_message_id;
36}
37
38/*---------------------------------------------------------------------------*/
39/*---------------------------------------------------------------------------*/
40
41} // End namespace Arccore
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
Namespace of Arccore.