12#ifndef ARCANE_MATERIALS_INTERNAL_CONSTITUENTCONNECTIVITYLIST_H
13#define ARCANE_MATERIALS_INTERNAL_CONSTITUENTCONNECTIVITYLIST_H
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/utils/Array.h"
19#include "arcane/utils/Ref.h"
21#include "arcane/core/VariableTypes.h"
22#include "arcane/core/IIncrementalItemConnectivity.h"
39class ConstituentConnectivityList
46 class ConstituantContainer;
52 ~ConstituentConnectivityList();
56 ConstituentConnectivityList(ConstituentConnectivityList&&) =
delete;
57 ConstituentConnectivityList(
const ConstituentConnectivityList&) =
delete;
58 ConstituentConnectivityList& operator=(ConstituentConnectivityList&&) =
delete;
59 ConstituentConnectivityList& operator=(
const ConstituentConnectivityList&) =
delete;
63 void endCreate(
bool is_continue);
93 Container* m_container =
nullptr;
#define ARCCORE_DEFINE_REFERENCE_COUNTED_INCLASS_METHODS()
Macro to define methods managing counters of references.
Constant view of an array of type T.
Interface for the source of an incremental connectivity.
Interface of an entity family.
Index of an Item in a variable.
ConstArrayView< Int16 > cellsNbMaterial() const
Arrays of the total number of materials per cell (indexed by localId()).
void notifySourceItemAdded(ItemLocalId item) override
Notifies the connectivity that an entity has been added to the source family.
Int16 cellNbMaterial(CellLocalId cell_id, Int16 env_id)
Number of materials of the cell cell_id for environment index env_id.
ConstArrayView< Int16 > cellsNbEnvironment() const
Arrays of the total number of environments per cell (indexed by localId()).
void notifyReadFromDump() override
Notifies the connectivity that a read has been performed from a dump.
UniqueArray< Int16 > m_environment_for_materials
Index of the environment to which a material belongs.
void notifySourceFamilyLocalIdChanged(Int32ConstArrayView new_to_old_ids) override
Notifies the connectivity that the source family has been compacted.
IItemFamily * sourceFamily() const override
Source family.
Ref< IIncrementalItemSourceConnectivity > toSourceReference() override
Returns a reference to the instance.
void reserveMemoryForNbSourceItems(Int32 n, bool pre_alloc_connectivity) override
Reserves memory for n source entities.
Implementation of a material manager.
Reference to an instance.
Thread-safe implementation of a reference counter.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
1D data vector with value semantics (STL style).
Always enables tracing in Arcane parts concerning materials.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
std::int16_t Int16
Signed integer type of 16 bits.
std::int32_t Int32
Signed integer type of 32 bits.