OpenASIP
2.0
|
#include <OperationState.hh>
Public Member Functions | |
OperationState () | |
virtual | ~OperationState () |
virtual const char * | name ()=0 |
virtual bool | isAvailable (const OperationContext &context) const |
virtual void | advanceClock (OperationContext &context) |
OperationState is the base class of all operation state classes.
Operation state classes store state information specific to a family of operations.
Definition at line 46 of file OperationState.hh.
OperationState::OperationState | ( | ) |
|
virtual |
|
virtual |
This method should be invoced in every clock cycle.
If this method is not invoced on every clock cycle, some pending results may get lost.
context | The operation context which should be used for calculating the pending results. |
Reimplemented in NullOperationState.
Definition at line 77 of file OperationState.cc.
|
virtual |
Returns true if operation state is in "available" state.
If operation state is available, it means that new operations can be started. If it's not avaiable, no further operations should be invoked.
context | The operation context of which availability to check. |
Reimplemented in NullOperationState.
Definition at line 63 of file OperationState.cc.
|
pure virtual |
Implemented in NullOperationState.
Referenced by OperationContextPimpl::registerState().