OpenASIP
2.0
|
#include <MachineCheck.hh>
Public Member Functions | |
virtual std::string | shortDescription () const |
virtual std::string | description () const |
virtual bool | check (const TTAMachine::Machine &mach, MachineCheckResults &results) const =0 |
virtual bool | canFix (const TTAMachine::Machine &mach) const |
virtual std::string | fix (TTAMachine::Machine &mach) const |
virtual | ~MachineCheck () |
Protected Member Functions | |
MachineCheck (const std::string &shortDesc_) | |
Private Attributes | |
const std::string & | shortDesc_ |
Short description of the check. More... | |
Base class for checks to perform on a machine.
Definition at line 50 of file MachineCheck.hh.
|
virtual |
|
protected |
The Constructor.
shortDesc | The short description of the check. |
Definition at line 41 of file MachineCheck.cc.
|
virtual |
Returns true if the checker can automatically fix the machine to pass the check.
Reimplemented in MinimalOpSetCheck, and FullyConnectedCheck.
Definition at line 79 of file MachineCheck.cc.
|
pure virtual |
|
virtual |
Returns description of the checker.
Base class implementation returns the checker short description as the long description.
Definition at line 68 of file MachineCheck.cc.
References shortDescription().
|
virtual |
Automatically fixes the machine to pass the test.
The base class implementation always throws InvalidObject.
InvalidData | If the machine can't be fixed automatically. |
Reimplemented in MinimalOpSetCheck, and FullyConnectedCheck.
Definition at line 92 of file MachineCheck.cc.
References __func__.
|
virtual |
Returns short description of the checker.
Definition at line 56 of file MachineCheck.cc.
References shortDesc_.
Referenced by description().
|
private |
Short description of the check.
Definition at line 69 of file MachineCheck.hh.
Referenced by shortDescription().