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

Represents a material in a multi-material cell. More...

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

Inheritance diagram for Arcane::Materials::MatCell:
Collaboration diagram for Arcane::Materials::MatCell:

Public Member Functions

__host__ __device__ MatCell (const matimpl::ConstituentItemBase &item_base)
__host__ __device__ MatCell (const ComponentCell &item)
__host__ __device__ EnvCell envCell () const
 Environment cell to which this material cell belongs.
IMeshMaterialmaterial () const
 Associated material.
IUserMeshMaterialuserMaterial () const
 Associated user material.
__host__ __device__ Int32 materialId () const
 Material identifier.
Public Member Functions inherited from Arcane::Materials::ConstituentItem
__host__ __device__ ConstituentItem (const matimpl::ConstituentItemBase &mii)
__host__ __device__ operator ComponentItemLocalId () const
 Conversion operator to a ComponentItemLocalId.
__host__ __device__ MatVarIndex _varIndex () const
__host__ __device__ matimpl::ConstituentItemBase constituentItemBase () const
IMeshComponentcomponent () const
 Associated constituent.
__host__ __device__ Int32 componentId () const
 Component identifier in the list of components of this type.
__host__ __device__ bool null () const
 Indicates if it is the null cell.
__host__ __device__ ComponentCell superCell () const
 Higher-level cell in the hierarchy.
__host__ __device__ Int32 level () const
 Hierarchical level of the entity.
__host__ __device__ Int32 nbSubItem () const
 Number of sub-elements.
Cell globalCell () const
 Global cell.
__host__ __device__ CellLocalId globalCellId () const
 localId() of the global cell
Int64 componentUniqueId () const
 Unique number of the constituent entity.
__host__ __device__ CellComponentCellEnumerator subItems () const
 List of sub-constituents of this entity.

Private Member Functions

IMeshMaterial_material () const

Additional Inherited Members

Protected Member Functions inherited from Arcane::Materials::ConstituentItem
__host__ __device__ matimpl::ConstituentItemBase _subItemBase (Int32 index) const
__host__ __device__ matimpl::ConstituentItemBase _superItemBase () const
__host__ __device__ ConstituentItemIndex _firstSubConstituentLocalId () const
Static Protected Member Functions inherited from Arcane::Materials::ConstituentItem
static __host__ __device__ void _checkLevel (matimpl::ConstituentItemBase item_base, Int32 expected_level)
static void _badConversion (matimpl::ConstituentItemBase item_base, Int32 level, Int32 expected_level)
Protected Attributes inherited from Arcane::Materials::ConstituentItem
ConstituentItemIndex m_constituent_item_index
ComponentItemSharedInfo * m_shared_info = nullptr

Detailed Description

Represents a material in a multi-material cell.

This object represents a material in a multi-material cell.

There is a special cell, called the null cell, for which null() is true and which represents an invalid cell. In the case of the invalid cell, none of the other class methods should be called, under penalty of causing a crash.

Warning
These meshes are invalidated as soon as the list of meshes of a material or environment changes. Therefore, one must not keep a cell of this type between two changes of this list.

Definition at line 48 of file core/materials/MatItem.h.

Constructor & Destructor Documentation

◆ MatCell() [1/2]

__host__ __device__ Arcane::Materials::MatCell::MatCell ( const matimpl::ConstituentItemBase & item_base)
inline

Definition at line 53 of file core/materials/MatItem.h.

◆ MatCell() [2/2]

__host__ __device__ Arcane::Materials::MatCell::MatCell ( const ComponentCell & item)
inlineexplicit

Definition at line 61 of file core/materials/MatItem.h.

Member Function Documentation

◆ _material()

IMeshMaterial * Arcane::Materials::MatCell::_material ( ) const
inlineprivate

Definition at line 84 of file core/materials/MatItem.h.

◆ envCell()

__host__ __device__ EnvCell Arcane::Materials::MatCell::envCell ( ) const
inline

Environment cell to which this material cell belongs.

Definition at line 205 of file core/materials/MatItem.h.

◆ material()

IMeshMaterial * Arcane::Materials::MatCell::material ( ) const
inline

Associated material.

Definition at line 74 of file core/materials/MatItem.h.

Referenced by Arcane::Materials::MeshMaterialMng::checkValid().

Here is the caller graph for this function:

◆ materialId()

__host__ __device__ Int32 Arcane::Materials::MatCell::materialId ( ) const
inline

Material identifier.

Definition at line 80 of file core/materials/MatItem.h.

References Arcane::Materials::ConstituentItem::componentId().

Referenced by Arcane::Materials::CellMaterialVariableScalarRef< DataType_ >::matValue(), and Arcane::Materials::AcceleratorMeshMaterialSynchronizerImpl::synchronizeMaterialsInCells().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ userMaterial()

IUserMeshMaterial * Arcane::Materials::MatCell::userMaterial ( ) const
inline

Associated user material.

Definition at line 77 of file core/materials/MatItem.h.


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