Represents a component of a multi-material cell. More...
#include <arcane/core/materials/ConstituentItem.h>
Public Member Functions | |
| __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 |
| IMeshComponent * | component () 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. | |
Protected Member Functions | |
| __host__ __device__ matimpl::ConstituentItemBase | _subItemBase (Int32 index) const |
| __host__ __device__ matimpl::ConstituentItemBase | _superItemBase () const |
| __host__ __device__ ConstituentItemIndex | _firstSubConstituentLocalId () const |
Static Protected Member Functions | |
| 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 | |
| ConstituentItemIndex | m_constituent_item_index |
| ComponentItemSharedInfo * | m_shared_info = nullptr |
Private Member Functions | |
| __host__ __device__ ConstituentItemIndex | _constituentItemIndex () const |
Private Attributes | |
| friend | CellComponentCellEnumerator |
| friend | EnvCellVector |
| friend | MatCellVector |
| friend | MeshMaterialMng |
| friend | AllEnvCell |
| friend | EnvCell |
| friend | MatCell |
| friend | ConstituentItemVectorImpl |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const ComponentCell &mvi) |
| Output operator. | |
Represents a component of a multi-material cell.
This object represents a component of a multi-material cell. By component, we mean a material (MatCell), an environment (EnvCell), or an allenvcell (AllEnvCell).
There is a notion of hierarchy between these components, and it is possible to retrieve the higher-level ConstituentItem via superCell(). To iterate over lower-level elements, it is possible to use the macro ENUMERATE_CELL_COMPONENTCELL()
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, no other methods of the class should be called under penalty of causing a crash.
Definition at line 52 of file ConstituentItem.h.
|
inline |
Definition at line 66 of file ConstituentItem.h.
|
inline |
Definition at line 71 of file ConstituentItem.h.
|
staticprotected |
Definition at line 39 of file ComponentItem.cc.
|
inlinestaticprotected |
Definition at line 141 of file ConstituentItem.h.
|
inlineprivate |
Definition at line 175 of file ConstituentItem.h.
|
inlineprotected |
Definition at line 162 of file ConstituentItem.h.
|
inlineprotected |
Definition at line 154 of file ConstituentItem.h.
|
inlineprotected |
Definition at line 158 of file ConstituentItem.h.
|
inline |
Definition at line 86 of file ConstituentItem.h.
Referenced by Arcane::Materials::MeshMaterialMng::checkValid(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::dumpValues(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::fillFromArray(), Arcane::Materials::ItemMaterialVariableScalar< DataType >::fillToArray(), Arcane::Materials::AllEnvData::forceRecompute(), and operator ComponentItemLocalId().
|
inline |
|
inline |
Component identifier in the list of components of this type.
Definition at line 97 of file ConstituentItem.h.
Referenced by Arcane::Materials::EnvCell::environmentId(), and Arcane::Materials::MatCell::materialId().
|
inline |
Unique number of the constituent entity.
This number is unique for each constituent of each cell.
Definition at line 130 of file ConstituentItem.h.
|
inline |
Definition at line 88 of file ConstituentItem.h.
|
inline |
Global cell.
Definition at line 112 of file ConstituentItem.h.
Referenced by Arcane::Materials::AllEnvData::_checkLocalIdsCoherency(), Arcane::Materials::MeshMaterialMng::checkValid(), Arcane::Materials::MeshMaterialMng::dumpCellInfos(), and Arcane::Materials::ItemMaterialVariableScalar< DataType >::dumpValues().
|
inline |
localId() of the global cell
Definition at line 118 of file ConstituentItem.h.
|
inline |
Hierarchical level of the entity.
Definition at line 106 of file ConstituentItem.h.
Referenced by Arcane::Materials::MeshMaterialMng::checkValid().
|
inline |
Number of sub-elements.
Definition at line 109 of file ConstituentItem.h.
Referenced by Arcane::Materials::AllEnvCell::nbEnvironment().
|
inline |
Indicates if it is the null cell.
Definition at line 100 of file ConstituentItem.h.
|
inline |
Conversion operator to a ComponentItemLocalId.
Definition at line 81 of file ConstituentItem.h.
References _varIndex().
|
inline |
List of sub-constituents of this entity.
Definition at line 351 of file ConstituentItem.h.
|
inline |
Higher-level cell in the hierarchy.
Definition at line 103 of file ConstituentItem.h.
|
friend |
Output operator.
Definition at line 28 of file ComponentItem.cc.
References operator<<.
Referenced by operator<<.
|
private |
Definition at line 59 of file ConstituentItem.h.
|
private |
Definition at line 55 of file ConstituentItem.h.
|
private |
Definition at line 62 of file ConstituentItem.h.
|
private |
Definition at line 60 of file ConstituentItem.h.
|
private |
Definition at line 56 of file ConstituentItem.h.
|
protected |
Definition at line 169 of file ConstituentItem.h.
|
protected |
Definition at line 170 of file ConstituentItem.h.
|
private |
Definition at line 61 of file ConstituentItem.h.
|
private |
Definition at line 57 of file ConstituentItem.h.
|
private |
Definition at line 58 of file ConstituentItem.h.