Node before and after a node following a direction. More...
#include <arcane/cartesianmesh/NodeDirectionMng.h>
Public Member Functions | |
| __host__ __device__ NodeLocalId | previous () const |
| Previous cell. | |
| __host__ __device__ NodeLocalId | previousId () const |
| Previous cell. | |
| __host__ __device__ NodeLocalId | next () const |
| Next cell. | |
| __host__ __device__ NodeLocalId | nextId () const |
| Next cell. | |
| __host__ __device__ Int32 | cellIndex (Int32 position) const |
| Index in the list of cells for this node in a cell based on its position. | |
| __host__ __device__ CellLocalId | cellId (Int32 position) const |
| Local index of a cell based on its position relative to this node. | |
| __host__ __device__ CellLocalId | nextLeftCellId () const |
| NextLeftCell: Cell in front and to the left in the direction. | |
| __host__ __device__ CellLocalId | nextRightCellId () const |
| NextRightCell: Cell in front and to the right in the direction. | |
| __host__ __device__ CellLocalId | previousRightCellId () const |
| PreviousRightCell: Cell behind and to the right in the direction. | |
| __host__ __device__ CellLocalId | previousLeftCellId () const |
| PreviousLeftCell: Cell behind and to the left in the direction. | |
| __host__ __device__ CellLocalId | topNextLeftCellId () const |
| TopNextLeftCell: Cell in front and to the left in the direction. | |
| __host__ __device__ CellLocalId | topNextRightCellId () const |
| TopNextRightCell: Cell in front and to the right in the direction. | |
| __host__ __device__ CellLocalId | topPreviousRightCellId () const |
| TopPreviousRightCell: Cell behind and to the right in the direction. | |
| __host__ __device__ CellLocalId | topPreviousLeftCellId () const |
| TopPreviousLeftCell: Cell behind and to the left in the direction. | |
Private Types | |
| typedef signed char | IndexType |
Private Member Functions | |
| __host__ __device__ | DirNodeLocalId (NodeLocalId current, NodeLocalId next, NodeLocalId prev, DirNode::DirNodeCellIndex idx, IndexedNodeCellConnectivityView view) |
Private Attributes | |
| friend | NodeDirectionMng |
| NodeLocalId | m_current |
| NodeLocalId | m_previous |
| NodeLocalId | m_next |
| DirNode::DirNodeCellIndex | m_cell_index |
| IndexedNodeCellConnectivityView | m_view |
Static Private Attributes | |
| static constexpr IndexType | NULL_CELL = -1 |
Node before and after a node following a direction.
Instances of this class are temporary and constructed via NodeDirectionMng::dirNodeId().
Definition at line 169 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
private |
Definition at line 175 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
inlineprivate |
Definition at line 181 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
inline |
Local index of a cell based on its position relative to this node.
Possible values for position are given by the enumeration eCellNodePosition.
Definition at line 215 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellIndex().
Referenced by nextLeftCellId(), nextRightCellId(), previousLeftCellId(), previousRightCellId(), topNextLeftCellId(), topNextRightCellId(), topPreviousLeftCellId(), and topPreviousRightCellId().
Index in the list of cells for this node in a cell based on its position.
Possible values for position are given by the enumeration eCellNodePosition.
Definition at line 208 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
Referenced by cellId().
|
inline |
Next cell.
Definition at line 198 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
inline |
Next cell.
Definition at line 200 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
inline |
NextLeftCell: Cell in front and to the left in the direction.
Definition at line 222 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
NextRightCell: Cell in front and to the right in the direction.
Definition at line 224 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
Previous cell.
Definition at line 194 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
inline |
Previous cell.
Definition at line 196 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
inline |
PreviousLeftCell: Cell behind and to the left in the direction.
Definition at line 228 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
PreviousRightCell: Cell behind and to the right in the direction.
Definition at line 226 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
TopNextLeftCell: Cell in front and to the left in the direction.
Definition at line 231 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
TopNextRightCell: Cell in front and to the right in the direction.
Definition at line 233 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
TopPreviousLeftCell: Cell behind and to the left in the direction.
Definition at line 237 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
inline |
TopPreviousRightCell: Cell behind and to the right in the direction.
Definition at line 235 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
References cellId().
|
private |
Definition at line 244 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
private |
Definition at line 241 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
private |
Definition at line 243 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
private |
Definition at line 242 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
private |
Definition at line 245 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
private |
Definition at line 171 of file src/arcane/cartesianmesh/NodeDirectionMng.h.
|
staticconstexprprivate |
Definition at line 176 of file src/arcane/cartesianmesh/NodeDirectionMng.h.