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

Modification of the topology of a family's entities. More...

#include <arcane/mesh/AbstractItemFamilyTopologyModifier.h>

Inheritance diagram for Arcane::mesh::AbstractItemFamilyTopologyModifier:
Collaboration diagram for Arcane::mesh::AbstractItemFamilyTopologyModifier:

Public Member Functions

 AbstractItemFamilyTopologyModifier (IItemFamily *afamily)
IItemFamilyfamily () const override
 Associated family.
void replaceNode (ItemLocalId item_lid, Integer index, ItemLocalId new_node_lid) override
 Replaces a node of an entity.
void replaceEdge (ItemLocalId item_lid, Integer index, ItemLocalId new_edge_lid) override
 Replaces an edge of an entity.
void replaceFace (ItemLocalId item_lid, Integer index, ItemLocalId new_face_lid) override
 Replaces a face of an entity.
void replaceCell (ItemLocalId item_lid, Integer index, ItemLocalId new_cell_lid) override
 Replaces a cell of an entity.
void replaceHParent (ItemLocalId item_lid, Integer index, ItemLocalId new_hparent_lid) override
 Replaces a parent entity of an entity.
void replaceHChild (ItemLocalId item_lid, Integer index, ItemLocalId new_hchild_lid) override
 Replaces a child entity of an entity.
void findAndReplaceNode (ItemLocalId item_lid, ItemLocalId old_node_lid, ItemLocalId new_node_lid) override
 Finds and replaces a node of an entity.
void findAndReplaceEdge (ItemLocalId item_lid, ItemLocalId old_edge_lid, ItemLocalId new_edge_lid) override
 Finds and replaces an edge of an entity.
void findAndReplaceFace (ItemLocalId item_lid, ItemLocalId old_face_lid, ItemLocalId new_face_lid) override
 Finds and replaces a face of an entity.
void findAndReplaceCell (ItemLocalId item_lid, ItemLocalId old_cell_lid, ItemLocalId new_cell_lid) override
 Finds and replaces a cell of an entity.
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () const
 Trace manager.
TraceMessage info () const
 Flow for an information message.
TraceMessage pinfo () const
 Flow for a parallel information message.
TraceMessage info (char category) const
 Flow for an information message of a given category.
TraceMessage pinfo (char category) const
 Flow for a parallel information message of a given category.
TraceMessage info (bool v) const
 Flow for an information message.
TraceMessage warning () const
 Flow for a warning message.
TraceMessage pwarning () const
TraceMessage error () const
 Flow for an error message.
TraceMessage perror () const
TraceMessage log () const
 Flow for a log message.
TraceMessage plog () const
 Flow for a log message.
TraceMessage logdate () const
 Flow for a log message preceded by the date.
TraceMessage fatal () const
 Flow for a fatal error message.
TraceMessage pfatal () const
 Flow for a parallel fatal error message.
TraceMessageDbg debug (Trace::eDebugLevel=Trace::Medium) const
 Flow for a debug message.
Trace::eDebugLevel configDbgLevel () const
 Debug level of the configuration file.
TraceMessage info (Int32 verbose_level) const
 Flow for an information message of a given level.
TraceMessage linfo () const
 Flow for an information message with the local information level of this instance.
TraceMessage linfo (Int32 relative_level) const
 Flow for an information message with the local information level of this instance.
void fatalMessage (const StandaloneTraceMessage &o) const
Public Member Functions inherited from Arcane::IItemFamilyTopologyModifier
virtual ~IItemFamilyTopologyModifier ()=default
 Frees resources.
virtual void setBackAndFrontCells (FaceLocalId face_lid, CellLocalId back_cell_lid, CellLocalId front_cell_lid)
 Positions a cell in front and behind a face.

Private Member Functions

void _throwNotSupported ()
Int32 _getItemIndex (const Int32 *items, Integer nb_item, Int32 local_id)
 Searches for the index of the entity with localid() local_id in the list items.
Int32 _getItemIndex (ItemVectorView items, Int32 local_id)

Private Attributes

IItemFamilym_family

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Modification of the topology of a family's entities.

Definition at line 35 of file AbstractItemFamilyTopologyModifier.h.

Constructor & Destructor Documentation

◆ AbstractItemFamilyTopologyModifier()

