|
OpenASIP 2.2
|
#include <OperationTriggeredOperand.hh>


Public Member Functions | |
| OperationTriggeredOperand (const std::string &name, OperationTriggeredFormat &parent) | |
| OperationTriggeredOperand (const ObjectState *state, OperationTriggeredFormat &parent) | |
| virtual | ~OperationTriggeredOperand () |
| const std::string & | name () const |
| virtual void | setName (const std::string &name) |
| std::string | type () const |
| void | setType (const std::string &type) |
| std::string | direction () const |
| void | setDirection (const std::string &direction) |
| virtual void | loadState (const ObjectState *state) |
| virtual ObjectState * | saveState () const |
Public Member Functions inherited from Serializable | |
| virtual | ~Serializable () |
Static Public Attributes | |
| static const std::string | OSNAME_OPERAND = "operand" |
| static const std::string | OSKEY_TYPE = "type" |
| static const std::string | OSKEY_DIRECTION = "direction" |
| static const std::string | OSKEY_NAME = "name" |
Private Attributes | |
| std::string | name_ |
| std::string | type_ |
| std::string | direction_ |
Additional Inherited Members | |
Protected Member Functions inherited from TTAMachine::SubComponent | |
| SubComponent () | |
| virtual | ~SubComponent () |
Protected Member Functions inherited from TTAMachine::MachinePart | |
| MachinePart () | |
| virtual | ~MachinePart () |
Definition at line 44 of file OperationTriggeredOperand.hh.
| TTAMachine::OperationTriggeredOperand::OperationTriggeredOperand | ( | const std::string & | name, |
| OperationTriggeredFormat & | parent | ||
| ) |
The constructor.
Registers the operation code encoding to the parent binary encoding automatically.
| parent | The parent OperationTriggeredFormat. |
Definition at line 54 of file OperationTriggeredOperand.cc.
References TTAMachine::OperationTriggeredFormat::addOperand(), name(), name_, and StringTools::stringToLower().

| TTAMachine::OperationTriggeredOperand::OperationTriggeredOperand | ( | const ObjectState * | state, |
| OperationTriggeredFormat & | parent | ||
| ) |
The constructor
Loads the state of the operation code encoding from the given ObjectState tree
| state | The ObjectState tree |
| parent | The parent binary encoding map |
| ObjectStateLoadingException | If an error occurs while loading the state. |
Definition at line 73 of file OperationTriggeredOperand.cc.
References TTAMachine::OperationTriggeredFormat::addOperand(), Exception::errorMessage(), loadState(), OSKEY_NAME, setName(), and ObjectState::stringAttribute().

|
virtual |
| std::string TTAMachine::OperationTriggeredOperand::direction | ( | ) | const |
Definition at line 132 of file OperationTriggeredOperand.cc.
References direction_.
Referenced by setDirection().
|
virtual |
Loads the state of the object from the given ObjectState object.
| state | ObjectState object from which (and the children of which) the state is loaded. |
Implements Serializable.
Definition at line 142 of file OperationTriggeredOperand.cc.
References direction_, Exception::errorMessage(), OSKEY_DIRECTION, OSKEY_TYPE, ObjectState::stringAttribute(), and type_.
Referenced by OperationTriggeredOperand().

| const std::string & TTAMachine::OperationTriggeredOperand::name | ( | ) | const |
Returns the name of the operation.
Definition at line 102 of file OperationTriggeredOperand.cc.
References name_.
Referenced by OperationTriggeredOperand(), and setName().
|
virtual |
Saves the state of the operation code encoding to an ObjectState tree.
Implements Serializable.
Definition at line 164 of file OperationTriggeredOperand.cc.
References direction_, name_, OSKEY_DIRECTION, OSKEY_NAME, OSKEY_TYPE, OSNAME_OPERAND, ObjectState::setAttribute(), and type_.

| void TTAMachine::OperationTriggeredOperand::setDirection | ( | const std::string & | direction | ) |
Definition at line 137 of file OperationTriggeredOperand.cc.
References direction(), and type_.

|
virtual |
Sets the name of the operand.
| name | The new name. |
Definition at line 112 of file OperationTriggeredOperand.cc.
References name(), name_, and StringTools::stringToLower().
Referenced by OperationTriggeredOperand().

| void TTAMachine::OperationTriggeredOperand::setType | ( | const std::string & | type | ) |
Definition at line 127 of file OperationTriggeredOperand.cc.

| std::string TTAMachine::OperationTriggeredOperand::type | ( | ) | const |
Definition at line 122 of file OperationTriggeredOperand.cc.
References type_.
Referenced by setType().
|
private |
Definition at line 77 of file OperationTriggeredOperand.hh.
Referenced by direction(), loadState(), and saveState().
|
private |
Definition at line 75 of file OperationTriggeredOperand.hh.
Referenced by name(), OperationTriggeredOperand(), saveState(), and setName().
|
static |
Definition at line 70 of file OperationTriggeredOperand.hh.
Referenced by loadState(), and saveState().
|
static |
Definition at line 71 of file OperationTriggeredOperand.hh.
Referenced by OperationTriggeredOperand(), and saveState().
|
static |
Definition at line 69 of file OperationTriggeredOperand.hh.
Referenced by loadState(), and saveState().
|
static |
Definition at line 68 of file OperationTriggeredOperand.hh.
Referenced by TTAMachine::OperationTriggeredFormat::loadState(), and saveState().
|
private |
Definition at line 76 of file OperationTriggeredOperand.hh.
Referenced by loadState(), saveState(), setDirection(), setType(), and type().