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

Index of a constituent entity in the list of constituent entities. More...

#include <arcane/core/materials/ConstituentItemSharedInfo.h>

Collaboration diagram for Arcane::Materials::ConstituentItemIndex:

Public Member Functions

__host__ __device__ constexpr ConstituentItemIndex (Int32 id)
__host__ __device__ constexpr Int32 localId () const
__host__ __device__ constexpr bool isNull () const

Private Attributes

Int32 m_id = -1

Friends

__host__ __device__ friend constexpr bool operator== (ConstituentItemIndex a, ConstituentItemIndex b)
__host__ __device__ friend constexpr bool operator!= (ConstituentItemIndex a, ConstituentItemIndex b)
std::ostream & operator<< (std::ostream &o, const ConstituentItemIndex &id)

Detailed Description

Index of a constituent entity in the list of constituent entities.

The index is specific to each type of constituent entity (AllEnvCell, EnvCell, MatCell). The list is managed by ComponentIemtInternalData.

Definition at line 37 of file ConstituentItemSharedInfo.h.

Constructor & Destructor Documentation

◆ ConstituentItemIndex()

__host__ __device__ constexpr Arcane::Materials::ConstituentItemIndex::ConstituentItemIndex ( Int32 id)
inlineexplicitconstexpr

Definition at line 42 of file ConstituentItemSharedInfo.h.

Member Function Documentation

◆ isNull()

__host__ __device__ constexpr bool Arcane::Materials::ConstituentItemIndex::isNull ( ) const
inlineconstexpr

Definition at line 59 of file ConstituentItemSharedInfo.h.

◆ localId()

__host__ __device__ constexpr Int32 Arcane::Materials::ConstituentItemIndex::localId ( ) const
inlineconstexpr

Definition at line 45 of file ConstituentItemSharedInfo.h.

◆ operator!=

__host__ __device__ friend constexpr bool operator!= ( ConstituentItemIndex a,
ConstituentItemIndex b )
friend

Definition at line 51 of file ConstituentItemSharedInfo.h.

◆ operator<<

std::ostream & operator<< ( std::ostream & o,
const ConstituentItemIndex & id )
friend

Definition at line 88 of file ComponentItemInternal.cc.

◆ operator==

__host__ __device__ friend constexpr bool operator== ( ConstituentItemIndex a,
ConstituentItemIndex b )
friend

Definition at line 46 of file ConstituentItemSharedInfo.h.

Member Data Documentation

◆ m_id

Int32 Arcane::Materials::ConstituentItemIndex::m_id = -1
private

Definition at line 63 of file ConstituentItemSharedInfo.h.


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