Arcane  v3.16.0.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
ItemFamilyItemListChangedEventArgs.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* ItemFamilyItemListChangedEventArgs.h (C) 2000-2025 */
9/* */
10/* Arguments de l'évènement pour l'ajout ou la supression d'entités. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ITEMFAMILYITEMLISTCHANGEDARGS_H
13#define ARCANE_CORE_ITEMFAMILYITEMLISTCHANGEDARGS_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/ArrayView.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28/*!
29 * \ingroup Mesh
30 * \brief Arguments de l'évènement pour l'ajout ou la supression d'entités.
31 */
32class ARCANE_CORE_EXPORT ItemFamilyItemListChangedEventArgs
33{
34 friend mesh::DynamicMeshKindInfos;
35
36 private:
37
38 //! Constructeur. Uniquement pour DynamicMeshKindInfos.
39 ItemFamilyItemListChangedEventArgs() = default;
40 ItemFamilyItemListChangedEventArgs(IItemFamily* item_family, Int32 local_id, Int64 unique_id)
41 : m_item_family(item_family)
42 , m_local_id(local_id)
43 , m_unique_id(unique_id)
44 {}
45
46 public:
47
48 IItemFamily* itemFamily() const { return m_item_family; }
49 Int32 localId() const { return m_local_id; }
50 Int64 uniqueId() const { return m_unique_id; }
51 bool isAdd() const { return m_is_add; }
52
53 public:
54
55 void setIsAdd(bool v) { m_is_add = v; }
56
57 private:
58
59 IItemFamily* m_item_family = nullptr;
60 Int32 m_local_id = NULL_ITEM_LOCAL_ID;
61 Int64 m_unique_id = NULL_ITEM_UNIQUE_ID;
62 bool m_is_add = false;
63};
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
67
68} // namespace Arcane
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73#endif
Déclarations des types utilisés dans Arcane.
Interface d'une famille d'entités.
Definition IItemFamily.h:84
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int64_t Int64
Type entier signé sur 64 bits.
std::int32_t Int32
Type entier signé sur 32 bits.