Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::ItemLocalIdToItemConverterT< ItemType_ > Class Template Reference

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

#include <arcane/core/ItemLocalId.h>

Public Types

using ItemType = ItemType_
using ItemLocalIdType = ItemLocalIdT<ItemType>

Public Member Functions

constexpr __host__ __device__ ItemType operator[] (ItemLocalIdType local_id) const
 Entity of local ID local_id.
constexpr __host__ __device__ ItemType operator[] (Int32 local_id) const
 Entity of local ID local_id.
 ItemLocalIdToItemConverter (IItemFamily *family)
 ItemLocalIdToItemConverter ()=default
 Default constructor.
Public Member Functions inherited from Arcane::ItemLocalIdToItemConverter
 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.

Detailed Description

template<typename ItemType_>
class Arcane::ItemLocalIdToItemConverterT< ItemType_ >

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 174 of file ItemLocalId.h.

Member Typedef Documentation

◆ ItemLocalIdType

template<typename ItemType_>
using Arcane::ItemLocalIdToItemConverterT< ItemType_ >::ItemLocalIdType = ItemLocalIdT<ItemType>

Definition at line 180 of file ItemLocalId.h.

◆ ItemType

template<typename ItemType_>
using Arcane::ItemLocalIdToItemConverterT< ItemType_ >::ItemType = ItemType_

Definition at line 179 of file ItemLocalId.h.

Member Function Documentation

◆ ItemLocalIdToItemConverter() [1/2]

template<typename ItemType_>
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).

◆ ItemLocalIdToItemConverter() [2/2]

template<typename ItemType_>
Arcane::ItemLocalIdToItemConverter::ItemLocalIdToItemConverter ( IItemFamily * family)
explicit

Definition at line 143 of file ItemLocalId.cc.

◆ operator[]() [1/2]

template<typename ItemType_>
__host__ __device__ ItemType_ Arcane::ItemLocalIdToItemConverterT< ItemType_ >::operator[] ( Int32 local_id) const
inlineconstexpr

Entity of local ID local_id.

Definition at line 1933 of file Item.h.

◆ operator[]() [2/2]

template<typename ItemType_>
__host__ __device__ ItemType_ Arcane::ItemLocalIdToItemConverterT< ItemType_ >::operator[] ( ItemLocalIdType local_id) const
inlineconstexpr

Entity of local ID local_id.

Definition at line 1923 of file Item.h.


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