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);
116 this->resize(ids.
size());
117 this->viewAsArray().copy(ids);
126 ItemVectorView setItem(Int32
id)
129 this->viewAsArray()[0] = id;
137 void operator=(
const ConnectivityItemVectorCatalyst& to_con_vec)
139 to_con_vec.apply(*
this);
144 IItemConnectivityAccessor* m_connectivity_accessor =
nullptr;
Declarations of types on entities.
Manages the retrieval of connectivity information.
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.
-- 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.
Temporary type automatically cast to ConnectivityItemVector.