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

View of the generic information of an entity family. More...

#include <arcane/core/ItemGenericInfoListView.h>

Inheritance diagram for Arcane::ItemGenericInfoListView:
Collaboration diagram for Arcane::ItemGenericInfoListView:

Public Member Functions

 ItemGenericInfoListView (IItemFamily *family)
 Constructs a view associated with the family family.
 ItemGenericInfoListView (const ItemInfoListView &info_list_view)
IItemFamilyitemFamily () const
 Associated family.
constexpr __host__ __device__ Int32 owner (Int32 local_id) const
 Owner of the entity with local ID local_id.
constexpr __host__ __device__ Int32 owner (ItemLocalId local_id) const
 Owner of the entity with local ID local_id.
constexpr __host__ __device__ Int16 typeId (Int32 local_id) const
 Type of the entity with local ID local_id.
constexpr __host__ __device__ Int16 typeId (ItemLocalId local_id) const
 Type of the entity with local ID local_id.
__host__ __device__ ItemUniqueId uniqueId (Int32 local_id) const
 uniqueId() of the entity with local ID local_id
__host__ __device__ ItemUniqueId uniqueId (ItemLocalId local_id) const
 uniqueId() of the entity with local ID local_id
constexpr __host__ __device__ bool isOwn (Int32 local_id) const
 Indicates if the entity with local ID local_id belongs to the subdomain.
constexpr __host__ __device__ bool isOwn (ItemLocalId local_id) const
 Indicates if the entity with local ID local_id belongs to the subdomain.
constexpr __host__ __device__ bool isShared (Int32 local_id) const
 Indicates if the entity with local ID local_id is shared by other subdomains.
constexpr __host__ __device__ bool isShared (ItemLocalId local_id) const
 Indicates if the entity with local ID local_id is shared by other subdomains.

Private Member Functions

 ItemGenericInfoListView (ItemSharedInfo *shared_info)

Private Attributes

Int64ArrayView m_unique_ids
Int32ArrayView m_owners
Int32ArrayView m_flags
Int16ArrayView m_type_ids
ItemSharedInfom_item_shared_info = ItemSharedInfo::nullInstance()

Friends

class ItemInfoListView

Detailed Description

View of the generic information of an entity family.

Like all views, instances of this class are temporary and should not be kept when the associated family is modified.

Definition at line 40 of file ItemGenericInfoListView.h.

Constructor & Destructor Documentation

◆ ItemGenericInfoListView() [1/3]

Arcane::ItemGenericInfoListView::ItemGenericInfoListView ( IItemFamily * family)
explicit

Constructs a view associated with the family family.

family may be nullptr in which case the instance is not usable for retrieving information about entities

Definition at line 42 of file ItemGenericInfoListView.cc.

◆ ItemGenericInfoListView() [2/3]

Arcane::ItemGenericInfoListView::ItemGenericInfoListView ( const ItemInfoListView & info_list_view)
explicit

Definition at line 51 of file ItemGenericInfoListView.cc.

◆ ItemGenericInfoListView() [3/3]

Arcane::ItemGenericInfoListView::ItemGenericInfoListView ( ItemSharedInfo * shared_info)
explicitprivate

Definition at line 29 of file ItemGenericInfoListView.cc.

Member Function Documentation

◆ isOwn() [1/2]

__host__ __device__ bool Arcane::ItemGenericInfoListView::isOwn ( Int32 local_id) const
inlineconstexpr

Indicates if the entity with local ID local_id belongs to the subdomain.

Definition at line 88 of file ItemGenericInfoListView.h.

Referenced by Arcane::Materials::AcceleratorMeshMaterialSynchronizerImpl::synchronizeMaterialsInCells().

Here is the caller graph for this function:

◆ isOwn() [2/2]

__host__ __device__ bool Arcane::ItemGenericInfoListView::isOwn ( ItemLocalId local_id) const
inlineconstexpr

Indicates if the entity with local ID local_id belongs to the subdomain.

Definition at line 94 of file ItemGenericInfoListView.h.

◆ isShared() [1/2]

__host__ __device__ bool Arcane::ItemGenericInfoListView::isShared ( Int32 local_id) const
inlineconstexpr

Indicates if the entity with local ID local_id is shared by other subdomains.

Definition at line 100 of file ItemGenericInfoListView.h.

◆ isShared() [2/2]

__host__ __device__ bool Arcane::ItemGenericInfoListView::isShared ( ItemLocalId local_id) const
inlineconstexpr

Indicates if the entity with local ID local_id is shared by other subdomains.

Definition at line 106 of file ItemGenericInfoListView.h.

◆ itemFamily()

IItemFamily * Arcane::ItemGenericInfoListView::itemFamily ( ) const
inline

Associated family.

Definition at line 61 of file ItemGenericInfoListView.h.

◆ owner() [1/2]

__host__ __device__ Int32 Arcane::ItemGenericInfoListView::owner ( Int32 local_id) const
inlineconstexpr

Owner of the entity with local ID local_id.

Definition at line 64 of file ItemGenericInfoListView.h.

◆ owner() [2/2]

__host__ __device__ Int32 Arcane::ItemGenericInfoListView::owner ( ItemLocalId local_id) const
inlineconstexpr

Owner of the entity with local ID local_id.

Definition at line 67 of file ItemGenericInfoListView.h.

◆ typeId() [1/2]

__host__ __device__ Int16 Arcane::ItemGenericInfoListView::typeId ( Int32 local_id) const
inlineconstexpr

Type of the entity with local ID local_id.

Definition at line 70 of file ItemGenericInfoListView.h.

◆ typeId() [2/2]

__host__ __device__ Int16 Arcane::ItemGenericInfoListView::typeId ( ItemLocalId local_id) const
inlineconstexpr

Type of the entity with local ID local_id.

Definition at line 73 of file ItemGenericInfoListView.h.

◆ uniqueId() [1/2]

__host__ __device__ ItemUniqueId Arcane::ItemGenericInfoListView::uniqueId ( Int32 local_id) const
inline

uniqueId() of the entity with local ID local_id

Definition at line 76 of file ItemGenericInfoListView.h.

Referenced by Arcane::mesh::ItemGroupDynamicMeshObserver::executeReduce(), and Arcane::mesh::ParticleFamilySerializer::serializeItems().

Here is the caller graph for this function:

◆ uniqueId() [2/2]

__host__ __device__ ItemUniqueId Arcane::ItemGenericInfoListView::uniqueId ( ItemLocalId local_id) const
inline

uniqueId() of the entity with local ID local_id

Definition at line 82 of file ItemGenericInfoListView.h.

◆ ItemInfoListView

friend class ItemInfoListView
friend

Definition at line 42 of file ItemGenericInfoListView.h.

Member Data Documentation

◆ m_flags

Int32ArrayView Arcane::ItemGenericInfoListView::m_flags
private

Definition at line 117 of file ItemGenericInfoListView.h.

◆ m_item_shared_info

ItemSharedInfo* Arcane::ItemGenericInfoListView::m_item_shared_info = ItemSharedInfo::nullInstance()
private

Definition at line 119 of file ItemGenericInfoListView.h.

◆ m_owners

Int32ArrayView Arcane::ItemGenericInfoListView::m_owners
private

Definition at line 116 of file ItemGenericInfoListView.h.

◆ m_type_ids

Int16ArrayView Arcane::ItemGenericInfoListView::m_type_ids
private

Definition at line 118 of file ItemGenericInfoListView.h.

◆ m_unique_ids

Int64ArrayView Arcane::ItemGenericInfoListView::m_unique_ids
private

Definition at line 115 of file ItemGenericInfoListView.h.


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