Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
SynchronizerMatrixPrinter.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/* SynchronizerMatrixPrinter.h (C) 2011-2025 */
9/* */
10/* Prints the synchronization matrix. */
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/*---------------------------------------------------------------------------*/
30
34class ARCANE_CORE_EXPORT SynchronizerMatrixPrinter
35{
36 public:
37
38 explicit SynchronizerMatrixPrinter(IVariableSynchronizer* synchronizer);
39 virtual ~SynchronizerMatrixPrinter() = default;
40
41 public:
42
43 void print(std::ostream& o) const;
44 friend std::ostream&
45 operator<<(std::ostream& o, const SynchronizerMatrixPrinter& s)
46 {
47 s.print(o);
48 return o;
49 }
50
51 private:
52
53 IVariableSynchronizer* m_synchronizer = nullptr;
54};
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59} // namespace Arcane
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64#endif
File containing declarations concerning the message passing model.
Interface of a variable synchronization service.
virtual ~SynchronizerMatrixPrinter()=default
Frees resources.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --