Class defining the line topology of the mesh. More...
#include <MeshVizXLM/mesh/templates/MyLineMeshUnstructured.h>
Public Member Functions | |
size_t | getNumCells () const |
bool | hasDeadCells () const |
bool | isDead (size_t i) const |
const MiLineCell * | getCell (size_t id) const |
size_t | getEndNodeId () const |
size_t | getBeginNodeId () const |
size_t | getTimeStamp () const |
Class defining the line topology of the mesh.
size_t MyLineTopologyExplicitI::getBeginNodeId | ( | ) | const [inline, virtual] |
Returns the first node id used by this topology.
This topology uses only node index in the interval [beginNodeId,EndNodeId[. Thus the maximum node index used by the topology is getEndNodeId() - 1 and the number of nodes used by this topology is getEndNodeId() - getBeginNodeId().
Reimplemented from MiTopologyExplicitI.
const MiLineCell* MyLineTopologyExplicitI::getCell | ( | size_t | id | ) | const [inline, virtual] |
Returns a cell of this topology.
The cell is identified by one id.
Implements MiLineTopologyExplicitI.
size_t MyLineTopologyExplicitI::getEndNodeId | ( | ) | const [inline, virtual] |
Returns the last node id + 1 used by this topology.
This topology uses only node index in the interval [beginNodeId,EndNodeId[. Thus the maximum node index used by the topology is getEndNodeId() - 1 and the number of nodes used by this topology is getEndNodeId() - getBeginNodeId().
Implements MiTopologyExplicitI.
size_t MyLineTopologyExplicitI::getNumCells | ( | ) | const [inline, virtual] |
Returns the number of cells.
Implements MiTopologyI.
size_t MyLineTopologyExplicitI::getTimeStamp | ( | ) | const [inline, virtual] |
Returns a time stamp on this topology.
Implements MiTopology.
bool MyLineTopologyExplicitI::hasDeadCells | ( | ) | const [inline, virtual] |
Returns true if the topology contains dead cells.
When false, the cells traversal can be optimized by not testing the isDead() method of each individual cells.
Reimplemented from MiTopology.
bool MyLineTopologyExplicitI::isDead | ( | size_t | i | ) | const [inline, virtual] |
Returns true if the cell of index i should be ignored.
This value is ignored if the hasDeadCell() method returns false.
i | the index of the cell to check |
Reimplemented from MiTopologyI.