Arcane
v3.16.0.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
PointToPointMessageInfo.cc
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2025 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
/* PointToPointMessageInfo.cc (C) 2000-2025 */
9
/* */
10
/* Informations pour les messages point à point. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arccore/message_passing/PointToPointMessageInfo.h"
15
16
#include <iostream>
17
18
/*---------------------------------------------------------------------------*/
19
/*---------------------------------------------------------------------------*/
20
21
namespace
Arcane::MessagePassing
22
{
23
24
/*---------------------------------------------------------------------------*/
25
/*---------------------------------------------------------------------------*/
26
27
void
PointToPointMessageInfo::
28
print
(std::ostream& o)
const
29
{
30
if
(m_type==Type::T_Null)
31
o <<
"(null)"
;
32
else
if
(m_type==Type::T_RankTag)
33
o <<
"(destination="
<< m_destination_rank <<
",emiter="
<< m_emiter_rank
34
<<
",tag="
<< m_tag <<
")"
;
35
else
36
o << m_message_id;
37
}
38
39
/*---------------------------------------------------------------------------*/
40
/*---------------------------------------------------------------------------*/
41
42
}
// End namespace Arccore::MessagePassing
43
44
/*---------------------------------------------------------------------------*/
45
/*---------------------------------------------------------------------------*/
Arcane::MessagePassing::PointToPointMessageInfo::print
void print(std::ostream &o) const
Affiche le message.
Definition
PointToPointMessageInfo.cc:28
Arcane::MessagePassing
Déclarations des types et méthodes utilisés par les mécanismes d'échange de messages.
Definition
Parallel.h:50
arccore
message_passing
PointToPointMessageInfo.cc
Généré le Samedi 22 Février 2025 14:43:09 pour Arcane par
1.13.2