| 
    OpenASIP 2.2
    
   | 
 
#include <MachineCheckResults.hh>

Public Types | |
| typedef std::pair< const MachineCheck *, std::string > | Error | 
| Typedef for an error (error code + error message).   | |
Public Member Functions | |
| MachineCheckResults () | |
| virtual | ~MachineCheckResults () | 
| int | errorCount () const | 
| Error | error (int index) const | 
| void | addError (const MachineCheck &check, const std::string &errorMsg) | 
Private Types | |
| typedef std::vector< Error > | ErrorTable | 
| Typedef for vector of errors.   | |
Private Attributes | |
| ErrorTable | errors_ | 
| Contains the errors.   | |
Container for MachineCheck error messages.
Definition at line 46 of file MachineCheckResults.hh.
| typedef std::pair<const MachineCheck*, std::string> MachineCheckResults::Error | 
Typedef for an error (error code + error message).
Definition at line 49 of file MachineCheckResults.hh.
      
  | 
  private | 
Typedef for vector of errors.
Definition at line 63 of file MachineCheckResults.hh.
| MachineCheckResults::MachineCheckResults | ( | ) | 
      
  | 
  virtual | 
| void MachineCheckResults::addError | ( | const MachineCheck & | check, | 
| const std::string & | errorMsg | ||
| ) | 
Adds an error to the results.
| code | The error code. | 
| errorMsg | The error message. | 
Definition at line 85 of file MachineCheckResults.cc.
References error(), and errors_.
Referenced by AddressSpaceCheck::check(), FullyConnectedCheck::check(), OperationBindingCheck::check(), RFPortCheck::check(), MinimalOpSetCheck::check(), RegisterQuantityCheck::checkPredRegs(), and RegisterQuantityCheck::missingIntRegs().

| MachineCheckResults::Error MachineCheckResults::error | ( | int | index | ) | const | 
Returns an error by the given index.
| index | The index. | 
| OutOfRange | If the given index is negative or not smaller than the number of errors. | 
Definition at line 70 of file MachineCheckResults.cc.
References __func__, errorCount(), and errors_.
Referenced by addError(), and MachineStateBuilder::buildMachineState().

| int MachineCheckResults::errorCount | ( | ) | const | 
Returns the number of errors.
Definition at line 56 of file MachineCheckResults.cc.
References errors_.
Referenced by RegisterQuantityCheck::checkWithIgnore(), and error().
      
  | 
  private | 
Contains the errors.
Definition at line 66 of file MachineCheckResults.hh.
Referenced by addError(), error(), and errorCount().