Base class for enumerators over a list of entities. More...
#include <arcane/core/ItemEnumeratorBase.h>
Public Member Functions | |
| constexpr void | operator++ () |
| Increments the enumerator index. | |
| constexpr bool | operator() () |
| constexpr bool | hasNext () |
| True if the end of the enumerator has not been reached (index()<count()). | |
| constexpr Integer | count () const |
| Number of elements in the enumerator. | |
| constexpr Integer | index () const |
| Current index of the enumerator. | |
| Int32 | itemLocalId () const |
| localId() of the current entity. | |
| Int32 | localId () const |
| localId() of the current entity. | |
| constexpr const Int32 * | unguardedLocalIds () const |
| Local indices. | |
| constexpr const ItemGroupImpl * | group () const |
| Underlying group if it exists (nullptr otherwise). | |
Static Public Member Functions | |
| static constexpr int | version () |
Protected Member Functions | |
| ItemEnumeratorBase (const ItemInternalPtr *, const Int32 *local_ids, Integer n, const ItemGroupImpl *agroup) | |
| ItemEnumeratorBase (const Int32ConstArrayView &local_ids) | |
| ItemEnumeratorBase (const Int32ConstArrayView &local_ids, const ItemGroupImpl *agroup) | |
| ItemEnumeratorBase (const ItemInternalVectorView &view, const ItemGroupImpl *agroup) | |
| ItemEnumeratorBase (const ItemVectorView &rhs) | |
| template<int E> | |
| ItemEnumeratorBase (const ItemConnectedListView< E > &rhs) | |
| ItemEnumeratorBase (const ItemEnumerator &rhs) | |
| ItemEnumeratorBase (const ItemEnumerator &rhs, bool) | |
| Constructor only used by fromItemEnumerator(). | |
| ItemEnumeratorBase (const impl::ItemLocalIdListContainerView &view, Int32 index, const ItemGroupImpl *agroup) | |
| ItemEnumeratorBase (const impl::ItemLocalIdListContainerView &view) | |
| ItemInternal * | _internal (ItemSharedInfo *si) const |
| constexpr const ItemInternalPtr * | _unguardedItems (ItemSharedInfo *si) const |
Protected Attributes | |
| impl::ItemLocalIdListContainerView | m_view |
| Int32 | m_index = 0 |
| const ItemGroupImpl * | m_group_impl = nullptr |
Private Types | |
| using | ItemInternalPtr = ItemInternal* |
Base class for enumerators over a list of entities.
Instances of this class are created either via ItemEnumerator or via ItemEnumeratorT.
Definition at line 80 of file ItemEnumeratorBase.h.
|
private |
Definition at line 84 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 89 of file ItemEnumeratorBase.h.
|
inlineexplicitprotected |
Definition at line 94 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 99 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 105 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 109 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 112 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 190 of file ItemEnumerator.h.
|
inlineprotected |
Constructor only used by fromItemEnumerator().
Definition at line 168 of file ItemEnumerator.h.
References group(), and index().
|
inlineprotected |
Definition at line 166 of file ItemEnumeratorBase.h.
|
inlineexplicitprotected |
Definition at line 173 of file ItemEnumeratorBase.h.
|
inlineprotected |
Definition at line 178 of file ItemEnumeratorBase.h.
|
inlineconstexprprotected |
Definition at line 182 of file ItemEnumeratorBase.h.
|
inlineconstexpr |
Number of elements in the enumerator.
Definition at line 128 of file ItemEnumeratorBase.h.
Referenced by Arcane::ItemEnumeratorTracer::enterEnumerator().
|
inlineconstexpr |
Underlying group if it exists (nullptr otherwise).
This aims to test that accesses via this enumerator on a partial object are legitimate.
Definition at line 151 of file ItemEnumeratorBase.h.
Referenced by ItemEnumeratorBase().
|
inlineconstexpr |
True if the end of the enumerator has not been reached (index()<count()).
Definition at line 125 of file ItemEnumeratorBase.h.
Referenced by ItemGroupBuilder< T >::add(), and Arcane::ItemItemGroupComputeFunctor< ItemType >::executeFunctor().
|
inlineconstexpr |
Current index of the enumerator.
Definition at line 131 of file ItemEnumeratorBase.h.
Referenced by Arcane::AnyItem::LinkFamilyInternal::initLinkData(), ItemEnumeratorBase(), and Arcane::ItemEnumeratorBaseT< Item >::ItemEnumeratorBaseT().
|
inline |
localId() of the current entity.
Definition at line 134 of file ItemEnumeratorBase.h.
Referenced by Arcane::CellDirectionMng::operator[](), Arcane::FaceDirectionMng::operator[](), and Arcane::NodeDirectionMng::operator[]().
|
inline |
localId() of the current entity.
Definition at line 137 of file ItemEnumeratorBase.h.
Referenced by ItemGroupBuilder< T >::add(), and Arcane::AnyItem::LinkFamilyInternal::initLinkData().
|
inlineconstexpr |
Definition at line 122 of file ItemEnumeratorBase.h.
|
inlineconstexpr |
Increments the enumerator index.
Definition at line 121 of file ItemEnumeratorBase.h.
|
inlineconstexpr |
Local indices.
Definition at line 144 of file ItemEnumeratorBase.h.
References unguardedLocalIds().
Referenced by unguardedLocalIds().
|
inlinestaticconstexpr |
Definition at line 153 of file ItemEnumeratorBase.h.
|
protected |
Definition at line 159 of file ItemEnumeratorBase.h.
|
protected |
Definition at line 158 of file ItemEnumeratorBase.h.
|
protected |
Definition at line 157 of file ItemEnumeratorBase.h.