![]() |
GemaCoreLib
The GeMA Core library
|
Declaration of the GmCellMesh interface class. More...
Go to the source code of this file.
Classes | |
class | GmCellMesh |
Base interface class for CellMesh type plugins. More... | |
struct | GmCellMesh::GmCellEdgeStatistics |
struct | GmCellMesh::GmCellBboxStatistics |
class | GmForeachCellHelperClass< T > |
Helper class for the GmForeachActiveXxxx() family of macros. More... | |
Macros | |
#define | GmForeachCellHelper(variable, container, contType, cellType, activeOnly) |
Helper macro used to traverse all the (active) cells in a generic container. Should NOT be used in user code. More... | |
#define | GmForeachActiveCell(variable, mesh) GmForeachCellHelper(variable, mesh, GmCellMesh, GmCell, true) |
Macro used to traverse all the active cells in a mesh. More... | |
#define | GmForeachCell(variable, mesh, activeOnly) GmForeachCellHelper(variable, mesh, GmCellMesh, GmCell, activeOnly) |
Similar to GmForeachActiveCell but with a flag (activeOnly) controlling if all cells will be traversed or only the active ones. | |
Declaration of the GmCellMesh interface class.
#define GmForeachActiveCell | ( | variable, | |
mesh | |||
) | GmForeachCellHelper(variable, mesh, GmCellMesh, GmCell, true) |
Macro used to traverse all the active cells in a mesh.
Can be used as:
#define GmForeachCellHelper | ( | variable, | |
container, | |||
contType, | |||
cellType, | |||
activeOnly | |||
) |
Helper macro used to traverse all the (active) cells in a generic container. Should NOT be used in user code.
The implementation is largelly inspired by the implementation of the Qt foreach macro, so it can include break. The container parameter should be a pointer.
From the documentation of the Q_FOREACH macro:
Explanation of the control word: