View over an index array (localIds()) of entities. More...
#include <arcane/core/ItemIndexArrayView.h>
Public Types | |
| enum | { F_Contiguous = 1 << 1 , F_Contigous = F_Contiguous } |
Public Member Functions | |
| ItemIndexArrayView ()=default | |
| Constructs an empty view. | |
| ItemIndexArrayView (const Int32ConstArrayView local_ids) | |
| Constructs a view from the local IDs local_ids. | |
| ItemIndexArrayView (const impl::ItemLocalIdListContainerView &view) | |
| Int32 | operator[] (Integer index) const |
| Accesses the i-th element of the vector. | |
| Int32 | size () const |
| Number of elements in the vector. | |
| void | fillLocalIds (Array< Int32 > &ids) const |
| Adds the list of the vector's localIds() to ids. | |
| ItemIndexArrayView | subView (Integer abegin, Integer asize) const |
| Sub-view starting from element abegin and containing asize elements. | |
| Int32 | flags () const |
| bool | isContigous () const |
| bool | isContiguous () const |
| True if the localIds() are contiguous. | |
| Int32ConstArrayView | localIds () const |
| Array of local IDs of entities. | |
| operator Int32ConstArrayView () const | |
Protected Attributes | |
| impl::ItemLocalIdListContainerView | m_view |
| Int32 | m_flags = 0 |
Private Member Functions | |
| const Int32 * | unguardedBasePointer () const |
| const Int32 * | data () const |
| ItemIndexArrayView (SmallSpan< const Int32 > local_ids, Int32 local_id_offset, Int32 aflags) | |
| const Int32 * | _data () const |
| Int32ConstArrayView | _localIds () const |
| Int32 | _localIdOffset () const |
Private Attributes | |
| friend | ItemVectorView |
| friend | ItemGroup |
Friends | |
| template<int Extent> | |
| class | ItemConnectedListView |
| template<typename ItemType, int Extent> | |
| class | ItemConnectedListViewT |
| template<typename ItemType> | |
| class | ItemVectorViewT |
| std::ostream & | operator<< (std::ostream &o, const ItemIndexArrayView &a) |
View over an index array (localIds()) of entities.
In addition to the list of entities, this class allows for additional information, such as whether the list is contiguous.
Definition at line 40 of file ItemIndexArrayView.h.
| anonymous enum |
| Enumerator | |
|---|---|
| F_Contiguous | The local IDs are contiguous. |
Definition at line 54 of file ItemIndexArrayView.h.
|
inlineexplicit |
Constructs a view from the local IDs local_ids.
Definition at line 67 of file ItemIndexArrayView.h.
|
inlineexplicit |
Definition at line 71 of file ItemIndexArrayView.h.
|
inlineprivate |
Definition at line 156 of file ItemIndexArrayView.h.
|
inlineprivate |
Definition at line 161 of file ItemIndexArrayView.h.
|
inlineprivate |
Definition at line 170 of file ItemIndexArrayView.h.
|
inlineprivate |
Definition at line 166 of file ItemIndexArrayView.h.
|
inlineprivate |
Definition at line 144 of file ItemIndexArrayView.h.
Adds the list of the vector's localIds() to ids.
Definition at line 70 of file ItemVectorView.cc.
|
inline |
Definition at line 101 of file ItemIndexArrayView.h.
|
inline |
Definition at line 106 of file ItemIndexArrayView.h.
|
inline |
True if the localIds() are contiguous.
Definition at line 109 of file ItemIndexArrayView.h.
|
inline |
Array of local IDs of entities.
Definition at line 124 of file ItemIndexArrayView.h.
|
inline |
Definition at line 130 of file ItemIndexArrayView.h.
Accesses the i-th element of the vector.
Definition at line 79 of file ItemIndexArrayView.h.
|
inline |
Number of elements in the vector.
Definition at line 85 of file ItemIndexArrayView.h.
|
inline |
Sub-view starting from element abegin and containing asize elements.
Definition at line 94 of file ItemIndexArrayView.h.
References ItemIndexArrayView().
|
inlineprivate |
Definition at line 138 of file ItemIndexArrayView.h.
|
friend |
Definition at line 46 of file ItemIndexArrayView.h.
|
friend |
Definition at line 47 of file ItemIndexArrayView.h.
|
friend |
Definition at line 48 of file ItemIndexArrayView.h.
|
friend |
Definition at line 114 of file ItemIndexArrayView.h.
|
private |
Definition at line 45 of file ItemIndexArrayView.h.
|
private |
Definition at line 44 of file ItemIndexArrayView.h.
|
protected |
Definition at line 152 of file ItemIndexArrayView.h.
|
protected |
Definition at line 151 of file ItemIndexArrayView.h.