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

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

#include <arcane/cartesianmesh/NodeDirectionMng.h>

Collaboration diagram for Arcane::DirNode:

Classes

struct  DirNodeCellIndex

Public Member Functions

Node previous () const
 Previous cell.
NodeLocalId previousId () const
 Previous cell.
Node next () const
 Next cell.
NodeLocalId nextId () const
 Next cell.
Int32 cellIndex (Int32 position) const
 Index in the list of cells for this node in a cell based on its position.
CellLocalId cellId (Int32 position) const
 Local index of a cell based on its position relative to this node.
Cell cell (Int32 position) const
 Cell based on its position relative to this node.
Cell nextLeftCell () const
 NextLeftCell: Cell in front and to the left in the direction.
Cell nextRightCell () const
 NextRightCell: Cell in front and to the right in the direction.
Cell previousRightCell () const
 PreviousRightCell: Cell behind and to the right in the direction.
Cell previousLeftCell () const
 PreviousLeftCell: Cell behind and to the left in the direction.
CellLocalId nextLeftCellId () const
 NextLeftCell: Cell in front and to the left in the direction.
CellLocalId nextRightCellId () const
 NextRightCell: Cell in front and to the right in the direction.
CellLocalId previousRightCellId () const
 PreviousRightCell: Cell behind and to the right in the direction.
CellLocalId previousLeftCellId () const
 PreviousLeftCell: Cell behind and to the left in the direction.
Cell topNextLeftCell () const
 TopNextLeftCell: Cell in front and to the left in the direction.
Cell topNextRightCell () const
 TopNextRightCell: Cell in front and to the right in the direction.
Cell topPreviousRightCell () const
 TopPreviousRightCell: Cell behind and to the right in the direction.
Cell topPreviousLeftCell () const
 TopPreviousLeftCell: Cell behind and to the left in the direction.
CellLocalId topNextLeftCellId () const
 TopNextLeftCell: Cell in front and to the left in the direction.
CellLocalId topNextRightCellId () const
 TopNextRightCell: Cell in front and to the right in the direction.
CellLocalId topPreviousRightCellId () const
 TopPreviousRightCell: Cell behind and to the right in the direction.
CellLocalId topPreviousLeftCellId () const
 TopPreviousLeftCell: Cell behind and to the left in the direction.

Private Types

typedef signed char IndexType

Private Member Functions

 DirNode (Node current, Node next, Node prev, DirNodeCellIndex idx)

Private Attributes

friend NodeDirectionMng
Node m_current
Node m_previous
Node m_next
DirNodeCellIndex m_cell_index

Static Private Attributes

static constexpr IndexType NULL_CELL = -1

Friends

class DirNodeLocalId

Detailed Description

Node before and after a node following a direction.

Instances of this class are temporary and constructed via NodeDirectionMng::node().

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

Member Typedef Documentation

◆ IndexType

typedef signed char Arcane::DirNode::IndexType
private

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

Constructor & Destructor Documentation

◆ DirNode()

Arcane::DirNode::DirNode ( Node current,
Node next,
Node prev,
DirNodeCellIndex idx )
inlineprivate

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

Member Function Documentation

◆ cell()

Cell Arcane::DirNode::cell ( Int32 position) const
inline

Cell based on its position relative to this node.

Possible values for position are given by the enumeration eCellNodePosition.

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

References cellIndex().

Referenced by nextLeftCell(), nextRightCell(), previousLeftCell(), previousRightCell(), topNextLeftCell(), topNextRightCell(), topPreviousLeftCell(), and topPreviousRightCell().

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

◆ cellId()

CellLocalId Arcane::DirNode::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 99 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()

Int32 Arcane::DirNode::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 92 of file src/arcane/cartesianmesh/NodeDirectionMng.h.

Referenced by cell(), and cellId().

Here is the caller graph for this function:

◆ next()

Node Arcane::DirNode::next ( ) const
inline

Next cell.

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

◆ nextId()

