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

Base class for a view on unstructured connectivity. More...

#include <arcane/core/IndexedItemConnectivityView.h>

Public Member Functions

constexpr IndexedItemConnectivityViewBase (ItemConnectivityContainerView container_view, eItemKind source_kind, eItemKind target_kind)
constexpr __host__ __device__ Int32 nbSourceItem () const
 Number of source entities.
constexpr __host__ __device__ Int32 nbItem (ItemLocalId lid) const
 Number of entities connected to entity lid.
constexpr __host__ __device__ ItemLocalIdListViewT< Itemitems (ItemLocalId lid) const
 List of entities connected to entity lid.
eItemKind sourceItemKind () const
eItemKind targetItemKind () const
void init (SmallSpan< const Int32 > nb_item, SmallSpan< const Int32 > indexes, SmallSpan< const Int32 > list_data, eItemKind source_kind, eItemKind target_kind)
 Initializes the view.
void set (IndexedItemConnectivityViewBase view)
void _checkValid (eItemKind k1, eItemKind k2) const

Protected Member Functions

void _badConversion (eItemKind k1, eItemKind k2) const

Protected Attributes

ItemConnectivityContainerView m_container_view
eItemKind m_source_kind = IK_Unknown
eItemKind m_target_kind = IK_Unknown

Friends

class IndexedItemConnectivityViewBase2

Detailed Description

Base class for a view on unstructured connectivity.

Like all views, instances of this class are temporary and should not be kept between two mesh evolutions.

Definition at line 36 of file IndexedItemConnectivityView.h.

Constructor & Destructor Documentation

◆ IndexedItemConnectivityViewBase()

Arcane::IndexedItemConnectivityViewBase::IndexedItemConnectivityViewBase ( ItemConnectivityContainerView container_view,
eItemKind source_kind,
eItemKind target_kind )
inlineconstexpr

Definition at line 43 of file IndexedItemConnectivityView.h.

Member Function Documentation

◆ _badConversion()

void Arcane::IndexedItemConnectivityViewBase::_badConversion ( eItemKind k1,
eItemKind k2 ) const
protected

Definition at line 83 of file Item.cc.

◆ _checkValid()

void Arcane::IndexedItemConnectivityViewBase::_checkValid ( eItemKind k1,
eItemKind k2 ) const
inline

Definition at line 97 of file IndexedItemConnectivityView.h.

◆ init()

void Arcane::IndexedItemConnectivityViewBase::init ( SmallSpan< const Int32 > nb_item,
SmallSpan< const Int32 > indexes,
SmallSpan< const Int32 > list_data,
eItemKind source_kind,
eItemKind target_kind )
inline

Initializes the view.

Definition at line 67 of file IndexedItemConnectivityView.h.

References init().

Referenced by init().

◆ items()

__host__ __device__ ItemLocalIdListViewT< Item > Arcane::IndexedItemConnectivityViewBase::items ( ItemLocalId lid) const
inlineconstexpr

List of entities connected to entity lid.

Definition at line 58 of file IndexedItemConnectivityView.h.

◆ nbItem()

__host__ __device__ Int32 Arcane::IndexedItemConnectivityViewBase::nbItem ( ItemLocalId lid) const
inlineconstexpr

Number of entities connected to entity lid.

Definition at line 56 of file IndexedItemConnectivityView.h.

◆ nbSourceItem()

__host__ __device__ Int32 Arcane::IndexedItemConnectivityViewBase::nbSourceItem ( ) const
inlineconstexpr

Number of source entities.

Definition at line 54 of file IndexedItemConnectivityView.h.

◆ set()

void Arcane::IndexedItemConnectivityViewBase::set ( IndexedItemConnectivityViewBase view)
inline

Definition at line 78 of file IndexedItemConnectivityView.h.

◆ sourceItemKind()

eItemKind Arcane::IndexedItemConnectivityViewBase::sourceItemKind ( ) const
inline

Definition at line 62 of file IndexedItemConnectivityView.h.

◆ targetItemKind()

eItemKind Arcane::IndexedItemConnectivityViewBase::targetItemKind ( ) const
inline

Definition at line 63 of file IndexedItemConnectivityView.h.

◆ IndexedItemConnectivityViewBase2

friend class IndexedItemConnectivityViewBase2
friend

Definition at line 38 of file IndexedItemConnectivityView.h.

Member Data Documentation

◆ m_container_view

ItemConnectivityContainerView Arcane::IndexedItemConnectivityViewBase::m_container_view
protected

Definition at line 87 of file IndexedItemConnectivityView.h.

◆ m_source_kind

eItemKind Arcane::IndexedItemConnectivityViewBase::m_source_kind = IK_Unknown
protected

Definition at line 88 of file IndexedItemConnectivityView.h.

◆ m_target_kind

eItemKind Arcane::IndexedItemConnectivityViewBase::m_target_kind = IK_Unknown
protected

Definition at line 89 of file IndexedItemConnectivityView.h.


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