12#ifndef ARCANE_MATERIALS_MESHCOMPONENTDATA_H
13#define ARCANE_MATERIALS_MESHCOMPONENTDATA_H
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/utils/Functor.h"
20#include "arcane/core/ItemGroup.h"
21#include "arcane/core/materials/MatItem.h"
22#include "arcane/core/materials/internal/ConstituentItemLocalIdList.h"
52class MeshComponentData
55 friend class MeshEnvironment;
56 friend class MeshMaterial;
57 friend class AllEnvData;
62 Int16 component_id, ComponentItemSharedInfo* shared_info,
64 ~MeshComponentData()
override;
102 Int16 componentId()
const
119 void _resizeItemsInternal(
Int32 nb_item);
120 void _setVariableIndexer(MeshMaterialVariableIndexer* indexer);
121 void _setItems(
const ItemGroup& group);
123 void _rebuildPartData(RunQueue& queue);
124 void _buildPartData();
125 MeshComponentPartData* _partData()
const {
return m_part_data; }
162 void _rebuildPartDataDirect();
Functor associated with a method of a class T.
Index of a constituent entity in the list of constituent entities.
View of a ConstituentItemLocalIdList instance.
List of local indices for 'ComponentItemInternal'.
Interface of a component (material or environment) of a mesh.
Interface for the material and environment manager of a mesh.
View over a vector of entities of a material.
Accelerator::eExecutionPolicy m_specific_execution_policy
Specific execution policy.
IMeshComponent * m_component
Constituent whose data is managed.
void _changeLocalIdsForInternalList(Int32ConstArrayView old_to_new_ids)
Updates the constituent's m_items_internal after a change in local numbering.
String m_name
Name of the constituent.
MeshMaterialVariableIndexer * m_variable_indexer
Info for indexing partial variables.
matimpl::ConstituentItemBase _itemBase(Int32 index) const
Returns an instance of the index-th entity in the list.
bool m_is_indexer_owner
Indicates if we own the indexer (in this case, it will be destroyed with the instance).
ConstituentItemLocalIdList m_constituent_local_id_list
List of ConstituentItemIndex for this constituent.
Int16 m_component_id
Constituent index (in the list of constituents of this type).
ItemGroup m_items
List of entities of this constituent.
Data of a part (pure or partial) of a constituent.
Indexer for material variables.
General information about a constituent entity.
Unicode character string.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
eExecutionPolicy
Execution policy for a Runner.
@ None
No execution policy.
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.