12#ifndef ARCANE_CORE_MATERIALS_INTERNAL_CONSTITUENTITEMLOCALIDLIST_H
13#define ARCANE_CORE_MATERIALS_INTERNAL_CONSTITUENTITEMLOCALIDLIST_H
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/utils/Array.h"
21#include "arcane/core/materials/ComponentItemInternal.h"
36class ARCANE_CORE_EXPORT ConstituentItemLocalIdList
39 friend class ConstituentItemVectorImpl;
43 ConstituentItemLocalIdList(ComponentItemSharedInfo* shared_info,
const String& debug_name);
47 void resize(
Int32 new_size);
60 for (
Int32 i = 0; i < size; ++i)
61 setConstituentItem(i, ids[i]);
66 m_shared_info = view.m_component_shared_info;
67 const Int32 size = view.m_ids.size();
69 for (
Int32 i = 0; i < size; ++i)
70 setConstituentItem(i, view.m_ids[i]);
83 return m_shared_info->_item(localId(index));
92 return m_shared_info->_varIndex(localId(index));
107 ComponentItemSharedInfo* m_shared_info =
nullptr;
Constant view of an array of type T.
constexpr Integer size() const noexcept
Number of elements in the array.
Index of a constituent entity in the list of constituent entities.
View of a ConstituentItemLocalIdList instance.
UniqueArray< ConstituentItemIndex > m_constituent_item_index_list
List of ConstituentItemIndex for this constituent.
Represents an index on material and environment variables.
General information about a constituent entity.
View of an array of elements of type T.
Unicode character string.
1D data vector with value semantics (STL style).
Always enables tracing in Arcane parts concerning materials.
std::int32_t Int32
Signed integer type of 32 bits.