12#ifndef ARCANE_ITEMINDEXEDLISTVIEW_H
13#define ARCANE_ITEMINDEXEDLISTVIEW_H
17#include "arcane/utils/ArrayView.h"
19#include "arcane/core/ItemSharedInfo.h"
20#include "arcane/core/ItemLocalIdListContainerView.h"
43class ARCANE_CORE_EXPORT ItemIndexedListView
45 static_assert(Extent == (-1),
"only dynamic (-1) extent is currently supported");
47 friend ItemInternalConnectivityList;
49 friend ItemVectorView;
50 friend ItemInternalVectorView;
57 ItemIndexedListView() =
default;
63 : m_local_ids(local_ids)
65 , m_local_id_offset(local_id_offset)
67 ARCANE_ASSERT(m_shared_info, (
"null shared_info"));
71 : m_local_ids(container_view.m_local_ids, container_view.m_size)
73 , m_local_id_offset(container_view.m_local_id_offset)
75 ARCANE_ASSERT(m_shared_info, (
"null shared info"));
81 constexpr Int32 size()
const {
return m_local_ids.size(); }
93 Int32 m_local_id_offset;
Constant view of an array of type T.
Typed base class for enumerators over a list of connected entities.
View of a list of entities connected to another entity.
Internal shared structure of a mesh entity.
View of an array of elements of type T.
constexpr SmallSpan< const Int32, Extent > localIds() const
Array of local entity IDs.
ConstArrayView< Int32 > constLocalIds() const
Array of local entity IDs.
constexpr Int32 size() const
Number of elements in the vector.
View over the container of a list of ItemLocalId.
constexpr Int32 DynExtent
Constant to indicate that an array dimension is dynamic.
std::int32_t Int32
Signed integer type of 32 bits.