Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ItemGroupDynamicMeshObserver.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* Outil d'observation du maillage */
9/*---------------------------------------------------------------------------*/
10#ifndef ARCANE_MESH_ITEMGROUPDYNAMICMESHOBSERVER_H
11#define ARCANE_MESH_ITEMGROUPDYNAMICMESHOBSERVER_H
12
13/*---------------------------------------------------------------------------*/
14/*---------------------------------------------------------------------------*/
15
16#include "arcane/mesh/MeshGlobal.h"
17
18#include "arcane/ItemGroupObserver.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28ARCANE_MESH_BEGIN_NAMESPACE
29
30/*---------------------------------------------------------------------------*/
31/*---------------------------------------------------------------------------*/
32
33class DynamicMesh;
34
35/*---------------------------------------------------------------------------*/
36/*---------------------------------------------------------------------------*/
37
39: public IItemGroupObserver
40{
41 public:
42 ItemGroupDynamicMeshObserver(DynamicMesh * mesh) : m_mesh(mesh) { }
44
45 void executeExtend(const Int32ConstArrayView * new_items_info);
46
47 void executeReduce(const Int32ConstArrayView * info);
48
49 void executeCompact(const Int32ConstArrayView * pinfo);
50
51 void executeInvalidate();
52
53 bool needInfo() const { return true; }
54
55private:
56 DynamicMesh * m_mesh;
57};
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62ARCANE_MESH_END_NAMESPACE
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67ARCANE_END_NAMESPACE
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72#endif /* ARCANE_MESH_ITEMGROUPDYNAMICMESHOBSERVER_H */
bool needInfo() const
Indique si l'observer aura besoin d'information de transition.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Vue constante d'un tableau de type T.