OpenASIP
2.0
|
#include <StateLocator.hh>
Public Member Functions | |
StateLocator () | |
virtual | ~StateLocator () |
void | addState (const TTAMachine::MachinePart &momComponent, StateData &state) |
StateData & | state (const TTAMachine::MachinePart &momComponent) const |
Private Types | |
typedef std::map< const TTAMachine::MachinePart *, StateData * > | StateContainer |
State objects indexed by MOM components. More... | |
Private Member Functions | |
StateLocator (const StateLocator &) | |
Copying not allowed. More... | |
StateLocator & | operator= (const StateLocator &) |
Assignment not allowed. More... | |
Private Attributes | |
StateContainer | states_ |
Contains all the states indexed by MOM components. More... | |
Class that makes it possible to lookup state objects corresponding to MOM component instances.
Definition at line 51 of file StateLocator.hh.
|
private |
State objects indexed by MOM components.
Definition at line 69 of file StateLocator.hh.
StateLocator::StateLocator | ( | ) |
|
virtual |
|
private |
Copying not allowed.
void StateLocator::addState | ( | const TTAMachine::MachinePart & | momComponent, |
StateData & | state | ||
) |
Adds state to to StateLocator.
momComponent | Machine object model component. |
state | Machine state model state. |
Definition at line 61 of file StateLocator.cc.
Referenced by MachineStateBuilder::addPortToFU(), and MachineStateBuilder::buildMachineState().
|
private |
Assignment not allowed.
StateData & StateLocator::state | ( | const TTAMachine::MachinePart & | momComponent | ) | const |
Returns state corresponding to the given component.
momComponent | Component. |
IllegalParameters | If state is not found. |
Definition at line 78 of file StateLocator.cc.
References __func__.
|
private |
Contains all the states indexed by MOM components.
Definition at line 72 of file StateLocator.hh.