Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IItemConnectivity.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/* IItemConnectivity.h (C) 2000-2025 */
9/* */
10/* Interface for entity connectivity. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_IITEMCONNECTIVITY_H
13#define ARCANE_CORE_IITEMCONNECTIVITY_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/ArrayView.h"
18#include "arcane/utils/String.h"
19
21#include "arcane/core/IItemConnectivityAccessor.h"
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26namespace Arcane
27{
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
31
50class ARCANE_CORE_EXPORT IItemConnectivity
52{
53 public:
54
55 friend class ConnectivityItemVector;
56
57 public:
58
60 virtual const String& name() const = 0;
61
64
66 virtual IItemFamily* sourceFamily() const = 0;
67
69 virtual IItemFamily* targetFamily() const = 0;
70
72 virtual void notifySourceFamilyLocalIdChanged(Int32ConstArrayView new_to_old_ids) = 0;
73
75 virtual void notifyTargetFamilyLocalIdChanged(Int32ConstArrayView old_to_new_ids) = 0;
76
85 virtual void updateConnectivity(Int32ConstArrayView from_items, Int32ConstArrayView to_items) = 0;
86};
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
90
91} // namespace Arcane
92
93/*---------------------------------------------------------------------------*/
94/*---------------------------------------------------------------------------*/
95
96#endif
Declarations of types on entities.
Constant view of an array of type T.
Interface to manage access to a connectivity.
Interface to manage connectivity.
virtual void notifyTargetFamilyLocalIdChanged(Int32ConstArrayView old_to_new_ids)=0
Notifies the connectivity that the target family has been compacted.
virtual ConstArrayView< IItemFamily * > families() const =0
List of families (sourceFamily() + targetFamily()).
virtual IItemFamily * targetFamily() const =0
Target family.
virtual void updateConnectivity(Int32ConstArrayView from_items, Int32ConstArrayView to_items)=0
Update of the connectivity.
virtual void notifySourceFamilyLocalIdChanged(Int32ConstArrayView new_to_old_ids)=0
Notifies the connectivity that the source family has been compacted.
virtual IItemFamily * sourceFamily() const =0
Source family.
virtual const String & name() const =0
Name of the connectivity.
Interface of an entity family.
Definition IItemFamily.h:83
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition UtilsTypes.h:482