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

Node of a mesh. More...

#include <arcane/core/Item.h>

Inheritance diagram for Arcane::Node:
Collaboration diagram for Arcane::Node:

Classes

class  Index
 Index of a Node in a variable. More...

Public Types

typedef NodeLocalId LocalIdType
 Type of localId().
Public Types inherited from Arcane::Item
enum  {
  Unknown = IT_NullType , Vertex = IT_Vertex , Bar2 = IT_Line2 , Tri3 = IT_Triangle3 ,
  Quad4 = IT_Quad4 , Pentagon5 = IT_Pentagon5 , Hexagon6 = IT_Hexagon6 , Tetra = IT_Tetraedron4 ,
  Pyramid = IT_Pyramid5 , Penta = IT_Pentaedron6 , Hexa = IT_Hexaedron8 , Wedge7 = IT_Heptaedron10 ,
  Wedge8 = IT_Octaedron12
}
 Element types. More...
typedef ItemInternalItemInternalPtr
typedef ItemLocalId LocalIdType
 Type of localId().
using ItemBase = impl::ItemBase

Public Member Functions

 Node ()=default
 Creation of a node not connected to the mesh.
 Node (ItemInternal *ainternal)
 (deprecated) Constructs a reference to the entity internal
constexpr Node (const ItemBase &abase)
 Constructs a reference to the entity abase.
constexpr Node (const Item &aitem)
 Constructs a reference to the entity abase.
 Node (const ItemInternalPtr *internals, Int32 local_id)
 Constructs a reference to the entity internal.
Nodeoperator= (ItemInternal *ainternal)
 Copy operator.
constexpr eItemKind kind () const
 Kind of the entity.
constexpr NodeLocalId itemLocalId () const
 Local identifier of the entity in the processor subdomain.
constexpr Int32 nbEdge () const
 Number of edges connected to the node.
constexpr Int32 nbFace () const
 Number of faces connected to the node.
Int32 nbCell () const
 Number of cells connected to the node.
Edge edge (Int32 i) const
 i-th edge of the node
Face face (Int32 i) const
 i-th face of the node
Cell cell (Int32 i) const
 i-th cell of the node
EdgeLocalId edgeId (Int32 i) const
 i-th edge of the node
FaceLocalId faceId (Int32 i) const
 i-th face of the node
CellLocalId cellId (Int32 i) const
 i-th cell of the node
EdgeConnectedListViewType edges () const
 List of edges of the node.
FaceConnectedListViewType faces () const
 List of faces of the node.
CellConnectedListViewType cells () const
 List of cells of the node.
EdgeLocalIdView edgeIds () const
 List of edges of the node.
FaceLocalIdView faceIds () const
 List of faces of the node.
CellLocalIdView cellIds () const
 List of cells of the node.
CellVectorView _internalActiveCells (Int32Array &local_ids) const
 Enumerates the cells connected to the node.
Nodeoperator-> ()
const Nodeoperator-> () const
Public Member Functions inherited from Arcane::Item
 Item ()=default
 Creation of a null mesh entity.
 Item (ItemInternal *ainternal)
 Constructs a reference to the internal entity.
constexpr __host__ __device__ Item (const ItemBase &abase)
 Constructs a reference to the abase entity.
 Item (const ItemInternalPtr *internals, Int32 local_id)
 Constructs a reference to the internal entity.
Itemoperator= (ItemInternal *ainternal)
 Copy operator.
constexpr bool null () const
 true if the entity is null (i.e. not connected to the mesh)
constexpr Int32 localId () const
 Local identifier of the entity in the processor subdomain.
constexpr ItemLocalId itemLocalId () const
 Local identifier of the entity in the processor subdomain.
ItemUniqueId uniqueId () const
 Unique identifier across all domains.
Int32 owner () const
 Owner subdomain number of the entity.
Int16 type () const
 Entity type.
ItemTypeId itemTypeId () const
 Entity type.
IItemFamilyitemFamily () const
 Family from which the entity originates.
constexpr eItemKind kind () const
 Entity kind.
constexpr bool isOwn () const
 true if the entity belongs to the subdomain
bool isShared () const
 True if the entity is shared by other subdomains.
ItemWithNodes toItemWithNodes () const
 Converts the entity to the ItemWithNodes kind.
