Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ConnectivityItemVector Class Reference

Manages the retrieval of connectivity information. More...

#include <arcane/core/ConnectivityItemVector.h>

Public Member Functions

 ConnectivityItemVector (IItemConnectivity *c)
 ConnectivityItemVector (IItemConnectivity &c)
 ConnectivityItemVector (IIncrementalItemConnectivity *c)
 ConnectivityItemVector (IIncrementalItemConnectivity &c)
 ConnectivityItemVector (const ConnectivityItemVectorCatalyst &to_c)
IItemConnectivityAccessoraccessor () const
 Associated connectivity.
ItemVectorView connectedItems (ItemLocalId item)
 Returns the entities connected to item.
ItemVectorView resizeAndCopy (Int32ConstArrayView ids)
ItemVectorView setItem (Int32 id)
void operator= (const ConnectivityItemVectorCatalyst &to_con_vec)
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< Int32viewAsArray ()
 View of the local IDs.
ConstArrayView< Int32viewAsArray () 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.
IItemFamilyfamily () const
 Family associated with the vector.
ItemEnumerator enumerator () const
 Enumerator.

Additional Inherited Members

Public Types inherited from Arcane::ItemVector
using ItemType = Item
Protected Attributes inherited from Arcane::ItemVector
SharedArray< Int32m_local_ids
IItemFamilym_family = nullptr
ItemSharedInfom_shared_info = ItemSharedInfo::nullInstance()

Detailed Description

Manages the retrieval of connectivity information.

See also
IItemConnectivity
IIncrementalItemConnectivity
IItemConnectivityAccessor.

Definition at line 55 of file ConnectivityItemVector.h.

Constructor & Destructor Documentation

◆ ConnectivityItemVector() [1/5]

Arcane::ConnectivityItemVector::ConnectivityItemVector ( IItemConnectivity * c)
inline

Definition at line 64 of file ConnectivityItemVector.h.

◆ ConnectivityItemVector() [2/5]

Arcane::ConnectivityItemVector::ConnectivityItemVector ( IItemConnectivity & c)
inline

Definition at line 70 of file ConnectivityItemVector.h.

◆ ConnectivityItemVector() [3/5]

Arcane::ConnectivityItemVector::ConnectivityItemVector ( IIncrementalItemConnectivity * c)
inline

Definition at line 76 of file ConnectivityItemVector.h.

◆ ConnectivityItemVector() [4/5]

Arcane::ConnectivityItemVector::ConnectivityItemVector ( IIncrementalItemConnectivity & c)
inline

Definition at line 82 of file ConnectivityItemVector.h.

◆ ConnectivityItemVector() [5/5]

Arcane::ConnectivityItemVector::ConnectivityItemVector ( const ConnectivityItemVectorCatalyst & to_c)
inline

Definition at line 88 of file ConnectivityItemVector.h.

Member Function Documentation

◆ accessor()

IItemConnectivityAccessor * Arcane::ConnectivityItemVector::accessor ( ) const
inline

Associated connectivity.

Definition at line 99 of file ConnectivityItemVector.h.

◆ connectedItems()

ItemVectorView Arcane::ConnectivityItemVector::connectedItems ( ItemLocalId item)
inline

Returns the entities connected to item.

Definition at line 102 of file ConnectivityItemVector.h.

◆ operator=()

void Arcane::ConnectivityItemVector::operator= ( const ConnectivityItemVectorCatalyst & to_con_vec)
inline

Definition at line 137 of file ConnectivityItemVector.h.

◆ resizeAndCopy()

ItemVectorView Arcane::ConnectivityItemVector::resizeAndCopy ( Int32ConstArrayView ids)
inline

Definition at line 114 of file ConnectivityItemVector.h.

◆ setItem()

ItemVectorView Arcane::ConnectivityItemVector::setItem ( Int32 id)
inline

Definition at line 126 of file ConnectivityItemVector.h.


The documentation for this class was generated from the following file: