![]() |
GemaPCR
The GeMA PCR (Partition-Color-Renumber) Plugin
|
The abstract interface for a partition method implementation. More...
#include <gmpGemaPCR.h>

Public Member Functions | |
| GmpPartitionMethod (const QVariantMap &options) | |
| virtual bool | checkOptions (const GmLogCategory &logger)=0 |
| Virtual method responsible for validating the parameters supplied on the class constructor. Can be used to parse the options. Should returns false and emit an error message in case of errors. | |
| virtual void | printParameters (const GmLogCategory &logger) const =0 |
| Virtual method responsible for printing the partition method description. | |
| virtual bool | partition (GmCellMesh *mesh, int numPartitions, QVector< int > &cellPartition, const GmLogCategory &logger) const =0 |
| The cell partition function. It gets as input parameters the cell mesh with a valid cell incidence information plus the number of partitions. On output, it fills cellPartition with the partition number for each mesh cell. The given logger can be used to log error messages if necessary. It should return true on success, false on error. | |
Protected Attributes | |
| const QVariantMap & | _options |
| The user provided options. | |
The abstract interface for a partition method implementation.
|
pure virtual |
Virtual method responsible for validating the parameters supplied on the class constructor. Can be used to parse the options. Should returns false and emit an error message in case of errors.
Implemented in GmpMetisPartitioning, and GmpUserPartitioning.
|
pure virtual |
The cell partition function. It gets as input parameters the cell mesh with a valid cell incidence information plus the number of partitions. On output, it fills cellPartition with the partition number for each mesh cell. The given logger can be used to log error messages if necessary. It should return true on success, false on error.
Implemented in GmpMetisPartitioning, and GmpUserPartitioning.
|
pure virtual |
Virtual method responsible for printing the partition method description.
Implemented in GmpMetisPartitioning, and GmpUserPartitioning.