OpenASIP
2.0
|
#include <MachineCheckSuite.hh>
Public Member Functions | |
virtual | ~MachineCheckSuite () |
int | checkCount () const |
const MachineCheck & | check (int index) |
bool | run (const TTAMachine::Machine &machine, MachineCheckResults &results) |
Protected Member Functions | |
MachineCheckSuite () | |
void | addCheck (MachineCheck *check) |
Private Attributes | |
std::vector< MachineCheck * > | checks_ |
Checks contained in the suite. More... | |
Container for a group machine checks that are meant to be run as a test suite.
Definition at line 51 of file MachineCheckSuite.hh.
|
virtual |
The Destructor.
Definition at line 47 of file MachineCheckSuite.cc.
References checks_, and SequenceTools::deleteAllItems().
|
protected |
|
protected |
Adds a check to the suite.
check | Check to add (suite takes ownership of the check object). |
Definition at line 97 of file MachineCheckSuite.cc.
References check(), and checks_.
Referenced by BasicMachineCheckSuite::BasicMachineCheckSuite().
const MachineCheck & MachineCheckSuite::check | ( | int | index | ) |
Definition at line 62 of file MachineCheckSuite.cc.
References __func__, checkCount(), and checks_.
Referenced by addCheck(), and run().
int MachineCheckSuite::checkCount | ( | ) | const |
bool MachineCheckSuite::run | ( | const TTAMachine::Machine & | machine, |
MachineCheckResults & | results | ||
) |
Runs all checks in the check suite.
machine | Machine to check. |
results | Result container where error messages are added. |
Definition at line 78 of file MachineCheckSuite.cc.
References check(), checkCount(), checks_, and machine.
|
private |
Checks contained in the suite.
Definition at line 68 of file MachineCheckSuite.hh.
Referenced by addCheck(), check(), checkCount(), run(), and ~MachineCheckSuite().