Node toNode () const
 Converts the entity to the Node kind.
Cell toCell () const
 Converts the entity to the Cell kind.
Edge toEdge () const
 Converts the entity to the Edge kind.
Face toFace () const
 Converts the entity to the Face kind.
Particle toParticle () const
 Converts the entity to the Particle kind.
DoF toDoF () const
 Converts the entity to the DoF kind.
Int32 nbParent () const
 Number of parents for submeshes.
Item parent (Int32 i) const
 i-th parent for submeshes
Item parent () const
 first parent for submeshes
constexpr bool isItemWithNodes () const
 true if the entity is of the ItemWithNodes kind.
constexpr bool isNode () const
 true if the entity is of the Node kind.
constexpr bool isCell () const
 true if the entity is of the Cell kind.
constexpr bool isEdge () const
 true if the entity is of the Edge kind.
constexpr bool isFace () const
 true if the entity is of the Face kind.
constexpr bool isParticle () const
 true if the entity is of the Particle kind.
constexpr bool isDoF () const
 true if the entity is of the DoF kind
constexpr bool hasFlags (Int32 flags) const
 Returns if the flags are set for the entity.
constexpr Int32 flags () const
 Entity flags.
ItemInternalinternal () const
 Internal part of the entity.
impl::ItemBase itemBase () const
 Internal part of the entity.
impl::MutableItemBase mutableItemBase () const
 Mutable internal part of the entity.
const ItemTypeInfotypeInfo () const
 Information about the entity type.
Itemoperator-> ()
const Itemoperator-> () const

Protected Member Functions

constexpr Node (Int32 local_id, ItemSharedInfo *shared_info)
 Constructor reserved for enumerators.
Protected Member Functions inherited from Arcane::Item
constexpr __host__ __device__ Item (Int32 local_id, ItemSharedInfo *shared_info)
 Constructor reserved for enumerators.
constexpr void _checkKind (bool is_valid) const
void _badConversion () const
void _set (ItemInternal *ainternal)
constexpr void _set (const Item &rhs)
constexpr Int32 _flags () const
 Entity flags.
constexpr Integer _nbNode () const
 Number of nodes of the entity.
constexpr Integer _nbEdge () const
 Number of edges of the entity or number of edges connected to the entity (for nodes).
constexpr Integer _nbFace () const
 Number of faces of the entity or number of faces connected to the entity (for nodes and edges).
constexpr Integer _nbCell () const
 Number of cells connected to the entity (for nodes, edges and faces).
Int32 _nbHParent () const
 Number of parents for AMR.
Int32 _nbHChildren () const
 Number of children for AMR.
Integer _nbParent () const
 Number of parents for submeshes.
constexpr NodeLocalId _nodeId (Int32 index) const
constexpr EdgeLocalId _edgeId (Int32 index) const
constexpr FaceLocalId _faceId (Int32 index) const
constexpr CellLocalId _cellId (Int32 index) const
Int32 _hParentId (Int32 index) const
Int32 _hChildId (Int32 index) const
impl::ItemIndexedListView< DynExtent_nodeList () const
impl::ItemIndexedListView< DynExtent_edgeList () const
impl::ItemIndexedListView< DynExtent_faceList () const
impl::ItemIndexedListView< DynExtent_cellList () const
NodeLocalIdView _nodeIds () const
EdgeLocalIdView _edgeIds () const
FaceLocalIdView _faceIds () const
CellLocalIdView _cellIds () const
constexpr Node _node (Int32 index) const
constexpr Edge _edge (Int32 index) const
constexpr Face _face (Int32 index) const
constexpr Cell _cell (Int32 index) const
ItemBase _hParentBase (Int32 index) const
ItemBase _hChildBase (Int32 index) const
ItemBase _toItemBase () const
Int32 _nbLinearNode () const
 Number of nodes of the entity.

Private Types

using ThatClass = Node

Friends

class ItemEnumeratorBaseT< ThatClass >
class ItemConnectedEnumeratorBaseT< ThatClass >
class ItemVectorT< ThatClass >
class ItemVectorViewT< ThatClass >
class ItemConnectedListViewT< ThatClass >
class ItemVectorViewConstIteratorT< ThatClass >
class ItemConnectedListViewConstIteratorT< ThatClass >
class SimdItemT< ThatClass >
class ItemInfoListViewT< ThatClass >
class ItemLocalIdToItemConverterT< ThatClass >

