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

Class to convert an ItemLocalId to an entity (Item). More...

#include <arcane/core/ItemLocalId.h>

Public Member Functions

 ItemLocalIdToItemConverter (IItemFamily *family)
 ItemLocalIdToItemConverter ()=default
 Default constructor.
constexpr __host__ __device__ Item operator[] (ItemLocalId local_id) const
 Entity of local ID local_id.
constexpr __host__ __device__ Item operator[] (Int32 local_id) const
 Entity of local ID local_id.

Friends

template<typename ItemType_>
class ItemLocalIdToItemConverterT

Detailed Description

Class to convert an ItemLocalId to an entity (Item).

Instances of this class remain valid throughout the lifetime of the associated family.

Definition at line 137 of file ItemLocalId.h.

Constructor & Destructor Documentation

◆ ItemLocalIdToItemConverter() [1/2]

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

Definition at line 27 of file ItemLocalId.cc.

◆ ItemLocalIdToItemConverter() [2/2]

Arcane::ItemLocalIdToItemConverter::ItemLocalIdToItemConverter ( )
default

Default constructor.

The instance will not be valid until it has been copied from a valid instance (using the constructor that takes an IItemFamily as an argument).

References operator[]().

Member Function Documentation

◆ operator[]() [1/2]

__host__ __device__ Item Arcane::ItemLocalIdToItemConverter::operator[] ( Int32 local_id) const
inlineconstexpr

Entity of local ID local_id.

Definition at line 1913 of file Item.h.

◆ operator[]() [2/2]

__host__ __device__ Item Arcane::ItemLocalIdToItemConverter::operator[] ( ItemLocalId local_id) const
inlineconstexpr

Entity of local ID local_id.

Definition at line 1904 of file Item.h.

Referenced by ItemLocalIdToItemConverter().

◆ ItemLocalIdToItemConverterT

template<typename ItemType_>
friend class ItemLocalIdToItemConverterT
friend

Definition at line 139 of file ItemLocalId.h.


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