Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshItemInternalList.cc
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/* MeshItemInternalList.cc (C) 2000-2022 */
9/* */
10/* Tableaux d'indirection sur les entités d'un maillage. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/MeshItemInternalList.h"
15
16#include "arcane/ItemSharedInfo.h"
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21namespace Arcane
22{
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27void MeshItemInternalList::
28_internalSetNodeSharedInfo(ItemSharedInfo* s)
29{
30 m_node_shared_info = s;
31 _notifyUpdate();
32}
33
34void MeshItemInternalList::
35_internalSetEdgeSharedInfo(ItemSharedInfo* s)
36{
37 m_edge_shared_info = s;
38 _notifyUpdate();
39}
40
41void MeshItemInternalList::
42_internalSetFaceSharedInfo(ItemSharedInfo* s)
43{
44 m_face_shared_info = s;
45 _notifyUpdate();
46}
47
48void MeshItemInternalList::
49_internalSetCellSharedInfo(ItemSharedInfo* s)
50{
51 m_cell_shared_info = s;
52 _notifyUpdate();
53}
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58void MeshItemInternalList::
59_notifyUpdate()
60{
61 if (m_node_shared_info)
62 m_node_shared_info->updateMeshItemInternalList();
63 if (m_edge_shared_info)
64 m_edge_shared_info->updateMeshItemInternalList();
65 if (m_face_shared_info)
66 m_face_shared_info->updateMeshItemInternalList();
67 if (m_cell_shared_info)
68 m_cell_shared_info->updateMeshItemInternalList();
69}
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74} // End namespace Arcane
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-