Additional Inherited Members

Static Public Member Functions inherited from Arcane::Item
static String typeName (Int32 type)
 Cell type name cell_type.
static void dumpStats (ITraceMng *tm)
static void resetStats ()
Static Public Attributes inherited from Arcane::Item
static const Int32 NULL_ELEMENT = NULL_ITEM_ID
 Null element index.
Protected Attributes inherited from Arcane::Item
Int32 m_local_id = NULL_ITEM_LOCAL_ID
 Local number (in the subdomain) of the entity.

Detailed Description

Node of a mesh.

Definition at line 596 of file Item.h.

Member Typedef Documentation

◆ LocalIdType

typedef NodeLocalId Arcane::Node::LocalIdType

Type of localId().

Definition at line 646 of file Item.h.

◆ ThatClass

using Arcane::Node::ThatClass = Node
private

Definition at line 599 of file Item.h.

Constructor & Destructor Documentation

◆ Node() [1/6]

Arcane::Node::Node ( Int32 local_id,
ItemSharedInfo * shared_info )
inlineconstexprprotected

Constructor reserved for enumerators.

Definition at line 639 of file Item.h.

References Arcane::Item::Item().

Referenced by operator=().

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

◆ Node() [2/6]

Arcane::Node::Node ( )
default

Creation of a node not connected to the mesh.

Definition at line 1890 of file DomLibXml2.cc.

◆ Node() [3/6]

Arcane::Node::Node ( ItemInternal * ainternal)
inline

(deprecated) Constructs a reference to the entity internal

Definition at line 652 of file Item.h.

References Arcane::Item::isNode(), and Arcane::Item::Item().

Here is the call graph for this function:

◆ Node() [4/6]

Arcane::Node::Node ( const ItemBase & abase)
inlineconstexpr

Constructs a reference to the entity abase.

Definition at line 659 of file Item.h.

References Arcane::Item::isNode(), and Arcane::Item::Item().

Here is the call graph for this function:

◆ Node() [5/6]

Arcane::Node::Node ( const Item & aitem)
inlineexplicitconstexpr

Constructs a reference to the entity abase.

Definition at line 666 of file Item.h.

References Arcane::Item::isNode(), and Arcane::Item::Item().

Here is the call graph for this function:

◆ Node() [6/6]

Arcane::Node::Node ( const ItemInternalPtr * internals,
Int32 local_id )
inline

Constructs a reference to the entity internal.

Definition at line 673 of file Item.h.

References Arcane::Item::isNode(), and Arcane::Item::Item().

Here is the call graph for this function:

Member Function Documentation

◆ _internalActiveCells()

CellVectorView Arcane::Node::_internalActiveCells ( Int32Array & local_ids) const
inline

Enumerates the cells connected to the node.

Definition at line 742 of file Item.h.

◆ cell()

Cell Arcane::Node::cell ( Int32 i) const
inline

i-th cell of the node

Definition at line 1743 of file Item.h.

Referenced by Arcane::ArcaneBasicMeshSubdividerService::_refineOnce(), Arcane::SplitSDMeshPartitioner::LissageDuFront(), and Arcane::SplitSDMeshPartitioner::ParcoursFrontalDelta().

Here is the caller graph for this function:

◆ cellId()

CellLocalId Arcane::Node::cellId ( Int32 i) const
inline

i-th cell of the node

Definition at line 719 of file Item.h.

◆ cellIds()

CellLocalIdView Arcane::Node::cellIds ( ) const
inline

List of cells of the node.

Definition at line 737 of file Item.h.

◆ cells()

◆ edge()

Edge Arcane::Node::edge ( Int32 i) const
inline

i-th edge of the node

Definition at line 1731 of file Item.h.

◆ edgeId()

EdgeLocalId Arcane::Node::edgeId ( Int32 i) const
inline

i-th edge of the node

Definition at line 713 of file Item.h.

◆ edgeIds()

EdgeLocalIdView Arcane::Node::edgeIds ( ) const
inline

List of edges of the node.

Definition at line 731 of file Item.h.