Arcane::mesh::AbstractItemFamilyTopologyModifier::AbstractItemFamilyTopologyModifier ( IItemFamily * afamily)

Definition at line 32 of file AbstractItemFamilyTopologyModifier.cc.

◆ ~AbstractItemFamilyTopologyModifier()

virtual Arcane::mesh::AbstractItemFamilyTopologyModifier::~AbstractItemFamilyTopologyModifier ( )
inlinevirtual

Definition at line 42 of file AbstractItemFamilyTopologyModifier.h.

Member Function Documentation

◆ _getItemIndex() [1/2]

Integer Arcane::mesh::AbstractItemFamilyTopologyModifier::_getItemIndex ( const Int32 * items,
Integer nb_item,
Int32 local_id )
inlineprivate

Searches for the index of the entity with localid() local_id in the list items.

Definition at line 54 of file AbstractItemFamilyTopologyModifier.cc.

References ARCANE_FATAL.

Referenced by findAndReplaceCell(), findAndReplaceEdge(), findAndReplaceFace(), and findAndReplaceNode().

Here is the caller graph for this function:

◆ _getItemIndex() [2/2]

Integer Arcane::mesh::AbstractItemFamilyTopologyModifier::_getItemIndex ( ItemVectorView items,
Int32 local_id )
inlineprivate

Definition at line 66 of file AbstractItemFamilyTopologyModifier.cc.

◆ _throwNotSupported()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::_throwNotSupported ( )
private

Definition at line 75 of file AbstractItemFamilyTopologyModifier.cc.

◆ family()

IItemFamily * Arcane::mesh::AbstractItemFamilyTopologyModifier::family ( ) const
overridevirtual

Associated family.

Implements Arcane::IItemFamilyTopologyModifier.

Definition at line 42 of file AbstractItemFamilyTopologyModifier.cc.

◆ findAndReplaceCell()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::findAndReplaceCell ( ItemLocalId item_lid,
ItemLocalId old_cell_lid,
ItemLocalId new_cell_lid )
overridevirtual

Finds and replaces a cell of an entity.

Replaces the cell with local ID old_cell_lid of the entity in the family family() with local ID item_lid by the face with local ID new_cell_lid.

Throws an exception if the cell old_cell_lid is not found.

Implements Arcane::IItemFamilyTopologyModifier.

Definition at line 193 of file AbstractItemFamilyTopologyModifier.cc.

References _getItemIndex(), Arcane::ItemBase::itemLocalId(), and replaceCell().

Here is the call graph for this function:

◆ findAndReplaceEdge()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::findAndReplaceEdge ( ItemLocalId item_lid,
ItemLocalId old_edge_lid,
ItemLocalId new_edge_lid )
overridevirtual

Finds and replaces an edge of an entity.

Replaces the edge with local ID old_edge_lid of the entity in the family family() with local ID item_lid by the edge with local ID new_edge_lid.

Throws an exception if the edge old_edge_lid is not found.

Implements Arcane::IItemFamilyTopologyModifier.

Definition at line 169 of file AbstractItemFamilyTopologyModifier.cc.

References _getItemIndex(), Arcane::ItemBase::itemLocalId(), and replaceEdge().

Here is the call graph for this function:

◆ findAndReplaceFace()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::findAndReplaceFace ( ItemLocalId item_lid,
ItemLocalId old_face_lid,
ItemLocalId new_face_lid )
overridevirtual

Finds and replaces a face of an entity.

Replaces the face with local ID old_face_lid of the entity in the family family() with local ID item_lid by the face with local ID new_face_lid.

Throws an exception if the face old_face_lid is not found.

Implements Arcane::IItemFamilyTopologyModifier.

Definition at line 181 of file AbstractItemFamilyTopologyModifier.cc.

References _getItemIndex(), Arcane::ItemBase::itemLocalId(), and replaceFace().

Here is the call graph for this function:

◆ findAndReplaceNode()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::findAndReplaceNode ( ItemLocalId item_lid,
ItemLocalId old_node_lid,
ItemLocalId new_node_lid )
overridevirtual

Finds and replaces a node of an entity.

Replaces the node with local ID old_node_lid of the entity in the family family() with local ID item_lid by the node with local ID new_node_lid.

Throws an exception if the node old_node_id is not found.

Implements Arcane::IItemFamilyTopologyModifier.

Definition at line 157 of file AbstractItemFamilyTopologyModifier.cc.

