Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ItemFamilyItemListChangedEventArgs.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/* ItemFamilyItemListChangedEventArgs.h (C) 2000-2025 */
9/* */
10/* Event arguments for entity addition or deletion. */
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/*!
30 * \ingroup Mesh
31 * \brief Event arguments for entity addition or deletion.
32 */
33class ARCANE_CORE_EXPORT ItemFamilyItemListChangedEventArgs
34{
35 friend mesh::DynamicMeshKindInfos;
36
37 private:
38
39 //! Constructor. Only for DynamicMeshKindInfos.
40 ItemFamilyItemListChangedEventArgs() = default;
41 ItemFamilyItemListChangedEventArgs(IItemFamily* item_family, Int32 local_id, Int64 unique_id)
42 : m_item_family(item_family)
43 , m_local_id(local_id)
44 , m_unique_id(unique_id)
45 {}
46
47 public:
48
49 IItemFamily* itemFamily() const { return m_item_family; }
50 Int32 localId() const { return m_local_id; }
51 Int64 uniqueId() const { return m_unique_id; }
52 bool isAdd() const { return m_is_add; }
53
54 public:
55
56 void setIsAdd(bool v) { m_is_add = v; }
57
58 private:
59
60 IItemFamily* m_item_family = nullptr;
61 Int32 m_local_id = NULL_ITEM_LOCAL_ID;
62 Int64 m_unique_id = NULL_ITEM_UNIQUE_ID;
63 bool m_is_add = false;
64};
65
66/*---------------------------------------------------------------------------*/
67/*---------------------------------------------------------------------------*/
68
69} // namespace Arcane
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74#endif
Declarations of types used in Arcane.
Interface of an entity family.
Definition IItemFamily.h:83
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
std::int32_t Int32
Signed integer type of 32 bits.