12#ifndef ARCANE_CORE_ITEMGENERICINFOLISTVIEW_H
13#define ARCANE_CORE_ITEMGENERICINFOLISTVIEW_H
17#include "arcane/utils/ArrayView.h"
20#include "arcane/core/ItemSharedInfo.h"
21#include "arcane/core/ItemUniqueId.h"
22#include "arcane/core/ItemLocalId.h"
23#include "arcane/core/ItemFlags.h"
40class ARCANE_CORE_EXPORT ItemGenericInfoListView
42 friend class ItemInfoListView;
46 ItemGenericInfoListView() =
default;
54 explicit ItemGenericInfoListView(
IItemFamily* family);
56 explicit ItemGenericInfoListView(
const ItemInfoListView& info_list_view);
64 constexpr ARCCORE_HOST_DEVICE
Int32 owner(
Int32 local_id)
const {
return m_owners[local_id]; }
70 constexpr ARCCORE_HOST_DEVICE
Int16 typeId(
Int32 local_id)
const {
return m_type_ids[local_id]; }
88 constexpr ARCCORE_HOST_DEVICE
bool isOwn(
Int32 local_id)
const
90 return ItemFlags::isOwn(m_flags[local_id]);
96 return ItemFlags::isOwn(m_flags[local_id]);
102 return ItemFlags::isShared(m_flags[local_id]);
108 return ItemFlags::isShared(m_flags[local_id]);
119 ItemSharedInfo* m_item_shared_info = ItemSharedInfo::nullInstance();
Declarations of types on entities.
Interface of an entity family.
View of the generic information of an entity family.
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__ Int16 typeId(ItemLocalId local_id) const
Type of the entity with local ID local_id.
IItemFamily * itemFamily() const
Associated family.
constexpr __host__ __device__ Int32 owner(ItemLocalId local_id) const
Owner of the entity with local ID local_id.
constexpr __host__ __device__ bool isShared(ItemLocalId local_id) const
Indicates if the entity with local ID local_id is shared by other subdomains.
constexpr __host__ __device__ bool isOwn(ItemLocalId local_id) const
Indicates if the entity with local ID local_id belongs to the subdomain.
__host__ __device__ ItemUniqueId uniqueId(ItemLocalId local_id) const
uniqueId() 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__ Int32 owner(Int32 local_id) const
Owner of the entity with local ID local_id.
constexpr __host__ __device__ bool isShared(Int32 local_id) const
Indicates if the entity with local ID local_id is shared by other subdomains.
__host__ __device__ ItemUniqueId uniqueId(Int32 local_id) const
uniqueId() of the entity with local ID local_id
Index of an Item in a variable.
Internal shared structure of a mesh entity.
Unique identifier of an entity.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ArrayView< Int64 > Int64ArrayView
C equivalent of a 1D array of 64-bit integers.
ArrayView< Int16 > Int16ArrayView
C equivalent of a 1D array of 16-bit integers.
ArrayView< Int32 > Int32ArrayView
C equivalent of a 1D array of 32-bit integers.
std::int16_t Int16
Signed integer type of 16 bits.
std::int32_t Int32
Signed integer type of 32 bits.