View of a list to obtain information about entities. More...
#include <arcane/core/ItemInfoListView.h>
Public Member Functions | |
| ItemInfoListView (IItemFamily *family) | |
| Constructs a view associated with the family family. | |
| IItemFamily * | itemFamily () const |
| Associated family. | |
| Item | operator[] (ItemLocalId local_id) const |
| Entity associated with local ID local_id. | |
| Item | operator[] (Int32 local_id) const |
| Entity associated with local ID local_id. | |
| Public Member Functions inherited from Arcane::ItemGenericInfoListView | |
| ItemGenericInfoListView (IItemFamily *family) | |
| Constructs a view associated with the family family. | |
| ItemGenericInfoListView (const ItemInfoListView &info_list_view) | |
| IItemFamily * | itemFamily () 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. | |
Protected Member Functions | |
| void | _checkValid (eItemKind expected_kind) |
| Checks that the entity kind matches the expected one. | |
Friends | |
| class | mesh::ItemFamily |
| template<int Extent> | |
| class | ItemConnectedListView |
| template<typename ItemType> | |
| class | ItemEnumeratorBaseT |
View of a list to obtain information about entities.
Like all views, these instances are temporary and should not be kept between two modifications of the associated family.
The methods of this class are only valid if the instance has been initialized with a non-null family (IItemFamily).
Via this class, it is possible to retrieve an Item instance from an ItemLocalId.
Definition at line 40 of file ItemInfoListView.h.
|
explicit |
Constructs a view associated with the family family.
family may be nullptr in which case the instance is not usable for retrieving entity information
Definition at line 29 of file ItemInfoListView.cc.
|
protected |
Checks that the entity kind matches the expected one.
Definition at line 41 of file ItemInfoListView.cc.
References ARCANE_FATAL, Arcane::IItemFamily::fullName(), itemFamily(), and Arcane::IItemFamily::itemKind().
Referenced by Arcane::ItemInfoListViewT< Node >::ItemInfoListViewT().
|
inline |
|
inline |
|
friend |
Definition at line 48 of file ItemInfoListView.h.
|
friend |
Definition at line 49 of file ItemInfoListView.h.
|
friend |
Definition at line 44 of file ItemInfoListView.h.