Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IMeshCompacter.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/* IMeshCompacter.h (C) 2000-2025 */
9/* */
10/* Handling of mesh family compaction. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IMESHCOMPACTER_H
13#define ARCANE_CORE_IMESHCOMPACTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
83class ARCANE_CORE_EXPORT IMeshCompacter
84{
85 public:
86
88 enum class ePhase
89 {
90 Init = 0,
91 BeginCompact,
92 CompactVariableAndGroups,
93 UpdateInternalReferences,
94 EndCompact,
95 Finalize,
96 Ended
97 };
98
99 public:
100
101 virtual ~IMeshCompacter() = default;
102
103 public:
104
106 virtual void doAllActions() = 0;
107
108 virtual void beginCompact() = 0;
109 virtual void compactVariablesAndGroups() = 0;
110 virtual void updateInternalReferences() = 0;
111 virtual void endCompact() = 0;
112 virtual void finalizeCompact() = 0;
113
115 virtual IMesh* mesh() const = 0;
116
122 virtual const ItemFamilyCompactInfos* findCompactInfos(IItemFamily* family) const = 0;
123
125 virtual ePhase phase() const = 0;
126
131 virtual void setSorted(bool v) = 0;
132
134 virtual bool isSorted() const = 0;
135
137 virtual ItemFamilyCollection families() const = 0;
138
140 virtual void _setCompactVariablesAndGroups(bool v) = 0;
141};
142
143/*---------------------------------------------------------------------------*/
144/*---------------------------------------------------------------------------*/
145
146} // namespace Arcane
147
148/*---------------------------------------------------------------------------*/
149/*---------------------------------------------------------------------------*/
150
151#endif
Declarations of Arcane's general types.
Interface of an entity family.
Definition IItemFamily.h:83
Management of mesh family compaction.
virtual IMesh * mesh() const =0
Mesh associated with this compacter.
virtual ItemFamilyCollection families() const =0
Families whose entities are compacted.
virtual void setSorted(bool v)=0
Indicates whether entities should be sorted during compaction.
virtual ePhase phase() const =0
The exchange phase in which we are located.
virtual ~IMeshCompacter()=default
Frees resources.
virtual void doAllActions()=0
Executes all compaction actions successively.
virtual void _setCompactVariablesAndGroups(bool v)=0
virtual bool isSorted() const =0
Indicates whether it wishes to sort the entities in addition to compacting them.
virtual const ItemFamilyCompactInfos * findCompactInfos(IItemFamily *family) const =0
Compaction information for the family family.
ePhase
Indicates the different phases of compaction.
Information to manage the compaction of entities of a family.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Collection< IItemFamily * > ItemFamilyCollection
Collection of item families.