Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
IMeshCompactMng.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/* IMeshCompactMng.h (C) 2000-2025 */
9/* */
10/* Interface for managing the compaction of mesh families. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IMESHCOMPACTMNG_H
13#define ARCANE_CORE_IMESHCOMPACTMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class IMeshCompacter;
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
32
33/*!
34 * \brief Interface for managing the compaction of mesh families.
35 *
36 * While a compaction is in progress, it is forbidden to perform certain
37 * operations on the mesh, such as creating a new family
38 * or adding groups.
39 *
40 * The start of a compaction is done by calling beginCompact(). Once
41 * the compaction is finished, you must call endCompact() to destroy
42 * the IMeshCompacter instance.
43 *
44 * For more information on compaction, refer to the documentation
45 * of IMeshCompacter.
46 */
47class ARCANE_CORE_EXPORT IMeshCompactMng
48{
49 public:
50
51 virtual ~IMeshCompactMng() {} //<! Releases resources
52
53 public:
54
55 //! Associated mesh
56 virtual IMesh* mesh() const = 0;
57
58 /*!
59 * \brief Starts a compaction on all families of the mesh.
60 *
61 * \pre compacter()==nullptr.
62 */
64
65 /*!
66 * \brief Starts a compaction for the entity family \a family
67 *
68 * \pre compacter()==nullptr.
69 *
70 */
72
73 /*!
74 * \brief Signals that the compaction is finished.
75 *
76 * This allows the deallocation of structures associated with the compaction.
77 * \post exchanger()==nullptr.
78 */
79 virtual void endCompact() = 0;
80
81 /*!
82 * \brief Current active compacter.
83 *
84 * The compacter is non-null only if we are between a beginCompact()
85 * and an endCompact()
86 */
87 virtual IMeshCompacter* compacter() = 0;
88};
89
90/*---------------------------------------------------------------------------*/
91/*---------------------------------------------------------------------------*/
92
93} // End namespace Arcane
94
95/*---------------------------------------------------------------------------*/
96/*---------------------------------------------------------------------------*/
97
98#endif
Declarations of Arcane's general types.
Interface of an entity family.
Definition IItemFamily.h:83
Interface for managing the compaction of mesh families.
virtual void endCompact()=0
Signals that the compaction is finished.
virtual IMeshCompacter * compacter()=0
Current active compacter.
virtual IMeshCompacter * beginCompact(IItemFamily *family)=0
Starts a compaction for the entity family family.
virtual IMesh * mesh() const =0
Associated mesh.
virtual IMeshCompacter * beginCompact()=0
Starts a compaction on all families of the mesh.
Management of mesh family compaction.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --