12#ifndef ARCANE_CORE_CONNECTIVITYITEMVECTOR_H
13#define ARCANE_CORE_CONNECTIVITYITEMVECTOR_H
17#include "arcane/utils/ArrayView.h"
18#include "arcane/utils/String.h"
21#include "arcane/core/ItemVector.h"
22#include "arcane/core/IItemConnectivity.h"
23#include "arcane/core/IIncrementalItemConnectivity.h"
55class ARCANE_CORE_EXPORT ConnectivityItemVector
66 , m_connectivity_accessor(c)
72 , m_connectivity_accessor(&c)
78 , m_connectivity_accessor(c)
84 , m_connectivity_accessor(&c)
90 , m_connectivity_accessor(
nullptr)
104 return m_connectivity_accessor->_connectedItems(item, *
this);
139 to_con_vec.apply(*
this);
Declarations of types on entities.
Manages the retrieval of connectivity information.
ItemVectorView resizeAndCopy(Int32ConstArrayView ids)
Positions the connectivity list with the entities specified by ids.
void operator=(const ConnectivityItemVectorCatalyst &to_con_vec)
Allows retrieving the ConnectivityItemVector.
ItemVectorView setItem(Int32 id)
Positions the connectivity list with the entity of localId() id.
ItemVectorView connectedItems(ItemLocalId item)
Returns the entities connected to item.
IItemConnectivityAccessor * accessor() const
Associated connectivity.
constexpr Integer size() const noexcept
Number of elements in the array.
Interface for managing an incremental connectivity.
Interface to manage access to a connectivity.
virtual void _initializeStorage(ConnectivityItemVector *civ)=0
Implements the initialization of civ for this connectivity.
Interface to manage connectivity.
virtual IItemFamily * targetFamily() const =0
Target family.
Index of an Item in a variable.
View on a vector of entities.
ItemVector(IItemFamily *afamily)
Creates an empty vector associated with the family family.
void resize(Integer new_size)
Sets the number of elements in the array.
ArrayView< Int32 > viewAsArray()
View of the local IDs.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
std::int32_t Int32
Signed integer type of 32 bits.
Temporary type automatically cast to ConnectivityItemVector.