Conversion of 'Cell' to 'AllEnvCell'. More...
#include <arcane/core/materials/CellToAllEnvCellConverter.h>
Public Member Functions | |
| CellToAllEnvCellConverter (IMeshMaterialMng *mm) | |
| AllEnvCell | operator[] (Cell c) |
| Converts a Cell cell to an AllEnvCell cell. | |
| __host__ __device__ AllEnvCell | operator[] (CellLocalId c) const |
| Converts a CellLocalId cell to an AllEnvCell cell. | |
Private Member Functions | |
| CellToAllEnvCellConverter (ComponentItemSharedInfo *shared_info) | |
Private Attributes | |
| ComponentItemSharedInfo * | m_shared_info = nullptr |
Friends | |
| class | MeshMaterialMng |
Conversion of 'Cell' to 'AllEnvCell'.
Instances of this class allow converting a cell Cell into an AllEnvCell cell to obtain material information.
An instance is created via the material manager:
The creation cost is low, equivalent to a virtual function call. It is therefore not negligible, and it is preferable not to construct an instance inside loops over entities, for example, but outside them.
Once the instance is created, it is then possible to use the [] operator (operator[]()) to perform the conversion:
Definition at line 70 of file core/materials/CellToAllEnvCellConverter.h.
|
inlineexplicit |
Definition at line 76 of file core/materials/CellToAllEnvCellConverter.h.
|
inlineexplicitprivate |
Definition at line 83 of file core/materials/CellToAllEnvCellConverter.h.
|
inline |
Converts a Cell cell to an AllEnvCell cell.
Definition at line 91 of file core/materials/CellToAllEnvCellConverter.h.
References operator[]().
Referenced by operator[]().
|
inline |
Converts a CellLocalId cell to an AllEnvCell cell.
Definition at line 97 of file core/materials/CellToAllEnvCellConverter.h.
|
friend |
Definition at line 72 of file core/materials/CellToAllEnvCellConverter.h.
|
private |
Definition at line 104 of file core/materials/CellToAllEnvCellConverter.h.