Arcane  v3.16.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ParallelDataWriter.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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/* ParallelDataWriter.h (C) 2000-2024 */
9/* */
10/* Ecrivain de IData en parallèle. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_INTERNAL_PARALLELDATAWRITER_H
13#define ARCANE_STD_INTERNAL_PARALLELDATAWRITER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/ArcaneTypes.h"
18
19#include <map>
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
34class ParallelDataWriter
35{
36 class Impl;
37
38 public:
39
40 explicit ParallelDataWriter(IParallelMng* pm);
41 ParallelDataWriter(const ParallelDataWriter& rhs) = delete;
42 ~ParallelDataWriter();
43
44 public:
45
46 Int64ConstArrayView sortedUniqueIds() const;
47 void setGatherAll(bool v);
48 void sort(Int32ConstArrayView local_ids, Int64ConstArrayView items_uid);
49 Ref<IData> getSortedValues(IData* data);
50
51 private:
52
53 Impl* m_p;
54};
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
62{
63 public:
64
65 Ref<ParallelDataWriter> getOrCreateWriter(const ItemGroup& group);
66
67 private:
68
69 std::map<ItemGroup, Ref<ParallelDataWriter>> m_data_writers;
70};
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75} // End namespace Arcane
76
77/*---------------------------------------------------------------------------*/
78/*---------------------------------------------------------------------------*/
79
80#endif
Interface d'une donnée.
Definition IData.h:33
Interface du gestionnaire de parallélisme pour un sous-domaine.
Groupe d'entités de maillage.
Definition ItemGroup.h:49
liste de 'ParallelDataWriter'.
Référence à une instance.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
ConstArrayView< Int32 > Int32ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 32 bits.
Definition UtilsTypes.h:569
ConstArrayView< Int64 > Int64ConstArrayView
Equivalent C d'un tableau à une dimension d'entiers 64 bits.
Definition UtilsTypes.h:567