NodeLocalId Arcane::DirNode::nextId ( ) const
inline

Next cell.

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

◆ nextLeftCell()

Cell Arcane::DirNode::nextLeftCell ( ) const
inline

NextLeftCell: Cell in front and to the left in the direction.

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

References cell().

Here is the call graph for this function:

◆ nextLeftCellId()

CellLocalId Arcane::DirNode::nextLeftCellId ( ) const
inline

NextLeftCell: Cell in front and to the left in the direction.

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

References cellId().

Here is the call graph for this function:

◆ nextRightCell()

Cell Arcane::DirNode::nextRightCell ( ) const
inline

NextRightCell: Cell in front and to the right in the direction.

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

References cell().

Here is the call graph for this function:

◆ nextRightCellId()

CellLocalId Arcane::DirNode::nextRightCellId ( ) const
inline

NextRightCell: Cell in front and to the right in the direction.

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

References cellId().

Here is the call graph for this function:

◆ previous()

Node Arcane::DirNode::previous ( ) const
inline

Previous cell.

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

◆ previousId()

NodeLocalId Arcane::DirNode::previousId ( ) const
inline

Previous cell.

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

◆ previousLeftCell()

Cell Arcane::DirNode::previousLeftCell ( ) const
inline

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

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

References cell().

Here is the call graph for this function:

◆ previousLeftCellId()

CellLocalId Arcane::DirNode::previousLeftCellId ( ) const
inline

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

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

References cellId().

Here is the call graph for this function:

◆ previousRightCell()

Cell Arcane::DirNode::previousRightCell ( ) const
inline

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

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

References cell().

Here is the call graph for this function:

◆ previousRightCellId()

CellLocalId Arcane::DirNode::previousRightCellId ( ) const
inline

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

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

References cellId().

Here is the call graph for this function:

◆ topNextLeftCell()

Cell Arcane::DirNode::topNextLeftCell ( ) const
inline

TopNextLeftCell: Cell in front and to the left in the direction.

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

References cell().

Here is the call graph for this function:

◆ topNextLeftCellId()

CellLocalId Arcane::DirNode::topNextLeftCellId ( ) const
inline

TopNextLeftCell: Cell in front and to the left in the direction.

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

References cellId().

Here is the call graph for this function:

◆ topNextRightCell()

Cell Arcane::DirNode::topNextRightCell ( ) const
inline

TopNextRightCell: Cell in front and to the right in the direction.

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

References cell().

Here is the call graph for this function:

◆ topNextRightCellId()

CellLocalId Arcane::DirNode::topNextRightCellId ( ) const
inline

TopNextRightCell: Cell in front and to the right in the direction.

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

References cellId().

Here is the call graph for this function:

◆ topPreviousLeftCell()

Cell Arcane::DirNode::topPreviousLeftCell ( ) const
inline

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

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

References cell().

Here is the call graph for this function:

◆ topPreviousLeftCellId()

CellLocalId Arcane::DirNode::topPreviousLeftCellId ( ) const
inline

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

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

References cellId().

Here is the call graph for this function:

◆ topPreviousRightCell()

Cell Arcane::DirNode::topPreviousRightCell ( ) const
inline

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

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

References cell().

Here is the call graph for this function:

◆ topPreviousRightCellId()

CellLocalId Arcane::DirNode::topPreviousRightCellId ( ) const
inline

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

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

References cellId().

Here is the call graph for this function:

◆ DirNodeLocalId

friend class DirNodeLocalId
friend

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

Member Data Documentation

◆ m_cell_index

DirNodeCellIndex Arcane::DirNode::m_cell_index
private

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

◆ m_current

Node Arcane::DirNode::m_current
private

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

◆ m_next

Node Arcane::DirNode::m_next
private

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

◆ m_previous

Node Arcane::DirNode::m_previous
private

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

◆ NodeDirectionMng

friend Arcane::DirNode::NodeDirectionMng
private

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

◆ NULL_CELL

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

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


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