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

Arcane cell with material and environment information. More...

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

Inheritance diagram for Arcane::Materials::AllEnvCell:
Collaboration diagram for Arcane::Materials::AllEnvCell:

Public Member Functions

__host__ __device__ AllEnvCell (const matimpl::ConstituentItemBase &item_base)
__host__ __device__ AllEnvCell (const ComponentCell &item)
__host__ __device__ Int32 nbEnvironment () const
 Number of environments present in the cell.
EnvCell cell (Int32 i) const
 i-th environment cell
__host__ __device__ CellEnvCellEnumerator subEnvItems () const
 Enumerator over the environment cells of this cell.
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.

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

Arcane cell with material and environment information.

Such a cell contains information about the environments for a given cell. It allows, for example, knowing the number of environments and for each the list of materials.

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 167 of file core/materials/MatItem.h.

Constructor & Destructor Documentation

◆ AllEnvCell() [1/2]

__host__ __device__ Arcane::Materials::AllEnvCell::AllEnvCell ( const matimpl::ConstituentItemBase & item_base)
inlineexplicit

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

◆ AllEnvCell() [2/2]

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

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

Member Function Documentation

◆ cell()

EnvCell Arcane::Materials::AllEnvCell::cell ( Int32 i) const
inline

i-th environment cell

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

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

Here is the caller graph for this function:

◆ nbEnvironment()

__host__ __device__ Int32 Arcane::Materials::AllEnvCell::nbEnvironment ( ) const
inline

Number of environments present in the cell.

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

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

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

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

◆ subEnvItems()

__host__ __device__ CellEnvCellEnumerator Arcane::Materials::AllEnvCell::subEnvItems ( ) const
inline

Enumerator over the environment cells of this cell.

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

Referenced by Arcane::Materials::ConstituentItemVectorImpl::_computeNbPureAndImpureLegacy(), Arcane::Materials::MeshMaterialVariableSynchronizer::_fillCellsAccelerator(), Arcane::Materials::MeshMaterialVariableSynchronizer::_fillCellsSequential(), Arcane::Materials::ConstituentItemVectorImpl::_setItems(), and Arcane::Materials::MeshMaterial::findMatCell().

Here is the caller graph for this function:

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