ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
base error class for simple handling of errors More...
#include <ErrorDefinition.h>
Public Member Functions | |
Error (bool persistent, int id=-1, const std::string &name="") | |
virtual | ~Error () |
virtual void | apply (uint64_t &var)=0 |
virtual void | apply (uint32_t &var) |
virtual void | apply (uint16_t &var) |
virtual void | apply (uint8_t &var) |
virtual const std::vector< unsigned > | affectedBits ()=0 |
Public Attributes | |
const bool | persistent_ |
int | id_ |
std::string | name_ |
base error class for simple handling of errors
Definition at line 76 of file ErrorDefinition.h.
id | if id is negative the a new negative id from a global id pool will be used. the pool may assign the same id if the total number of error instances during progam execution exceds 2^(sizeof(int)*8-1) |
Definition at line 79 of file ErrorDefinition.cpp.
|
virtual |
Definition at line 83 of file ErrorDefinition.cpp.
|
pure virtual |
Implemented in etiss::error::StuckLow, etiss::error::StuckHigh, and etiss::error::BitFlip.
|
virtual |
Definition at line 91 of file ErrorDefinition.cpp.
References apply(), uint16_t, and uint64_t.
|
virtual |
Definition at line 85 of file ErrorDefinition.cpp.
References apply(), uint32_t, and uint64_t.
|
pure virtual |
Implemented in etiss::error::StuckLow, etiss::error::StuckHigh, and etiss::error::BitFlip.
Referenced by apply().
|
virtual |
Definition at line 97 of file ErrorDefinition.cpp.
References apply(), uint64_t, and uint8_t.
int etiss::error::Error::id_ |
Definition at line 80 of file ErrorDefinition.h.
std::string etiss::error::Error::name_ |
Definition at line 81 of file ErrorDefinition.h.
const bool etiss::error::Error::persistent_ |
Definition at line 79 of file ErrorDefinition.h.