Arcane  v3.16.6.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
SynchronizerMatrixPrinter.h
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/* SynchronizerMatrixPrinter.h (C) 2011-2025 */
9/* */
10/* Affiche la matrix de synchronization. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_SYNCHRONIZATIONMATRIXPRINTER_H
13#define ARCANE_CORE_SYNCHRONIZATIONMATRIXPRINTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arcane/core/IVariableSynchronizer.h"
19
20#include <iostream>
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
33class ARCANE_CORE_EXPORT SynchronizerMatrixPrinter
34{
35 public:
36
37 explicit SynchronizerMatrixPrinter(IVariableSynchronizer* synchronizer);
38 virtual ~SynchronizerMatrixPrinter() = default;
39
40 public:
41
42 void print(std::ostream& o) const;
43 friend std::ostream&
44 operator<<(std::ostream& o, const SynchronizerMatrixPrinter& s)
45 {
46 s.print(o);
47 return o;
48 }
49
50 private:
51
52 IVariableSynchronizer* m_synchronizer = nullptr;
53};
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58} // namespace Arcane
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63#endif
Fichier contenant les déclarations concernant le modèle de programmation par échange de message.
Interface d'un service de synchronisation de variable.
virtual ~SynchronizerMatrixPrinter()=default
Libère les ressources.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-