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

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

#include <arcane/core/ItemLocalId.h>

Inheritance diagram for Arcane::ItemLocalIdToItemConverter:
Collaboration diagram for Arcane::ItemLocalIdToItemConverter:

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.

Private Attributes

ItemSharedInfom_item_shared_info = nullptr

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[]().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

◆ ItemLocalIdToItemConverterT

template<typename ItemType_>
friend class ItemLocalIdToItemConverterT
friend

Definition at line 139 of file ItemLocalId.h.

Member Data Documentation

◆ m_item_shared_info

ItemSharedInfo* Arcane::ItemLocalIdToItemConverter::m_item_shared_info = nullptr
private

Definition at line 162 of file ItemLocalId.h.


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