GemaPCR
The GeMA PCR (Partition-Color-Renumber) Plugin
Loading...
Searching...
No Matches
gmpUserPartitioning.h
Go to the documentation of this file.
1/************************************************************************
2**
3** Copyright (C) 2014 by Carlos Augusto Teixeira Mendes
4** All rights reserved.
5**
6** This file is part of the "GeMA" software. It's use should respect
7** the terms in the license agreement that can be found together
8** with this source code.
9** It is provided AS IS, with NO WARRANTY OF ANY KIND,
10** INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR
11** A PARTICULAR PURPOSE.
12**
13************************************************************************/
14
24#ifndef _GEMA_PLUGIN_GEMA_PCR_USERPARTITIONING_H_
25#define _GEMA_PLUGIN_GEMA_PCR_USERPARTITIONING_H_
26
27#include "gmpGemaPCR.h"
28
32{
33public:
34 // Inherit base class constructor
35 using GmpPartitionMethod::GmpPartitionMethod;
36
37 virtual bool checkOptions (const GmLogCategory& logger);
38 virtual void printParameters(const GmLogCategory& logger) const;
39
40 virtual bool partition(GmCellMesh* mesh, int numPartitions, QVector<int>& cellPartition,
41 const GmLogCategory& logger) const;
42};
43
44
45#endif
The abstract interface for a partition method implementation.
Definition gmpGemaPCR.h:31
Implements the partition method based on a user given table.
Definition gmpUserPartitioning.h:32
virtual bool partition(GmCellMesh *mesh, int numPartitions, QVector< int > &cellPartition, const GmLogCategory &logger) const
The cell partition function. It gets as input parameters the cell mesh with a valid cell incidence in...
Definition gmpUserPartitioning.cpp:57
virtual void printParameters(const GmLogCategory &logger) const
Virtual method responsible for printing the partition method description.
Definition gmpUserPartitioning.cpp:49
virtual bool checkOptions(const GmLogCategory &logger)
Virtual method responsible for validating the parameters supplied on the class constructor....
Definition gmpUserPartitioning.cpp:32
Declaration of the GmpGemaPCR class.