Modification of the topology of a family's entities. More...
#include <arcane/mesh/AbstractItemFamilyTopologyModifier.h>
Public Member Functions | |
| AbstractItemFamilyTopologyModifier (IItemFamily *afamily) | |
| IItemFamily * | family () 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. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () 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 | |
| IItemFamily * | m_family |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Modification of the topology of a family's entities.
Definition at line 35 of file AbstractItemFamilyTopologyModifier.h.
| Arcane::mesh::AbstractItemFamilyTopologyModifier::AbstractItemFamilyTopologyModifier | ( | IItemFamily * | afamily | ) |
Definition at line 32 of file AbstractItemFamilyTopologyModifier.cc.
|
inlinevirtual |
Definition at line 42 of file AbstractItemFamilyTopologyModifier.h.
|
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().
|
inlineprivate |
Definition at line 66 of file AbstractItemFamilyTopologyModifier.cc.
|
private |
Definition at line 75 of file AbstractItemFamilyTopologyModifier.cc.
|
overridevirtual |
Associated family.
Implements Arcane::IItemFamilyTopologyModifier.
Definition at line 42 of file AbstractItemFamilyTopologyModifier.cc.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
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.
|
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.
|
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().
|
private |
Definition at line 69 of file AbstractItemFamilyTopologyModifier.h.