concepts::MutableMesh1 Class Reference
Class for holding a general mutable mesh of line elements where cells can be added. More...
#include <mutableMesh.hh>
Public Member Functions | |
virtual void | addCell (Cell *cell, bool holding=true) |
Adds a cell to the mesh, which is by default hold and will be deleted by its destructor. More... | |
const Sequence< Cell1 * > & | cells () const |
MutableMesh1 () | |
uint | ncell () const |
Returns the number of cells in the mesh. More... | |
const Sequence< Connector0 * > & | ownConnectors0 () const |
const Sequence< Connector1 * > & | ownConnectors1 () const |
const Sequence< Connector2 * > & | ownConnectors2 () const |
const Sequence< Connector3 * > & | ownConnectors3 () const |
Edge * | ownEdge (Vertex *vtx1, Vertex *vtx2) |
Returns the own edge with the two vertices. More... | |
void | replaceCell (Cell1 *cell, bool holding=true) |
Replaces by cell the cell with the same connector. More... | |
Scan1 * | scan () |
Returns a scanner over the cells of the mesh. More... | |
virtual | ~MutableMesh1 () |
Protected Member Functions | |
void | addCell_ (Cell *cell, bool holding=true) |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
void | replaceCell_ (Cell *cell, bool holding=true) |
Replaces by cell the cell with the same connector. More... | |
Protected Attributes | |
MultiArray< 2, Edge * > | mapEdges_ |
Maps from vertices to connectors. More... | |
Sequence< const Cell * > | ownCells_ |
Stored cells. More... | |
Sequence< Connector0 * > | ownConnectors0_ |
Stored connectors. More... | |
Sequence< Connector1 * > | ownConnectors1_ |
Sequence< Connector2 * > | ownConnectors2_ |
Sequence< Connector3 * > | ownConnectors3_ |
Private Attributes | |
Sequence< Cell1 * > | cells_ |
Cells. More... | |
uint | ncell_ |
Number of cells. More... | |
Detailed Description
Class for holding a general mutable mesh of line elements where cells can be added.
The cells (connectors) have to exist until the deletion of this object.
Definition at line 74 of file mutableMesh.hh.
Constructor & Destructor Documentation
◆ MutableMesh1()
|
inline |
Definition at line 76 of file mutableMesh.hh.
◆ ~MutableMesh1()
|
virtual |
Member Function Documentation
◆ addCell()
|
virtual |
Adds a cell to the mesh, which is by default hold and will be deleted by its destructor.
Implements concepts::MutableMeshBase.
◆ addCell_()
|
protectedinherited |
◆ cells()
Definition at line 92 of file mutableMesh.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Mesh.
◆ ncell()
|
inlinevirtual |
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 78 of file mutableMesh.hh.
◆ ownConnectors0()
|
inlineinherited |
Definition at line 36 of file mutableMesh.hh.
◆ ownConnectors1()
|
inlineinherited |
Definition at line 38 of file mutableMesh.hh.
◆ ownConnectors2()
|
inlineinherited |
Definition at line 40 of file mutableMesh.hh.
◆ ownConnectors3()
|
inlineinherited |
Definition at line 42 of file mutableMesh.hh.
◆ ownEdge()
Returns the own edge with the two vertices.
If it does not exist the new edge will be created, stored and added it to maps from vertices
◆ replaceCell()
void concepts::MutableMesh1::replaceCell | ( | Cell1 * | cell, |
bool | holding = true |
||
) |
Replaces by cell
the cell with the same connector.
This is good to replace the element map while holding the connectivity.
◆ replaceCell_()
|
protectedinherited |
Replaces by cell
the cell with the same connector.
This is good to replace the element map while holding the connectivity.
◆ scan()
|
inlinevirtual |
Returns a scanner over the cells of the mesh.
- Postcondition
- The scanner must be deleted after usage. This has to be done by the user.
Implements concepts::Mesh1.
Definition at line 79 of file mutableMesh.hh.
Member Data Documentation
◆ cells_
Cells.
Definition at line 101 of file mutableMesh.hh.
◆ mapEdges_
|
protectedinherited |
Maps from vertices to connectors.
Definition at line 53 of file mutableMesh.hh.
◆ ncell_
|
private |
Number of cells.
Definition at line 99 of file mutableMesh.hh.
◆ ownCells_
Stored cells.
Definition at line 46 of file mutableMesh.hh.
◆ ownConnectors0_
|
protectedinherited |
Stored connectors.
Definition at line 48 of file mutableMesh.hh.
◆ ownConnectors1_
|
protectedinherited |
Definition at line 49 of file mutableMesh.hh.
◆ ownConnectors2_
|
protectedinherited |
Definition at line 50 of file mutableMesh.hh.
◆ ownConnectors3_
|
protectedinherited |
Definition at line 51 of file mutableMesh.hh.
The documentation for this class was generated from the following file:
- geometry/mutableMesh.hh