Arcane  v3.14.10.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-2022 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-2020 */
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
22{
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
28print(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/*---------------------------------------------------------------------------*/
void print(std::ostream &o) const
Affiche le message.
Espace de nommage contenant les types et déclarations qui gèrent le mécanisme de parallélisme par éch...