◆ edges()

EdgeConnectedListViewType Arcane::Node::edges ( ) const
inline

List of edges of the node.

Definition at line 722 of file Item.h.

Referenced by Arcane::mesh::ItemTools::findEdgeInNode2().

Here is the caller graph for this function:

◆ face()

Face Arcane::Node::face ( Int32 i) const
inline

i-th face of the node

Definition at line 1737 of file Item.h.

Referenced by Arcane::MeshUtils::getFaceFromNodesLocalId(), and Arcane::MeshUtils::getFaceFromNodesUniqueId().

Here is the caller graph for this function:

◆ faceId()

FaceLocalId Arcane::Node::faceId ( Int32 i) const
inline

i-th face of the node

Definition at line 716 of file Item.h.

◆ faceIds()

FaceLocalIdView Arcane::Node::faceIds ( ) const
inline

List of faces of the node.

Definition at line 734 of file Item.h.

◆ faces()

FaceConnectedListViewType Arcane::Node::faces ( ) const
inline

List of faces of the node.

Definition at line 725 of file Item.h.

Referenced by Arcane::MEDMeshReader::_readFaces(), and Arcane::mesh::ItemTools::findFaceInNode2().

Here is the caller graph for this function:

◆ itemLocalId()

NodeLocalId Arcane::Node::itemLocalId ( ) const
inlineconstexpr

Local identifier of the entity in the processor subdomain.

Definition at line 692 of file Item.h.

References Arcane::Item::m_local_id.

◆ kind()

eItemKind Arcane::Node::kind ( ) const
inlineconstexpr

Kind of the entity.

Definition at line 689 of file Item.h.

References Arcane::IK_Node.

◆ nbCell()

Int32 Arcane::Node::nbCell ( ) const
inline

Number of cells connected to the node.

Definition at line 701 of file Item.h.

References Arcane::Item::_nbCell().

Referenced by Arcane::SplitSDMeshPartitioner::LissageDuFront(), Arcane::SplitSDMeshPartitioner::ParcoursFrontalDelta(), and Arcane::mesh::NodeFamily::removeNodeIfNotConnected().

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

◆ nbEdge()

Int32 Arcane::Node::nbEdge ( ) const
inlineconstexpr

Number of edges connected to the node.

Definition at line 695 of file Item.h.

References Arcane::Item::_nbEdge().

Here is the call graph for this function:

◆ nbFace()

Int32 Arcane::Node::nbFace ( ) const
inlineconstexpr

Number of faces connected to the node.

Definition at line 698 of file Item.h.

References Arcane::Item::_nbFace().

Referenced by Arcane::MeshUtils::getFaceFromNodesLocalId(), and Arcane::MeshUtils::getFaceFromNodesUniqueId().

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

◆ operator->() [1/2]

Node * Arcane::Node::operator-> ( )
inline

Definition at line 748 of file Item.h.

◆ operator->() [2/2]

const Node * Arcane::Node::operator-> ( ) const
inline

Definition at line 751 of file Item.h.

◆ operator=()

Node & Arcane::Node::operator= ( ItemInternal * ainternal)
inline

Copy operator.

Definition at line 680 of file Item.h.

References Node().

Here is the call graph for this function:

◆ ItemConnectedEnumeratorBaseT< ThatClass >

friend class ItemConnectedEnumeratorBaseT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemConnectedListViewConstIteratorT< ThatClass >

friend class ItemConnectedListViewConstIteratorT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemConnectedListViewT< ThatClass >

friend class ItemConnectedListViewT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemEnumeratorBaseT< ThatClass >

friend class ItemEnumeratorBaseT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemInfoListViewT< ThatClass >

friend class ItemInfoListViewT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemLocalIdToItemConverterT< ThatClass >

friend class ItemLocalIdToItemConverterT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemVectorT< ThatClass >

friend class ItemVectorT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemVectorViewConstIteratorT< ThatClass >

friend class ItemVectorViewConstIteratorT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ ItemVectorViewT< ThatClass >

friend class ItemVectorViewT< ThatClass >
friend

Definition at line 1933 of file Item.h.

◆ SimdItemT< ThatClass >

friend class SimdItemT< ThatClass >
friend

Definition at line 1933 of file Item.h.


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