48 ARCANE_DEPRECATED_REASON(
"Y2022: This class is deprecated. Use ItemEnumerator instead")
51 , m_local_ids(local_ids)
57 ARCANE_DEPRECATED_REASON(
"Y2022: This class is deprecated. Use ItemEnumerator instead")
59 : m_items(view._items().
data())
62 , m_count(view.
size())
65 ARCANE_DEPRECATED_REASON(
"Y2022: This class is deprecated. Use ItemEnumerator instead")
67 : m_items(items.data())
68 , m_local_ids(local_ids.data())
70 , m_count(local_ids.size())
75 ItemInternal* operator*()
const {
return m_items[m_local_ids[m_index]]; }
76 ItemInternal* operator->()
const {
return m_items[m_local_ids[m_index]]; }
77 inline void operator++() { ++m_index; }
78 inline bool operator()() {
return m_index < m_count; }
79 inline bool hasNext() {
return m_index < m_count; }
82 inline Integer
count()
const {
return m_count; }
85 inline Integer
index()
const {
return m_index; }
88 inline Integer
localId()
const {
return m_local_ids[m_index]; }
92 const ItemInternalPtr* m_items;
93 const Int32* ARCANE_RESTRICT m_local_ids;