OpenASIP
2.0
|
#include <DisassemblyInstructionSlot.hh>
Public Member Functions | |
virtual | ~DisassemblyInstructionSlot () |
virtual std::string | toString () const =0 |
DisassemblyAnnotation & | annotation (int index) const |
void | addAnnotation (DisassemblyAnnotation *annotation) |
int | annotationCount () const |
Protected Member Functions | |
DisassemblyInstructionSlot () | |
Private Member Functions | |
DisassemblyInstructionSlot (const DisassemblyInstructionSlot &) | |
Copying not allowed. More... | |
DisassemblyInstructionSlot & | operator= (const DisassemblyInstructionSlot &) |
Assignment not allowed. More... | |
Private Attributes | |
std::vector< DisassemblyAnnotation * > | annotationes_ |
Annotationes of move or long immediates. More... | |
An abstract base class for instruction disassembly slots.
Definition at line 43 of file DisassemblyInstructionSlot.hh.
|
virtual |
The destructor.
Definition at line 46 of file DisassemblyInstructionSlot.cc.
References annotation(), annotationCount(), and annotationes_.
|
protected |
|
private |
Copying not allowed.
void DisassemblyInstructionSlot::addAnnotation | ( | DisassemblyAnnotation * | annotation | ) |
Adds an annotation to instruction slot.
annotation | Annotation to add. |
Definition at line 70 of file DisassemblyInstructionSlot.cc.
References annotation(), and annotationes_.
Referenced by TPEFDisassembler::createInstruction().
DisassemblyAnnotation & DisassemblyInstructionSlot::annotation | ( | int | index | ) | const |
Returns annotation of requested index.
index | Index of annotation to return. |
Definition at line 60 of file DisassemblyInstructionSlot.cc.
References annotationes_.
Referenced by addAnnotation(), DisassemblyMove::toString(), DisassemblyImmediateAssignment::toString(), and ~DisassemblyInstructionSlot().
int DisassemblyInstructionSlot::annotationCount | ( | ) | const |
Returns the number of annotationes stored for the slot.
Definition at line 80 of file DisassemblyInstructionSlot.cc.
References annotationes_.
Referenced by DisassemblyMove::toString(), DisassemblyImmediateAssignment::toString(), and ~DisassemblyInstructionSlot().
|
private |
Assignment not allowed.
|
pure virtual |
Implemented in DisassemblyImmediateAssignment, DisassemblyMove, and DisassemblyNOP.
Referenced by DisassemblyGridTable::GetValue(), and DisassemblyInstruction::toString().
|
private |
Annotationes of move or long immediates.
Definition at line 61 of file DisassemblyInstructionSlot.hh.
Referenced by addAnnotation(), annotation(), annotationCount(), and ~DisassemblyInstructionSlot().