Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::ItemConnectivityContainerView Class Reference

Views of containers holding connectivity. This class allows the containers used to be opaque outside of Arcane to facilitate their eventual change. More...

#include <arcane/core/ItemConnectivityContainerView.h>

Collaboration diagram for Arcane::ItemConnectivityContainerView:

Public Member Functions

void checkSame (ItemConnectivityContainerView rhs) const
 Checks that the two instances this and rhs have the same values.

Private Member Functions

 ItemConnectivityContainerView (SmallSpan< Int32 > _list, SmallSpan< const Int32 > _indexes, SmallSpan< const Int32 > _nb_connected_item)
template<typename ItemType>
constexpr __host__ __device__ ItemLocalIdListViewT< ItemType > itemsIds (ItemLocalId lid) const
 List of entities connected to the entity with localId() lid.
template<typename ItemLocalIdType>
constexpr __host__ __device__ ItemLocalIdType itemId (ItemLocalId lid, Int32 index) const
 index-th entity connected to the entity with localId() lid
constexpr __host__ __device__ SmallSpan< const Int32indexes () const
 Array of indices in the connectivity table.
constexpr __host__ __device__ SmallSpan< const Int32nbConnectedItems () const
 Array of the number of entities connected to another entity.
constexpr __host__ __device__ Int32 nbItem () const
 Number of entities.
void _checkSize (Int32 indexes_size, Int32 nb_connected_item_size)
__host__ __device__ void _setParticleCellId (ItemLocalId particle_lid, CellLocalId cell_lid) const

Private Attributes

friend ItemInternalConnectivityList
friend IndexedItemConnectivityViewBase
friend IndexedItemConnectivityViewBase2
Int32m_list_data = nullptr
const Int32m_indexes = nullptr
const Int32m_nb_connected_items = nullptr
Int32 m_list_data_size = 0
Int32 m_nb_item = 0

Friends

template<typename ItemType1, typename ItemType2>
class IndexedItemConnectivityGenericViewT
class MutableIndexedParticleCellConnectivityView

Detailed Description

Views of containers holding connectivity. This class allows the containers used to be opaque outside of Arcane to facilitate their eventual change.

Definition at line 43 of file ItemConnectivityContainerView.h.

Constructor & Destructor Documentation

◆ ItemConnectivityContainerView()

Arcane::ItemConnectivityContainerView::ItemConnectivityContainerView ( SmallSpan< Int32 > _list,
SmallSpan< const Int32 > _indexes,
SmallSpan< const Int32 > _nb_connected_item )
inlineprivate

Definition at line 57 of file ItemConnectivityContainerView.h.

Member Function Documentation

◆ _checkSize()

void Arcane::ItemConnectivityContainerView::_checkSize ( Int32 indexes_size,
Int32 nb_connected_item_size )
private

Definition at line 55 of file ItemConnectivityContainerView.cc.

◆ _setParticleCellId()

__host__ __device__ void Arcane::ItemConnectivityContainerView::_setParticleCellId ( ItemLocalId particle_lid,
CellLocalId cell_lid ) const
inlineprivate

Definition at line 133 of file ItemConnectivityContainerView.h.

◆ checkSame()

void Arcane::ItemConnectivityContainerView::checkSame ( ItemConnectivityContainerView rhs) const

Checks that the two instances this and rhs have the same values.

Throws a FatalErrorException if not.

Definition at line 27 of file ItemConnectivityContainerView.cc.

References ARCANE_FATAL.

◆ indexes()

__host__ __device__ SmallSpan< const Int32 > Arcane::ItemConnectivityContainerView::indexes ( ) const
inlineconstexprprivate

Array of indices in the connectivity table.

Definition at line 108 of file ItemConnectivityContainerView.h.

◆ itemId()

template<typename ItemLocalIdType>
__host__ __device__ ItemLocalIdType Arcane::ItemConnectivityContainerView::itemId ( ItemLocalId lid,
Int32 index ) const
inlineconstexprprivate

index-th entity connected to the entity with localId() lid

Definition at line 98 of file ItemConnectivityContainerView.h.

◆ itemsIds()

template<typename ItemType>
__host__ __device__ ItemLocalIdListViewT< ItemType > Arcane::ItemConnectivityContainerView::itemsIds ( ItemLocalId lid) const
inlineconstexprprivate

List of entities connected to the entity with localId() lid.

Definition at line 85 of file ItemConnectivityContainerView.h.

◆ nbConnectedItems()

__host__ __device__ SmallSpan< const Int32 > Arcane::ItemConnectivityContainerView::nbConnectedItems ( ) const
inlineconstexprprivate

Array of the number of entities connected to another entity.

Definition at line 112 of file ItemConnectivityContainerView.h.

◆ nbItem()

__host__ __device__ Int32 Arcane::ItemConnectivityContainerView::nbItem ( ) const
inlineconstexprprivate

Number of entities.

Definition at line 115 of file ItemConnectivityContainerView.h.

◆ IndexedItemConnectivityGenericViewT

template<typename ItemType1, typename ItemType2>
friend class IndexedItemConnectivityGenericViewT
friend

Definition at line 52 of file ItemConnectivityContainerView.h.

◆ MutableIndexedParticleCellConnectivityView

friend class MutableIndexedParticleCellConnectivityView
friend

Definition at line 131 of file ItemConnectivityContainerView.h.

Member Data Documentation

◆ IndexedItemConnectivityViewBase

friend Arcane::ItemConnectivityContainerView::IndexedItemConnectivityViewBase
private

Definition at line 48 of file ItemConnectivityContainerView.h.

◆ IndexedItemConnectivityViewBase2

friend Arcane::ItemConnectivityContainerView::IndexedItemConnectivityViewBase2
private

Definition at line 49 of file ItemConnectivityContainerView.h.

◆ ItemInternalConnectivityList

friend Arcane::ItemConnectivityContainerView::ItemInternalConnectivityList
private

Definition at line 47 of file ItemConnectivityContainerView.h.

◆ m_indexes

const Int32* Arcane::ItemConnectivityContainerView::m_indexes = nullptr
private

Definition at line 120 of file ItemConnectivityContainerView.h.

◆ m_list_data

Int32* Arcane::ItemConnectivityContainerView::m_list_data = nullptr
private

Definition at line 119 of file ItemConnectivityContainerView.h.

◆ m_list_data_size

Int32 Arcane::ItemConnectivityContainerView::m_list_data_size = 0
private

Definition at line 122 of file ItemConnectivityContainerView.h.

◆ m_nb_connected_items

const Int32* Arcane::ItemConnectivityContainerView::m_nb_connected_items = nullptr
private

Definition at line 121 of file ItemConnectivityContainerView.h.

◆ m_nb_item

Int32 Arcane::ItemConnectivityContainerView::m_nb_item = 0
private

Definition at line 123 of file ItemConnectivityContainerView.h.


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