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

Node before and after a node following a direction. More...

#include <arcane/cartesianmesh/NodeDirectionMng.h>

Collaboration diagram for Arcane::DirNodeLocalId:

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

Detailed Description

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.

Member Typedef Documentation

◆ IndexType

typedef signed char Arcane::DirNodeLocalId::IndexType
private

Definition at line 175 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

Constructor & Destructor Documentation

◆ DirNodeLocalId()

__host__ __device__ Arcane::DirNodeLocalId::DirNodeLocalId ( NodeLocalId current,
NodeLocalId next,
NodeLocalId prev,
DirNode::DirNodeCellIndex idx,
IndexedNodeCellConnectivityView view )
inlineprivate

Definition at line 181 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

Member Function Documentation

◆ cellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::cellId ( Int32 position) const
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().

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

◆ cellIndex()

__host__ __device__ Int32 Arcane::DirNodeLocalId::cellIndex ( Int32 position) const
inline

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().

Here is the caller graph for this function:

◆ next()

__host__ __device__ NodeLocalId Arcane::DirNodeLocalId::next ( ) const
inline

Next cell.

Definition at line 198 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ nextId()

__host__ __device__ NodeLocalId Arcane::DirNodeLocalId::nextId ( ) const
inline

Next cell.

Definition at line 200 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ nextLeftCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::nextLeftCellId ( ) const
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().

Here is the call graph for this function:

◆ nextRightCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::nextRightCellId ( ) const
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().

Here is the call graph for this function:

◆ previous()

__host__ __device__ NodeLocalId Arcane::DirNodeLocalId::previous ( ) const
inline

Previous cell.

Definition at line 194 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ previousId()

__host__ __device__ NodeLocalId Arcane::DirNodeLocalId::previousId ( ) const
inline

Previous cell.

Definition at line 196 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ previousLeftCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::previousLeftCellId ( ) const
inline

PreviousLeftCell: Cell behind and to the left in the direction.

Definition at line 228 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

References cellId().

Here is the call graph for this function:

◆ previousRightCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::previousRightCellId ( ) const
inline

PreviousRightCell: Cell behind and to the right in the direction.

Definition at line 226 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

References cellId().

Here is the call graph for this function:

◆ topNextLeftCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::topNextLeftCellId ( ) const
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().

Here is the call graph for this function:

◆ topNextRightCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::topNextRightCellId ( ) const
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().

Here is the call graph for this function:

◆ topPreviousLeftCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::topPreviousLeftCellId ( ) const
inline

TopPreviousLeftCell: Cell behind and to the left in the direction.

Definition at line 237 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

References cellId().

Here is the call graph for this function:

◆ topPreviousRightCellId()

__host__ __device__ CellLocalId Arcane::DirNodeLocalId::topPreviousRightCellId ( ) const
inline

TopPreviousRightCell: Cell behind and to the right in the direction.

Definition at line 235 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

References cellId().

Here is the call graph for this function:

Member Data Documentation

◆ m_cell_index

DirNode::DirNodeCellIndex Arcane::DirNodeLocalId::m_cell_index
private

Definition at line 244 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ m_current

NodeLocalId Arcane::DirNodeLocalId::m_current
private

Definition at line 241 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ m_next

NodeLocalId Arcane::DirNodeLocalId::m_next
private

Definition at line 243 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ m_previous

NodeLocalId Arcane::DirNodeLocalId::m_previous
private

Definition at line 242 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ m_view

IndexedNodeCellConnectivityView Arcane::DirNodeLocalId::m_view
private

Definition at line 245 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ NodeDirectionMng

friend Arcane::DirNodeLocalId::NodeDirectionMng
private

Definition at line 171 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

◆ NULL_CELL

IndexType Arcane::DirNodeLocalId::NULL_CELL = -1
staticconstexprprivate

Definition at line 176 of file src/arcane/cartesianmesh/NodeDirectionMng.h.


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