OpenASIP
2.0
|
#include <InstructionExecution.hh>
Public Member Functions | |
InstructionExecution (RelationalDBQueryResult *result) | |
virtual | ~InstructionExecution () |
ClockCycleCount | cycle () const |
InstructionAddress | address () const |
void | next () |
bool | hasNext () const |
Private Attributes | |
RelationalDBQueryResult * | result_ |
int | addressColumnIndex_ |
int | cycleColumnIndex_ |
Class used to navigate through the list of all execution cycles.
This class is also used to access the data of the pointed record.
Definition at line 45 of file InstructionExecution.hh.
InstructionExecution::InstructionExecution | ( | RelationalDBQueryResult * | result | ) |
Constructor.
Object is initialized to point to the first record in the record set, if any.
result | The query result to traverse. |
Definition at line 46 of file InstructionExecution.cc.
References addressColumnIndex_, assert, RelationalDBQueryResult::column(), cycleColumnIndex_, hasNext(), next(), and result_.
|
virtual |
InstructionAddress InstructionExecution::address | ( | ) | const |
Returns the instruction address value of the current record.
NotAvailable | If the current record is empty. |
Definition at line 91 of file InstructionExecution.cc.
References __func__, addressColumnIndex_, RelationalDBQueryResult::data(), NullDataObject::instance(), DataObject::integerValue(), and result_.
ClockCycleCount InstructionExecution::cycle | ( | ) | const |
Returns the cycle count value of the current record.
NotAvailable | If the current record is empty. |
Definition at line 75 of file InstructionExecution.cc.
References __func__, cycleColumnIndex_, RelationalDBQueryResult::data(), NullDataObject::instance(), DataObject::integerValue(), and result_.
bool InstructionExecution::hasNext | ( | ) | const |
Returns true if there are more results available.
Definition at line 119 of file InstructionExecution.cc.
References RelationalDBQueryResult::hasNext(), and result_.
Referenced by InstructionExecution().
void InstructionExecution::next | ( | ) |
Advances the navigator to the next record in the query result set.
NotAvailable | if there is no more results in the set. |
Definition at line 106 of file InstructionExecution.cc.
References __func__, RelationalDBQueryResult::hasNext(), RelationalDBQueryResult::next(), and result_.
Referenced by InstructionExecution().
|
private |
Definition at line 58 of file InstructionExecution.hh.
Referenced by address(), and InstructionExecution().
|
private |
Definition at line 59 of file InstructionExecution.hh.
Referenced by cycle(), and InstructionExecution().
|
private |
Definition at line 57 of file InstructionExecution.hh.
Referenced by address(), cycle(), hasNext(), InstructionExecution(), next(), and ~InstructionExecution().