Typed entity vector. More...
#include <arcane/core/ItemVector.h>
Public Types | |
| using | ItemType = VectorItemType |
| Public Types inherited from Arcane::ItemVector | |
| using | ItemType = Item |
Public Member Functions | |
| ItemVectorT ()=default | |
| Empty constructor. | |
| ItemVectorT (IItemFamily *afamily) | |
| Empty constructor with family. | |
| ItemVectorT (IItemFamily *afamily, ConstArrayView< Int32 > local_ids) | |
| Creates a vector associated with the family afamily and containing the entities local_ids. | |
| ItemVectorT (const ItemVector &rhs) | |
| Copy constructor. | |
| ItemVectorT (IItemFamily *afamily, Integer asize) | |
| Constructor for asize elements for the family afamily. | |
| operator ItemVectorViewT< VectorItemType > () const | |
| Cast operator to ItemVectorView. | |
| ItemType | operator[] (Int32 index) const |
| Entity at position index of the vector. | |
| void | addItem (ItemType item) |
| Adds an entity to the end of the vector. | |
| void | addItem (ItemLocalIdT< ItemType > local_id) |
| Adds an entity to the end of the vector. | |
| ItemVectorViewT< ItemType > | view () const |
| View of the entire array. | |
| ItemEnumeratorT< ItemType > | enumerator () const |
| Enumerator. | |
| Public Member Functions inherited from Arcane::ItemVector | |
| ItemVector (IItemFamily *afamily) | |
| Creates an empty vector associated with the family family. | |
| ItemVector (IItemFamily *afamily, Int32ConstArrayView local_ids) | |
| Creates a vector associated with the family family and containing the entities local_ids. | |
| ItemVector (IItemFamily *afamily, Integer asize) | |
| Creates a vector for size elements associated with the family family. | |
| ItemVector () | |
| Creates a null vector. You must then call setFamily() to use it. | |
| operator ItemVectorView () const | |
| Cast operator to ItemVectorView. | |
| void | setFamily (IItemFamily *afamily) |
| Sets the associated family. | |
| void | add (Int32 local_id) |
| Adds an entity with local ID local_id to the end of the vector. | |
| void | add (ConstArrayView< Int32 > local_ids) |
| Adds a list of entity local IDs local_ids to the end of the vector. | |
| void | addItem (ItemLocalId local_id) |
| Adds an entity with local ID local_id to the end of the vector. | |
| void | addItem (Item item) |
| Adds an entity to the end of the vector. | |
| Int32 | size () const |
| Number of elements in the vector. | |
| void | reserve (Integer capacity) |
| Reserves memory for capacity entities. | |
| void | clear () |
| Removes all entities from the vector. | |
| ItemVectorView | view () const |
| View of the vector. | |
| ArrayView< Int32 > | viewAsArray () |
| View of the local IDs. | |
| ConstArrayView< Int32 > | viewAsArray () const |
| Constant view of the local IDs. | |
| void | removeAt (Int32 index) |
| Removes the entity at index index. | |
| void | resize (Integer new_size) |
| Sets the number of elements in the array. | |
| ItemVector | clone () |
| Clones this vector. | |
| Item | operator[] (Int32 index) const |
| Entity at position index of the vector. | |
| IItemFamily * | family () const |
| Family associated with the vector. | |
| ItemEnumerator | enumerator () const |
| Enumerator. | |
Additional Inherited Members | |
| Protected Attributes inherited from Arcane::ItemVector | |
| SharedArray< Int32 > | m_local_ids |
| IItemFamily * | m_family = nullptr |
| ItemSharedInfo * | m_shared_info = ItemSharedInfo::nullInstance() |
Typed entity vector.
For more information, see ItemVector.
Definition at line 166 of file ItemVector.h.
| using Arcane::ItemVectorT< VectorItemType >::ItemType = VectorItemType |
Definition at line 171 of file ItemVector.h.
|
inlineexplicit |
Empty constructor with family.
Definition at line 179 of file ItemVector.h.
|
inline |
Creates a vector associated with the family afamily and containing the entities local_ids.
Definition at line 184 of file ItemVector.h.
|
inline |
Copy constructor.
Definition at line 189 of file ItemVector.h.
|
inline |
Constructor for asize elements for the family afamily.
Definition at line 194 of file ItemVector.h.
|
inline |
Adds an entity to the end of the vector.
Definition at line 215 of file ItemVector.h.
|
inline |
Adds an entity to the end of the vector.
Definition at line 212 of file ItemVector.h.
|
inline |
Enumerator.
Definition at line 224 of file ItemVector.h.
|
inline |
Cast operator to ItemVectorView.
Definition at line 201 of file ItemVector.h.
|
inline |
Entity at position index of the vector.
Definition at line 206 of file ItemVector.h.
|
inline |
View of the entire array.
Definition at line 218 of file ItemVector.h.
Referenced by Arcane::ItemVectorT< Cell >::operator ItemVectorViewT< Cell >().