Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::CartesianGridDimension::CellUniqueIdComputer2D Class Reference

Class for calculating the uniqueId() of a cell in 2D based on its position in the grid. More...

Collaboration diagram for Arcane::CartesianGridDimension::CellUniqueIdComputer2D:

Public Member Functions

 CellUniqueIdComputer2D (Int64 base_offset, Int64 all_nb_cell_x)
Int64 compute (Int64 x, Int64 y)
Int64x3 compute (Int64 unique_id)

Private Attributes

Int64 m_base_offset
Int64 m_all_nb_cell_x

Detailed Description

Class for calculating the uniqueId() of a cell in 2D based on its position in the grid.

Definition at line 99 of file CartesianGridDimension.h.

Constructor & Destructor Documentation

◆ CellUniqueIdComputer2D()

Arcane::CartesianGridDimension::CellUniqueIdComputer2D::CellUniqueIdComputer2D ( Int64 base_offset,
Int64 all_nb_cell_x )
inline

Definition at line 103 of file CartesianGridDimension.h.

Member Function Documentation

◆ compute() [1/2]

Int64x3 Arcane::CartesianGridDimension::CellUniqueIdComputer2D::compute ( Int64 unique_id)
inline

Definition at line 114 of file CartesianGridDimension.h.

◆ compute() [2/2]

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer2D::compute ( Int64 x,
Int64 y )
inline

Definition at line 110 of file CartesianGridDimension.h.

Member Data Documentation

◆ m_all_nb_cell_x

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer2D::m_all_nb_cell_x
private

Definition at line 125 of file CartesianGridDimension.h.

◆ m_base_offset

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer2D::m_base_offset
private

Definition at line 124 of file CartesianGridDimension.h.


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