References _getItemIndex(), Arcane::ItemBase::itemLocalId(), Arcane::ItemBase::nodeList(), and replaceNode().

Here is the call graph for this function:

◆ replaceCell()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::replaceCell ( ItemLocalId item_lid,
Integer index,
ItemLocalId new_cell_lid )
overridevirtual

Replaces a cell of an entity.

Replaces the index-th cell of the entity in the family family() with local ID item_lid by the face with local ID new_cell_lid.

Implements Arcane::IItemFamilyTopologyModifier.

Reimplemented in Arcane::mesh::FaceFamily::TopologyModifier, and Arcane::mesh::NodeFamily::TopologyModifier.

Definition at line 121 of file AbstractItemFamilyTopologyModifier.cc.

Referenced by findAndReplaceCell().

Here is the caller graph for this function:

◆ replaceEdge()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::replaceEdge ( ItemLocalId item_lid,
Integer index,
ItemLocalId new_edge_lid )
overridevirtual

Replaces an edge of an entity.

Replaces the index-th edge of the entity in the family family() with local ID item_lid by the edge with local ID new_edge_lid.

Implements Arcane::IItemFamilyTopologyModifier.

Reimplemented in Arcane::mesh::CellFamily::TopologyModifier, Arcane::mesh::FaceFamily::TopologyModifier, and Arcane::mesh::NodeFamily::TopologyModifier.

Definition at line 97 of file AbstractItemFamilyTopologyModifier.cc.

Referenced by findAndReplaceEdge().

Here is the caller graph for this function:

◆ replaceFace()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::replaceFace ( ItemLocalId item_lid,
Integer index,
ItemLocalId new_face_lid )
overridevirtual

Replaces a face of an entity.

Replaces the index-th face of the entity in the family family() with local ID item_lid by the face with local ID new_face_lid.

Implements Arcane::IItemFamilyTopologyModifier.

Reimplemented in Arcane::mesh::CellFamily::TopologyModifier, Arcane::mesh::FaceFamily::TopologyModifier, and Arcane::mesh::NodeFamily::TopologyModifier.

Definition at line 109 of file AbstractItemFamilyTopologyModifier.cc.

Referenced by findAndReplaceFace().

Here is the caller graph for this function:

◆ replaceHChild()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::replaceHChild ( ItemLocalId item_lid,
Integer index,
ItemLocalId new_hchild_lid )
overridevirtual

Replaces a child entity of an entity.

Replaces the index-th child entity of the entity in the family family() with local ID item_lid by the child entity with local ID new_hchild_lid.

Implements Arcane::IItemFamilyTopologyModifier.

Reimplemented in Arcane::mesh::CellFamily::TopologyModifier.

Definition at line 145 of file AbstractItemFamilyTopologyModifier.cc.

◆ replaceHParent()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::replaceHParent ( ItemLocalId item_lid,
Integer index,
ItemLocalId new_hparent_lid )
overridevirtual

Replaces a parent entity of an entity.

Replaces the index-th parent entity of the entity in the family family() with local ID item_lid by the parent entity with local ID new_hparent_lid.

Implements Arcane::IItemFamilyTopologyModifier.

Reimplemented in Arcane::mesh::CellFamily::TopologyModifier.

Definition at line 133 of file AbstractItemFamilyTopologyModifier.cc.

◆ replaceNode()

void Arcane::mesh::AbstractItemFamilyTopologyModifier::replaceNode ( ItemLocalId item_lid,
Integer index,
ItemLocalId new_node_lid )
overridevirtual

Replaces a node of an entity.

Replaces the index-th node of the entity in the family family() with local ID item_lid by the node with local ID new_node_lid.

Implements Arcane::IItemFamilyTopologyModifier.

Reimplemented in Arcane::mesh::CellFamily::TopologyModifier, Arcane::mesh::EdgeFamily::TopologyModifier, and Arcane::mesh::FaceFamily::TopologyModifier.

Definition at line 85 of file AbstractItemFamilyTopologyModifier.cc.

Referenced by findAndReplaceNode().

Here is the caller graph for this function:

Member Data Documentation

◆ m_family

IItemFamily* Arcane::mesh::AbstractItemFamilyTopologyModifier::m_family
private

Definition at line 69 of file AbstractItemFamilyTopologyModifier.h.


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