ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
Public Member Functions | Private Attributes | List of all members
etiss::error::BitFlip Class Reference

#include <ErrorDefinition.h>

Inheritance diagram for etiss::error::BitFlip:
Inheritance graph
[legend]
Collaboration diagram for etiss::error::BitFlip:
Collaboration graph
[legend]

Public Member Functions

template<typename iterateableT >
 BitFlip (const iterateableT &positions, int id=-1, const std::string &name="")
 
virtual void apply (uint64_t &var)
 
template<typename T >
void fapply (T &var)
 
virtual const std::vector< unsigned > affectedBits ()
 
- Public Member Functions inherited from etiss::error::Error
 Error (bool persistent, int id=-1, const std::string &name="")
 
virtual ~Error ()
 
virtual void apply (uint32_t &var)
 
virtual void apply (uint16_t &var)
 
virtual void apply (uint8_t &var)
 

Private Attributes

std::vector< unsigned > flipped_positions
 
uint64_t flip
 

Additional Inherited Members

- Public Attributes inherited from etiss::error::Error
const bool persistent_
 
int id_
 
std::string name_
 

Detailed Description

Definition at line 95 of file ErrorDefinition.h.

Constructor & Destructor Documentation

◆ BitFlip()

template<typename iterateableT >
etiss::error::BitFlip::BitFlip ( const iterateableT &  positions,
int  id = -1,
const std::string &  name = "" 
)
inline

Definition at line 103 of file ErrorDefinition.h.

References flip, and flipped_positions.

Member Function Documentation

◆ affectedBits()

const std::vector< unsigned > etiss::error::BitFlip::affectedBits ( )
virtual

Implements etiss::error::Error.

Definition at line 117 of file ErrorDefinition.cpp.

References flipped_positions.

◆ apply()

void etiss::error::BitFlip::apply ( uint64_t var)
virtual

Implements etiss::error::Error.

Definition at line 104 of file ErrorDefinition.cpp.

References flip.

◆ fapply()

template<typename T >
void etiss::error::BitFlip::fapply ( T &  var)
inline

Definition at line 117 of file ErrorDefinition.h.

References flip.

Member Data Documentation

◆ flip

uint64_t etiss::error::BitFlip::flip
private

Definition at line 99 of file ErrorDefinition.h.

Referenced by apply(), BitFlip(), and fapply().

◆ flipped_positions

std::vector<unsigned> etiss::error::BitFlip::flipped_positions
private

Definition at line 98 of file ErrorDefinition.h.

Referenced by affectedBits(), and BitFlip().


The documentation for this class was generated from the following files: