OpenASIP
2.0
|
#include <ObjectState.hh>
Classes | |
struct | Attribute |
Struct for describing an attribute of the XML element. More... | |
Public Member Functions | |
ObjectState (const std::string &name, ObjectState *parent=NULL) | |
ObjectState (const ObjectState &old) | |
~ObjectState () | |
ObjectState * | parent () const |
std::string | name () const |
void | setName (const std::string &name) |
void | setValue (const std::string &value) |
void | setValue (int value) |
void | setValue (double value) |
void | setValue (bool value) |
void | setValue (UIntWord value) |
std::string | stringValue () const |
int | intValue () const |
unsigned int | unsignedIntValue () const |
double | doubleValue () const |
bool | boolValue () const |
int | UIntWordValue () const |
void | setAttribute (const std::string &name, const std::string &value) |
void | setAttribute (const std::string &name, int value) |
void | setAttribute (const std::string &name, unsigned int value) |
void | setAttribute (const std::string &name, double value) |
void | setAttribute (const std::string &name, bool value) |
void | setAttribute (const std::string &name, ULongWord value) |
int | attributeCount () const |
Attribute * | attribute (int index) const |
bool | hasAttribute (const std::string &name) const |
std::string | stringAttribute (const std::string &name) const |
int | intAttribute (const std::string &name) const |
unsigned int | unsignedIntAttribute (const std::string &name) const |
double | doubleAttribute (const std::string &name) const |
bool | boolAttribute (const std::string &name) const |
UIntWord | UIntWordAttribute (const std::string &name) const |
ULongWord | uLongAttribute (const std::string &name) const |
bool | hasChild (const std::string &name) const |
void | addChild (ObjectState *child) |
void | removeChild (ObjectState *child) |
void | replaceChild (ObjectState *old, ObjectState *newChild) |
int | childCount () const |
ObjectState * | childByName (const std::string &name) const |
ObjectState * | child (int index) const |
bool | operator!= (const ObjectState &object) |
Static Public Member Functions | |
static void | dumpObjectState (const ObjectState &state, std::ostream &output, const std::string &identation="") |
Private Types | |
typedef std::vector< ObjectState * > | ChildTable |
Table of child ObjectState. More... | |
typedef std::vector< Attribute > | AttributeTable |
Table of attributes. More... | |
Private Member Functions | |
ObjectState & | operator= (const ObjectState &old) |
Assingment forbidden. More... | |
std::string | commonErrorMessage () const |
Private Attributes | |
std::string | name_ |
Name of the element. More... | |
std::string | value_ |
The value of a leaf element. More... | |
ObjectState * | parent_ |
The parent element. More... | |
ChildTable | children_ |
The child elements. More... | |
AttributeTable | attributes_ |
Contains all the attributes of the element. More... | |
Class ObjectState represents state of an object.
It may contain attribute-value pairs of the object and a main value. It may be used as a node in tree structure or alone. If a class is going to be serialized to a file, it must be able to create an ObjectState object of itself. It must be able to create itself from an ObjectState object too. That is, it must implement the Serializable interface. ObjectState tree is a general structure which can be handled by many different kind of serializers, for example XMLSerializer. Serializers can read a file create an ObjectState tree according to it and they can write a file of a certain format according to a ObjectState tree. ObjectState enables an easy way to serialize an object model to different kinds of file formats.
Definition at line 59 of file ObjectState.hh.
|
private |
Table of attributes.
Definition at line 127 of file ObjectState.hh.
|
private |
Table of child ObjectState.
Definition at line 125 of file ObjectState.hh.
ObjectState::ObjectState | ( | const std::string & | name, |
ObjectState * | parent = NULL |
||
) |
Constructor.
name | Name of the ObjectState. |
parent | Parent of this object. If non-NULL, this object is added to the parent with addChild(). |
Definition at line 51 of file ObjectState.cc.
References addChild(), and parent().
Referenced by ObjectState().
ObjectState::ObjectState | ( | const ObjectState & | old | ) |
Copy constructor.
Makes a deep copy.
old | The ObjectState tree to copy. |
Definition at line 65 of file ObjectState.cc.
References addChild(), child(), childCount(), and ObjectState().
ObjectState::~ObjectState | ( | ) |
Destructor.
Deletes all the children as well and removes itself from the list of child objects of the parent object. That is, the parent object will stay valid.
Definition at line 81 of file ObjectState.cc.
References assert, children_, SequenceTools::deleteAllItems(), parent_, and ContainerTools::removeValueIfExists().
void ObjectState::addChild | ( | ObjectState * | child | ) |
Adds a child object.
child | ObjectState object to be added as a child. |
Definition at line 376 of file ObjectState.cc.
References child(), children_, and parent_.
Referenced by IPXactModel::addAddressSpaceObject(), IPXactModel::addBusInterfaceObject(), IPXactModel::addFileObject(), IPXactModel::addModelParamsObject(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), IPXactModel::addSignalObject(), ADFSerializer::bridgeToMDF(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), ADFSerializer::controlUnitToMachine(), ADFSerializer::controlUnitToMDF(), ProDeOptionsSerializer::convertToConfigFileFormat(), GUIOptionsSerializer::convertToConfigFileFormat(), BEMSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToFileFormat(), ADFSerializer::convertToMDFFormat(), BEMSerializer::convertToOMFormat(), IDF::IDFSerializer::convertToOMFormat(), OperationSerializer::convertToOperationFormat(), OperationSerializer::convertToXMLFormat(), XMLSerializer::createState(), OSEdAddOperationCmd::Do(), ADFSerializer::functionUnitToMachine(), ADFSerializer::functionUnitToMDF(), BEMSerializer::guardFieldToFile(), BEMSerializer::guardFieldToOM(), BEMSerializer::immediateSlotToFile(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMachine(), ADFSerializer::instructionTemplateToMDF(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::mdfFUPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), ADFSerializer::mdfPort(), ADFSerializer::mdfSRPort(), BEMSerializer::moveSlotToFile(), BEMSerializer::moveSlotToOM(), ObjectState(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), InstructionField::reorderSubfields(), TTAMachine::Machine::saveComponentStates(), TTAMachine::ExecutionPipeline::saveOperandUse(), OperationPropertyDialog::saveOperation(), TTAMachine::ExecutionPipeline::saveResourceUse(), OSEdOptions::saveState(), IDF::FUGenerated::saveState(), OperationTriggeredEncoding::saveState(), TTAMachine::Unit::saveState(), LImmDstRegisterField::saveState(), IPXactModel::saveState(), TTAMachine::OperationTriggeredFormat::saveState(), SourceField::saveState(), InstructionFormat::saveState(), TTAMachine::HWOperation::saveState(), ImmediateControlField::saveState(), GUIOptions::saveState(), SlotField::saveState(), TTAMachine::InstructionTemplate::saveState(), MoveSlot::saveState(), GuardField::saveState(), TTAMachine::Socket::saveState(), TTAMachine::FunctionUnit::saveState(), TTAMachine::Bus::saveState(), OperationPimpl::saveState(), SocketCodeTable::saveState(), BinaryEncoding::saveState(), IDF::MachineImplementation::saveState(), Operand::saveState(), TTAMachine::Machine::saveState(), OperationSerializer::setOperandProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), ADFSerializer::socketToMachine(), ADFSerializer::socketToMDF(), BEMSerializer::sourceFieldToFile(), BEMSerializer::sourceFieldToOM(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), InputOperandDialog::updateOperand(), and DataDependenceGraph::writeToXMLFile().
ObjectState::Attribute * ObjectState::attribute | ( | int | index | ) | const |
Returns an attribute by the given index.
The value of index must be greater or equal to 0 and less than the number of attributes.
index | The index of the requested attribute. |
OutOfRange | If the given index is out of range. |
Definition at line 228 of file ObjectState.cc.
References attributeCount(), attributes_, commonErrorMessage(), and Conversion::toString().
Referenced by XMLSerializer::createDOM(), XMLSerializer::createDOMDocument(), and dumpObjectState().
int ObjectState::attributeCount | ( | ) | const |
Referenced by attribute(), XMLSerializer::createDOM(), XMLSerializer::createDOMDocument(), and dumpObjectState().
bool ObjectState::boolAttribute | ( | const std::string & | name | ) | const |
Returns the value of the requested attribute.
name | Name of the attribute. |
KeyNotFound | If no attribute called the given name is found. |
TypeMismatch | If the value of the requested attribute can't be converted to bool. |
Definition at line 338 of file ObjectState.cc.
References intValue(), name(), stringAttribute(), and Conversion::toInt().
Referenced by ADFSerializer::addressSpaceToMDF(), ADFSerializer::busToMDF(), ADFSerializer::convertToMDFFormat(), GuardEncoding::GuardEncoding(), BEMSerializer::guardFieldToFile(), TTAMachine::AddressSpace::loadState(), OperationPimpl::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::FUPort::loadStateWithoutReferences(), TTAMachine::RegisterFile::loadStateWithoutReferences(), ADFSerializer::registerFileToMDF(), and OperationSerializer::toXMLFormat().
bool ObjectState::boolValue | ( | ) | const |
Referenced by ADFSerializer::addressSpaceToMachine(), and ADFSerializer::registerFileToMachine().
ObjectState * ObjectState::child | ( | int | index | ) | const |
Returns a child by the given index.
The index must be greater or equal to 0 and less than the number of children.
index | The index. |
OutOfRange | If the given index is out of range. |
Definition at line 471 of file ObjectState.cc.
References childCount(), children_, commonErrorMessage(), and Conversion::toString().
Referenced by addChild(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), TTAMachine::Bus::adjustSegmentChain(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), OSEdTreeView::constructTree(), ADFSerializer::controlUnitToMachine(), ADFSerializer::controlUnitToMDF(), BEMSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToFileFormat(), ADFSerializer::convertToMachineFormat(), ADFSerializer::convertToMDFFormat(), BEMSerializer::convertToOMFormat(), IDF::IDFSerializer::convertToOMFormat(), OperationSerializer::convertToOperationFormat(), GUIOptionsSerializer::convertToOptionsObjectFormat(), OperationSerializer::convertToXMLFormat(), BEMSerializer::convertZeroEncExtraBits(), XMLSerializer::createDOM(), XMLSerializer::createDOMDocument(), OSEdPropertiesCmd::Do(), OSEdRemoveOperationCmd::Do(), dumpObjectState(), OperationIndex::effectiveOperation(), IPXactModel::extractAddressSpaces(), IPXactModel::extractBusInterfaces(), IPXactModel::extractFiles(), IPXactModel::extractModelParams(), IPXactModel::extractPortMappings(), IPXactModel::extractSignals(), ADFSerializer::functionUnitToMachine(), ADFSerializer::functionUnitToMDF(), BEMSerializer::guardFieldToFile(), BEMSerializer::guardFieldToOM(), ADFSerializer::hasEmptyInstructionTemplate(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMachine(), ADFSerializer::instructionTemplateToMDF(), BlocksModel::LoadModelFromXml(), OperationPropertyLoader::loadModule(), OSEdOptions::loadState(), IDF::FUGenerated::loadState(), OperationTriggeredEncoding::loadState(), TTAMachine::Unit::loadState(), TTAMachine::OperationTriggeredFormat::loadState(), SourceField::loadState(), InstructionFormat::loadState(), TTAMachine::AddressSpace::loadState(), TTAMachine::HWOperation::loadState(), ImmediateControlField::loadState(), GUIOptions::loadState(), LImmDstRegisterField::loadState(), SlotField::loadState(), TTAMachine::InstructionTemplate::loadState(), MoveSlot::loadState(), GuardField::loadState(), TTAMachine::Socket::loadState(), TTAMachine::Bus::loadState(), OperationPimpl::loadState(), SocketCodeTable::loadState(), BinaryEncoding::loadState(), IDF::MachineImplementation::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::Unit::loadStateWithoutReferences(), TTAMachine::FunctionUnit::loadStateWithoutReferences(), TTAMachine::Bus::loadStateWithoutReferences(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineRFPort(), ADFSerializer::machineSRPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), OperationIndex::moduleOf(), ADFSerializer::momTemplateSlot(), ObjectState(), OperationContainer::operation(), OperationIndex::operationName(), operator!=(), TTAMachine::Unit::portNames(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), removeChild(), InstructionField::reorderSubfields(), TTAMachine::ExecutionPipeline::saveOperandUse(), TTAMachine::ExecutionPipeline::saveResourceUse(), OperationSerializer::setOperandProperties(), GUIOptionsSerializer::setToolbarProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), ADFSerializer::socketToMachine(), ADFSerializer::socketToMDF(), TTAMachine::ExecutionPipeline::sortResourceUsages(), BEMSerializer::sourceFieldToFile(), BEMSerializer::sourceFieldToOM(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), and OperationPropertyDialog::updateSwapLists().
ObjectState * ObjectState::childByName | ( | const std::string & | name | ) | const |
Returns the child of the requested name.
If there are many children of that name, returns the first of them.
name | Name of the child. |
InstanceNotFound | If the requested child is not found. |
Definition at line 443 of file ObjectState.cc.
References children_, commonErrorMessage(), and name().
Referenced by GUIOptionsSerializer::addKeyboardShortcut(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::bridgeToMachine(), ADFSerializer::busToMachine(), ADFSerializer::controlUnitToMachine(), IDF::IDFSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToOMFormat(), ProDeOptionsSerializer::convertToOptionsObjectFormat(), GUIOptionsSerializer::convertToOptionsObjectFormat(), BEMSerializer::convertZeroEncExtraBits(), IPXactModel::extractAddressSpace(), IPXactModel::extractBusInterface(), IPXactModel::extractFiles(), IPXactModel::extractModelParam(), IPXactModel::extractPortMap(), IPXactModel::extractSignals(), IPXactModel::extractVLNV(), ADFSerializer::functionUnitToMachine(), BEMSerializer::guardFieldToOM(), BEMSerializer::immediateSlotToOM(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::instructionTemplateToMachine(), BlocksModel::LoadModelFromXml(), IDF::FUGenerated::loadState(), IPXactModel::loadState(), TTAMachine::HWOperation::loadState(), BinaryEncoding::loadState(), IDF::MachineImplementation::loadState(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineSRPort(), ADFSerializer::mdfOperation(), BEMSerializer::moveSlotToFile(), BEMSerializer::moveSlotToOM(), BEMSerializer::readRegisterFilePortCode(), ADFSerializer::registerFileToMachine(), ADFSerializer::setIUExtensionMode(), GUIOptionsSerializer::setToolbarProperties(), GUIOptionsSerializer::setWindowProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToOM(), ADFSerializer::socketToMachine(), BEMSerializer::sourceFieldToFile(), and BEMSerializer::sourceFieldToOM().
int ObjectState::childCount | ( | ) | const |
Referenced by ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), TTAMachine::Bus::adjustSegmentChain(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), child(), OSEdTreeView::constructTree(), ADFSerializer::controlUnitToMachine(), ADFSerializer::controlUnitToMDF(), BEMSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToFileFormat(), ADFSerializer::convertToMachineFormat(), ADFSerializer::convertToMDFFormat(), BEMSerializer::convertToOMFormat(), IDF::IDFSerializer::convertToOMFormat(), OperationSerializer::convertToOperationFormat(), GUIOptionsSerializer::convertToOptionsObjectFormat(), OperationSerializer::convertToXMLFormat(), BEMSerializer::convertZeroEncExtraBits(), XMLSerializer::createDOM(), XMLSerializer::createDOMDocument(), OSEdPropertiesCmd::Do(), OSEdRemoveOperationCmd::Do(), dumpObjectState(), OperationIndex::effectiveOperation(), IPXactModel::extractAddressSpaces(), IPXactModel::extractBusInterfaces(), IPXactModel::extractFiles(), IPXactModel::extractModelParams(), IPXactModel::extractPortMappings(), IPXactModel::extractSignals(), ADFSerializer::functionUnitToMachine(), ADFSerializer::functionUnitToMDF(), BEMSerializer::guardFieldToFile(), BEMSerializer::guardFieldToOM(), ADFSerializer::hasEmptyInstructionTemplate(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMachine(), ADFSerializer::instructionTemplateToMDF(), BlocksModel::LoadModelFromXml(), OperationPropertyLoader::loadModule(), OSEdOptions::loadState(), IDF::FUGenerated::loadState(), OperationTriggeredEncoding::loadState(), TTAMachine::Unit::loadState(), TTAMachine::OperationTriggeredFormat::loadState(), SourceField::loadState(), InstructionFormat::loadState(), TTAMachine::AddressSpace::loadState(), TTAMachine::HWOperation::loadState(), ImmediateControlField::loadState(), GUIOptions::loadState(), LImmDstRegisterField::loadState(), SlotField::loadState(), TTAMachine::InstructionTemplate::loadState(), MoveSlot::loadState(), GuardField::loadState(), TTAMachine::Socket::loadState(), TTAMachine::Bus::loadState(), OperationPimpl::loadState(), SocketCodeTable::loadState(), BinaryEncoding::loadState(), IDF::MachineImplementation::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::Unit::loadStateWithoutReferences(), TTAMachine::FunctionUnit::loadStateWithoutReferences(), TTAMachine::Bus::loadStateWithoutReferences(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineRFPort(), ADFSerializer::machineSRPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), OperationIndex::moduleOf(), ADFSerializer::momTemplateSlot(), ObjectState(), OperationContainer::operation(), OperationIndex::operationCount(), TTAMachine::Unit::portNames(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), InstructionField::reorderSubfields(), TTAMachine::ExecutionPipeline::saveOperandUse(), TTAMachine::ExecutionPipeline::saveResourceUse(), OperationSerializer::setOperandProperties(), GUIOptionsSerializer::setToolbarProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), ADFSerializer::socketToMachine(), ADFSerializer::socketToMDF(), TTAMachine::ExecutionPipeline::sortResourceUsages(), BEMSerializer::sourceFieldToFile(), BEMSerializer::sourceFieldToOM(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), and OperationPropertyDialog::updateSwapLists().
|
private |
Generates a common beginning of error messages.
Definition at line 529 of file ObjectState.cc.
References name().
Referenced by attribute(), child(), childByName(), and stringAttribute().
double ObjectState::doubleAttribute | ( | const std::string & | name | ) | const |
Returns the value of the requested attribute.
name | Name of the attribute. |
KeyNotFound | If no attribute called the given name is found. |
NumberFormatException | If the value of the requested attribute can't be converted to double. |
Definition at line 323 of file ObjectState.cc.
References name(), stringAttribute(), and Conversion::toDouble().
Referenced by BEMSerializer::readState().
double ObjectState::doubleValue | ( | ) | const |
|
static |
Prints object state structure for debug purposes into the stream.
Definition at line 540 of file ObjectState.cc.
References attribute(), attributeCount(), child(), childCount(), ObjectState::Attribute::name, name(), stringValue(), and ObjectState::Attribute::value.
bool ObjectState::hasAttribute | ( | const std::string & | name | ) | const |
Returns true if the ObjectState has an attribute with the given name.
name | Name of the attribute. |
Definition at line 205 of file ObjectState.cc.
References attributes_, and name().
Referenced by ADFSerializer::addressSpaceToMDF(), TTAMachine::Bus::adjustSegmentChain(), ADFSerializer::busToMDF(), ADFSerializer::controlUnitToMDF(), GUIOptionsSerializer::convertToConfigFileFormat(), IDF::IDFSerializer::convertToFileFormat(), ADFSerializer::convertToMDFFormat(), BEMSerializer::convertZeroEncExtraBits(), IPXactModel::extractModelParam(), IPXactModel::extractVlnvFromAttr(), ADFSerializer::functionUnitToMDF(), FUPortCode::FUPortCode(), TTAMachine::Port::loadState(), TTAMachine::AddressSpace::loadState(), KeyboardShortcut::loadState(), TTAMachine::FunctionUnit::loadState(), IDF::MachineImplementation::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::ControlUnit::loadStateWithoutReferences(), TTAMachine::RegisterFile::loadStateWithoutReferences(), TTAMachine::FunctionUnit::loadStateWithoutReferences(), ADFSerializer::machineFUPort(), ADFSerializer::mdfPort(), ADFSerializer::mdfSRPort(), operator!=(), PortCode::PortCode(), BEMSerializer::readState(), ADFSerializer::registerFileToMDF(), InstructionField::reorderSubfields(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), SocketEncoding::SocketEncoding(), ADFSerializer::socketToMDF(), OperationSerializer::toOperation(), and OperationSerializer::toXMLFormat().
bool ObjectState::hasChild | ( | const std::string & | name | ) | const |
Returns true if there is a child element called the given name.
Definition at line 358 of file ObjectState.cc.
References children_, and name().
Referenced by GUIOptionsSerializer::addKeyboardShortcut(), ADFSerializer::addressSpaceToMachine(), TTAMachine::Bus::adjustSegmentChain(), IDF::IDFSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToOMFormat(), ProDeOptionsSerializer::convertToOptionsObjectFormat(), GUIOptionsSerializer::convertToOptionsObjectFormat(), BEMSerializer::convertZeroEncExtraBits(), IPXactModel::extractAddressSpace(), IPXactModel::extractAddressSpaces(), IPXactModel::extractBusInterface(), IPXactModel::extractBusInterfaces(), IPXactModel::extractBusMode(), IPXactModel::extractFiles(), IPXactModel::extractModelParam(), IPXactModel::extractPortMap(), IPXactModel::extractPortMappings(), IPXactModel::extractSignals(), IPXactModel::extractVLNV(), ADFSerializer::immediateUnitToMachine(), IDF::FUGenerated::loadState(), IPXactModel::loadState(), IDF::MachineImplementation::loadState(), ADFSerializer::machineFUPort(), BEMSerializer::moveSlotToFile(), BEMSerializer::moveSlotToOM(), BEMSerializer::readRegisterFilePortCode(), ADFSerializer::registerFileToMachine(), GUIOptionsSerializer::setToolbarProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), ADFSerializer::socketToMachine(), BEMSerializer::sourceFieldToFile(), and BEMSerializer::sourceFieldToOM().
int ObjectState::intAttribute | ( | const std::string & | name | ) | const |
Returns the value of the requested attribute.
name | Name of the attribute. |
KeyNotFound | If no attribute called the given name is found. |
NumberFormatException | If the value of the requested attribute can't be converted to int. |
Definition at line 276 of file ObjectState.cc.
References name(), stringAttribute(), and Conversion::toInt().
Referenced by GUIOptionsSerializer::addKeyboardShortcut(), TTAMachine::ExecutionPipeline::addResourceUsage(), ADFSerializer::busToMDF(), GUIOptionsSerializer::convertToConfigFileFormat(), BEMSerializer::convertZeroEncExtraBits(), Encoding::Encoding(), GPRGuardEncoding::GPRGuardEncoding(), GuardEncoding::GuardEncoding(), BEMSerializer::guardFieldToOM(), ImmediateEncoding::ImmediateEncoding(), ADFSerializer::immediateUnitToMDF(), ProDeOptions::loadState(), OperationTriggeredField::loadState(), ImmediateSlotField::loadState(), ToolbarButton::loadState(), IDF::UnitImplementationLocation::loadState(), InstructionField::loadState(), TTAMachine::Guard::loadState(), InstructionFormat::loadState(), TTAMachine::AddressSpace::loadState(), TTAMachine::HWOperation::loadState(), ImmediateControlField::loadState(), GUIOptions::loadState(), LImmDstRegisterField::loadState(), SlotField::loadState(), TTAMachine::InstructionTemplate::loadState(), KeyboardShortcut::loadState(), TTAMachine::ExecutionPipeline::loadState(), OperationPimpl::loadState(), SocketCodeTable::loadState(), Operand::loadState(), TTAMachine::RegisterGuard::loadState(), TTAMachine::BaseFUPort::loadStateWithoutReferences(), TTAMachine::BaseRegisterFile::loadStateWithoutReferences(), TTAMachine::ImmediateUnit::loadStateWithoutReferences(), TTAMachine::FUPort::loadStateWithoutReferences(), TTAMachine::ControlUnit::loadStateWithoutReferences(), TTAMachine::RegisterFile::loadStateWithoutReferences(), TTAMachine::FunctionUnit::loadStateWithoutReferences(), TTAMachine::Bus::loadStateWithoutReferences(), ADFSerializer::mdfFUPort(), PortCode::PortCode(), ADFSerializer::registerFileToMDF(), InstructionField::reorderSubfields(), TTAMachine::ExecutionPipeline::saveOperandUse(), TTAMachine::ExecutionPipeline::saveResourceUse(), BEMSerializer::slotFieldToFile(), BEMSerializer::socketCodeTableToFile(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), and OperationPropertyDialog::updateSwapLists().
int ObjectState::intValue | ( | ) | const |
Referenced by ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), boolAttribute(), BEMSerializer::convertZeroEncExtraBits(), IPXactModel::extractAddressSpace(), IPXactModel::extractSignals(), IDF::FUGenerated::loadState(), TTAMachine::AddressSpace::loadState(), BinaryEncoding::loadState(), OperationSerializer::setOperandProperties(), BEMSerializer::socketCodeTableToOM(), and OperationSerializer::toOperation().
std::string ObjectState::name | ( | ) | const |
Referenced by ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), TTAMachine::Bus::adjustSegmentChain(), boolAttribute(), BridgeEncoding::BridgeEncoding(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), childByName(), commonErrorMessage(), ADFSerializer::controlUnitToMachine(), ADFSerializer::controlUnitToMDF(), GUIOptionsSerializer::convertToConfigFileFormat(), BEMSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToFileFormat(), ADFSerializer::convertToMachineFormat(), ADFSerializer::convertToMDFFormat(), BEMSerializer::convertToOMFormat(), IDF::IDFSerializer::convertToOMFormat(), GUIOptionsSerializer::convertToOptionsObjectFormat(), BEMSerializer::convertZeroEncExtraBits(), XMLSerializer::createDOM(), XMLSerializer::createDOMDocument(), DestinationField::DestinationField(), PasteComponentCmd::Do(), doubleAttribute(), dumpObjectState(), IPXactModel::extractAddressSpace(), IPXactModel::extractAddressSpaces(), IPXactModel::extractBusInterface(), IPXactModel::extractBusInterfaces(), IPXactModel::extractBusMode(), IPXactModel::extractFiles(), IPXactModel::extractModelParam(), IPXactModel::extractModelParams(), IPXactModel::extractPortMap(), IPXactModel::extractPortMappings(), IPXactModel::extractSignals(), IPXactModel::extractVLNV(), IPXactModel::extractVlnvFromAttr(), FUGuardEncoding::FUGuardEncoding(), ADFSerializer::functionUnitToMachine(), ADFSerializer::functionUnitToMDF(), FUPortCode::FUPortCode(), GPRGuardEncoding::GPRGuardEncoding(), BEMSerializer::guardFieldToFile(), BEMSerializer::guardFieldToOM(), hasAttribute(), hasChild(), ADFSerializer::hasEmptyInstructionTemplate(), ImmediateEncoding::ImmediateEncoding(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMachine(), ADFSerializer::instructionTemplateToMDF(), intAttribute(), IUPortCode::IUPortCode(), OSEdOptions::loadState(), TTAMachine::RFPort::loadState(), TTAMachine::ImmediateSlot::loadState(), TTAMachine::SpecialRegisterPort::loadState(), IDF::FUGenerated::loadState(), ImmediateSlotField::loadState(), TTAMachine::FUPort::loadState(), ToolbarButton::loadState(), OperationTriggeredEncoding::loadState(), TTAMachine::Unit::loadState(), TTAMachine::Bridge::loadState(), IDF::UnitImplementationLocation::loadState(), TTAMachine::OperationTriggeredFormat::loadState(), SourceField::loadState(), InstructionFormat::loadState(), TTAMachine::AddressSpace::loadState(), TTAMachine::HWOperation::loadState(), ImmediateControlField::loadState(), GUIOptions::loadState(), LImmDstRegisterField::loadState(), TTAMachine::Segment::loadState(), SlotField::loadState(), TTAMachine::InstructionTemplate::loadState(), KeyboardShortcut::loadState(), MoveSlot::loadState(), TTAMachine::ExecutionPipeline::loadState(), GuardField::loadState(), TTAMachine::Socket::loadState(), TTAMachine::Bus::loadState(), TTAMachine::PortGuard::loadState(), OperationPimpl::loadState(), SocketCodeTable::loadState(), BinaryEncoding::loadState(), IDF::MachineImplementation::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::RegisterGuard::loadState(), TTAMachine::UnconditionalGuard::loadState(), TTAMachine::ImmediateUnit::loadStateWithoutReferences(), TTAMachine::Unit::loadStateWithoutReferences(), TTAMachine::ControlUnit::loadStateWithoutReferences(), TTAMachine::Segment::loadStateWithoutReferences(), TTAMachine::RegisterFile::loadStateWithoutReferences(), TTAMachine::FunctionUnit::loadStateWithoutReferences(), TTAMachine::Bus::loadStateWithoutReferences(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineSRPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), ADFSerializer::mdfSRPort(), NOPEncoding::NOPEncoding(), operator!=(), BEMSerializer::readRegisterFilePortCode(), ADFSerializer::registerFileToMachine(), RFPortCode::RFPortCode(), TTAMachine::ExecutionPipeline::saveOperandUse(), TTAMachine::ExecutionPipeline::saveResourceUse(), setAttribute(), OperationSerializer::setOperandProperties(), GUIOptionsSerializer::setToolbarProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), BEMSerializer::sourceFieldToFile(), BEMSerializer::sourceFieldToOM(), stringAttribute(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), uLongAttribute(), UnconditionalGuardEncoding::UnconditionalGuardEncoding(), unsignedIntAttribute(), and OperationPropertyDialog::updateSwapLists().
bool ObjectState::operator!= | ( | const ObjectState & | object | ) |
Inequality comparison operator.
object | Object in which this object is compared to. |
Definition at line 491 of file ObjectState.cc.
References attributes_, child(), children_, hasAttribute(), ObjectState::Attribute::name, name(), name_, stringValue(), ObjectState::Attribute::value, and value_.
|
private |
Assingment forbidden.
ObjectState* ObjectState::parent | ( | ) | const |
Referenced by ObjectState(), and replaceChild().
void ObjectState::removeChild | ( | ObjectState * | child | ) |
Removes the given child object.
child | The child object to be removed. |
InstanceNotFound | If the object does not have the given child object. |
Definition at line 389 of file ObjectState.cc.
References child(), children_, parent_, and ContainerTools::removeValueIfExists().
Referenced by InstructionField::reorderSubfields(), and BEMSerializer::sourceFieldToFile().
void ObjectState::replaceChild | ( | ObjectState * | old, |
ObjectState * | newChild | ||
) |
Replaces a child with a new child.
old | Child to be replaced. |
newChild | Child to be added in the place of the old child. |
InvalidData | If the new child given already has a parent object. |
Definition at line 408 of file ObjectState.cc.
References children_, parent(), and parent_.
Referenced by OSEdPropertiesCmd::Do().
void ObjectState::setAttribute | ( | const std::string & | name, |
bool | value | ||
) |
Sets an attribute.
If there is an attribute called the given name, its value is changed according to the given value. Otherwise a new attribute is created.
name | Name of the attribute. |
value | Value of the attribute. |
Definition at line 192 of file ObjectState.cc.
References name(), setAttribute(), and Conversion::toString().
void ObjectState::setAttribute | ( | const std::string & | name, |
const std::string & | value | ||
) |
Sets an attribute.
If there is an attribute called the given name, its value is changed according to the given value. Otherwise a new attribute is created.
name | Name of the attribute. |
value | Value of the attribute. |
Definition at line 100 of file ObjectState.cc.
References attributes_, ObjectState::Attribute::name, name(), and ObjectState::Attribute::value.
Referenced by IPXactModel::addBusInterfaceObject(), GUIOptionsSerializer::addKeyboardShortcut(), IPXactModel::addModelParamsObject(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), ADFSerializer::bridgeToMachine(), ADFSerializer::bridgeToMDF(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), ADFSerializer::controlUnitToMachine(), ADFSerializer::controlUnitToMDF(), ProDeOptionsSerializer::convertToConfigFileFormat(), GUIOptionsSerializer::convertToConfigFileFormat(), BEMSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToFileFormat(), ADFSerializer::convertToMDFFormat(), IDF::IDFSerializer::convertToOMFormat(), OperationSerializer::convertToXMLFormat(), BEMSerializer::convertZeroEncExtraBits(), XMLSerializer::createState(), PasteComponentCmd::Do(), ADFSerializer::functionUnitToMachine(), ADFSerializer::functionUnitToMDF(), BEMSerializer::guardFieldToFile(), BEMSerializer::guardFieldToOM(), BEMSerializer::immediateSlotToFile(), ADFSerializer::immediateSlotToMachine(), ADFSerializer::immediateSlotToMDF(), BEMSerializer::immediateSlotToOM(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMachine(), ADFSerializer::instructionTemplateToMDF(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineRFPort(), ADFSerializer::machineSRPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), ADFSerializer::mdfPort(), ADFSerializer::mdfSRPort(), BEMSerializer::moveSlotToFile(), BEMSerializer::moveSlotToOM(), OutputOperandDialog::onOk(), BEMSerializer::readRegisterFilePortCode(), IDF::IDFSerializer::readState(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), TTAMachine::ExecutionPipeline::saveOperandUse(), OperationPropertyDialog::saveOperation(), TTAMachine::ExecutionPipeline::saveResourceUse(), GuardEncoding::saveState(), TTAMachine::Connection::saveState(), TTAMachine::BaseFUPort::saveState(), ProDeOptions::saveState(), GPRGuardEncoding::saveState(), FUGuardEncoding::saveState(), TTAMachine::FUPort::saveState(), BridgeEncoding::saveState(), ImmediateSlotField::saveState(), OperationTriggeredField::saveState(), ImmediateEncoding::saveState(), IDF::FUGenerated::saveState(), Encoding::saveState(), TTAMachine::BaseRegisterFile::saveState(), FUPortCode::saveState(), PortCode::saveState(), ToolbarButton::saveState(), OperationTriggeredEncoding::saveState(), TTAMachine::Bridge::saveState(), TTAMachine::OperationTriggeredOperand::saveState(), LImmDstRegisterField::saveState(), IDF::UnitImplementationLocation::saveState(), InstructionField::saveState(), TTAMachine::Guard::saveState(), TTAMachine::ImmediateUnit::saveState(), TTAMachine::Port::saveState(), TTAMachine::TemplateSlot::saveState(), InstructionFormat::saveState(), SocketEncoding::saveState(), TTAMachine::AddressSpace::saveState(), TTAMachine::HWOperation::saveState(), TTAMachine::ControlUnit::saveState(), ImmediateControlField::saveState(), GUIOptions::saveState(), TTAMachine::Segment::saveState(), TTAMachine::RegisterFile::saveState(), SlotField::saveState(), KeyboardShortcut::saveState(), MoveSlot::saveState(), TTAMachine::Socket::saveState(), TTAMachine::FunctionUnit::saveState(), TTAMachine::Bus::saveState(), TTAMachine::PortGuard::saveState(), TTAMachine::Component::saveState(), OperationPimpl::saveState(), SocketCodeTable::saveState(), IDF::MachineImplementation::saveState(), Operand::saveState(), TTAMachine::Machine::saveState(), TTAMachine::RegisterGuard::saveState(), setAttribute(), ADFSerializer::setIUExtensionMode(), OperationSerializer::setOperandProperties(), GUIOptionsSerializer::setToolbarProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), ADFSerializer::socketToMachine(), ADFSerializer::socketToMDF(), BEMSerializer::sourceFieldToFile(), BEMSerializer::sourceFieldToOM(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), InputOperandDialog::updateOperand(), and OperationPropertyDialog::updateSwapLists().
void ObjectState::setAttribute | ( | const std::string & | name, |
double | value | ||
) |
Sets an attribute.
If there is an attribute called the given name, its value is changed according to the given value. Otherwise a new attribute is created.
name | Name of the attribute. |
value | Value of the attribute. |
Definition at line 176 of file ObjectState.cc.
References name(), setAttribute(), and Conversion::toString().
void ObjectState::setAttribute | ( | const std::string & | name, |
int | value | ||
) |
Sets an attribute.
If there is an attribute called the given name, its value is changed according to the given value. Otherwise a new attribute is created.
name | Name of the attribute. |
value | Value of the attribute. |
Definition at line 129 of file ObjectState.cc.
References name(), setAttribute(), and Conversion::toString().
void ObjectState::setAttribute | ( | const std::string & | name, |
ULongWord | value | ||
) |
Sets an attribute.
If there is an attribute called the given name, its value is changed according to the given value. Otherwise a new attribute is created.
name | Name of the attribute. |
value | Value of the attribute. |
Definition at line 160 of file ObjectState.cc.
References name(), setAttribute(), and Conversion::toString().
void ObjectState::setAttribute | ( | const std::string & | name, |
unsigned int | value | ||
) |
Sets an attribute.
If there is an attribute called the given name, its value is changed according to the given value. Otherwise a new attribute is created.
name | Name of the attribute. |
value | Value of the attribute. |
Definition at line 145 of file ObjectState.cc.
References name(), setAttribute(), and Conversion::toString().
void ObjectState::setName | ( | const std::string & | name | ) |
Referenced by ADFSerializer::controlUnitToMDF(), BEMSerializer::destinationFieldToFile(), BEMSerializer::destinationFieldToOM(), OperationPropertyDialog::saveOperation(), DestinationField::saveState(), IUPortCode::saveState(), TTAMachine::RFPort::saveState(), RFPortCode::saveState(), UnconditionalGuardEncoding::saveState(), NOPEncoding::saveState(), TTAMachine::ImmediateSlot::saveState(), GPRGuardEncoding::saveState(), TTAMachine::SpecialRegisterPort::saveState(), FUGuardEncoding::saveState(), BridgeEncoding::saveState(), ImmediateSlotField::saveState(), TTAMachine::FUPort::saveState(), ImmediateEncoding::saveState(), TTAMachine::BaseRegisterFile::saveState(), FUPortCode::saveState(), TTAMachine::Unit::saveState(), TTAMachine::Bridge::saveState(), LImmDstRegisterField::saveState(), TTAMachine::OperationTriggeredFormat::saveState(), SourceField::saveState(), TTAMachine::ImmediateUnit::saveState(), SocketEncoding::saveState(), TTAMachine::ControlUnit::saveState(), ImmediateControlField::saveState(), TTAMachine::RegisterFile::saveState(), DataDependenceEdge::saveState(), SlotField::saveState(), TTAMachine::InstructionTemplate::saveState(), MoveSlot::saveState(), GuardField::saveState(), TTAMachine::Socket::saveState(), TTAMachine::FunctionUnit::saveState(), TTAMachine::Bus::saveState(), TTAMachine::PortGuard::saveState(), TTAMachine::RegisterGuard::saveState(), TTAMachine::UnconditionalGuard::saveState(), BEMSerializer::sourceFieldToFile(), and BEMSerializer::sourceFieldToOM().
void ObjectState::setValue | ( | bool | value | ) |
void ObjectState::setValue | ( | const std::string & | value | ) |
Referenced by IPXactModel::addAddressSpaceObject(), IPXactModel::addBusInterfaceObject(), IPXactModel::addFileObject(), IPXactModel::addModelParamsObject(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), IPXactModel::addSignalObject(), ADFSerializer::bridgeToMDF(), ADFSerializer::busToMDF(), ADFSerializer::controlUnitToMDF(), GUIOptionsSerializer::convertToConfigFileFormat(), IDF::IDFSerializer::convertToFileFormat(), BEMSerializer::convertZeroEncExtraBits(), XMLSerializer::createState(), ADFSerializer::functionUnitToMDF(), BEMSerializer::guardFieldToFile(), BEMSerializer::immediateSlotToFile(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMDF(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), ADFSerializer::mdfFUPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), ADFSerializer::mdfPort(), ADFSerializer::mdfSRPort(), BEMSerializer::moveSlotToFile(), ADFSerializer::registerFileToMDF(), OperationPropertyDialog::saveOperation(), IDF::FUGenerated::saveState(), IPXactModel::saveState(), TTAMachine::OperationTriggeredFormat::saveState(), TTAMachine::AddressSpace::saveState(), DataDependenceEdge::saveState(), OperationPimpl::saveState(), BinaryEncoding::saveState(), BEMSerializer::slotFieldToFile(), BEMSerializer::socketCodeTableToFile(), ADFSerializer::socketToMDF(), BEMSerializer::sourceFieldToFile(), OperationSerializer::toXMLFormat(), and DataDependenceGraph::writeToXMLFile().
void ObjectState::setValue | ( | double | value | ) |
void ObjectState::setValue | ( | int | value | ) |
void ObjectState::setValue | ( | UIntWord | value | ) |
std::string ObjectState::stringAttribute | ( | const std::string & | name | ) | const |
Returns the value of the requested attribute.
name | Name of the attribute. |
KeyNotFound | If no attribute called the given name is found. |
Definition at line 249 of file ObjectState.cc.
References attributes_, commonErrorMessage(), and name().
Referenced by GUIOptionsSerializer::addKeyboardShortcut(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::addressSpaceToMDF(), TTAMachine::Bus::adjustSegmentChain(), boolAttribute(), BridgeEncoding::BridgeEncoding(), ADFSerializer::bridgeToMachine(), ADFSerializer::bridgeToMDF(), ADFSerializer::busToMachine(), ADFSerializer::busToMDF(), TTAMachine::Component::Component(), ADFSerializer::controlUnitToMachine(), ADFSerializer::controlUnitToMDF(), GUIOptionsSerializer::convertToConfigFileFormat(), IDF::IDFSerializer::convertToFileFormat(), IDF::IDFSerializer::convertToOMFormat(), ProDeOptionsSerializer::convertToOptionsObjectFormat(), OSEdPropertiesCmd::Do(), OSEdRemoveOperationCmd::Do(), doubleAttribute(), OperationIndex::effectiveOperation(), IPXactModel::extractModelParam(), IPXactModel::extractVlnvFromAttr(), FUGuardEncoding::FUGuardEncoding(), ADFSerializer::functionUnitToMachine(), ADFSerializer::functionUnitToMDF(), FUPortCode::FUPortCode(), GPRGuardEncoding::GPRGuardEncoding(), BEMSerializer::guardFieldToFile(), BEMSerializer::guardFieldToOM(), TTAMachine::HWOperation::HWOperation(), BEMSerializer::immediateSlotToFile(), ADFSerializer::immediateSlotToMachine(), ADFSerializer::immediateSlotToMDF(), BEMSerializer::immediateSlotToOM(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::immediateUnitToMDF(), ADFSerializer::instructionTemplateToMachine(), ADFSerializer::instructionTemplateToMDF(), intAttribute(), BlocksModel::LoadModelFromXml(), IDF::FUGenerated::loadState(), ImmediateSlotField::loadState(), OperationTriggeredEncoding::loadState(), TTAMachine::OperationTriggeredOperand::loadState(), ToolbarButton::loadState(), TTAMachine::Unit::loadState(), TTAMachine::Bridge::loadState(), IDF::UnitImplementationLocation::loadState(), InstructionField::loadState(), InstructionFormat::loadState(), TTAMachine::Port::loadState(), TTAMachine::HWOperation::loadState(), ImmediateControlField::loadState(), GUIOptions::loadState(), LImmDstRegisterField::loadState(), TTAMachine::InstructionTemplate::loadState(), KeyboardShortcut::loadState(), MoveSlot::loadState(), TTAMachine::ExecutionPipeline::loadState(), TTAMachine::Socket::loadState(), TTAMachine::FunctionUnit::loadState(), TTAMachine::Bus::loadState(), TTAMachine::PortGuard::loadState(), OperationPimpl::loadState(), TTAMachine::Component::loadState(), SocketCodeTable::loadState(), IDF::MachineImplementation::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::RegisterGuard::loadState(), TTAMachine::ImmediateUnit::loadStateWithoutReferences(), TTAMachine::Unit::loadStateWithoutReferences(), TTAMachine::ControlUnit::loadStateWithoutReferences(), TTAMachine::Segment::loadStateWithoutReferences(), TTAMachine::Port::loadStateWithoutReferences(), TTAMachine::RegisterFile::loadStateWithoutReferences(), TTAMachine::Bus::loadStateWithoutReferences(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmDstRegisterFieldToFile(), BEMSerializer::longImmTagToFile(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineRFPort(), ADFSerializer::machineSRPort(), ADFSerializer::mdfFUPort(), ADFSerializer::mdfOperation(), ADFSerializer::mdfPipeline(), ADFSerializer::mdfPort(), ADFSerializer::mdfSRPort(), OperationIndex::moduleOf(), ADFSerializer::momTemplateSlot(), BEMSerializer::moveSlotToFile(), BEMSerializer::moveSlotToOM(), OperationContainer::operation(), OperationIndex::operationName(), TTAMachine::OperationTriggeredOperand::OperationTriggeredOperand(), PortCode::PortCode(), TTAMachine::Unit::portNames(), BEMSerializer::readRegisterFilePortCode(), BEMSerializer::readState(), ADFSerializer::registerFileToMachine(), ADFSerializer::registerFileToMDF(), TTAMachine::ExecutionPipeline::saveResourceUse(), GUIOptionsSerializer::setToolbarProperties(), BEMSerializer::slotFieldToFile(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToFile(), BEMSerializer::socketCodeTableToOM(), SocketEncoding::SocketEncoding(), ADFSerializer::socketToMachine(), ADFSerializer::socketToMDF(), BEMSerializer::sourceFieldToFile(), BEMSerializer::sourceFieldToOM(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), uLongAttribute(), and unsignedIntAttribute().
std::string ObjectState::stringValue | ( | ) | const |
Referenced by GUIOptionsSerializer::addKeyboardShortcut(), ADFSerializer::addressSpaceToMachine(), ADFSerializer::bridgeToMachine(), ADFSerializer::busToMachine(), ADFSerializer::controlUnitToMachine(), IDF::IDFSerializer::convertToOMFormat(), XMLSerializer::createDOM(), XMLSerializer::createDOMDocument(), dumpObjectState(), IPXactModel::extractAddressSpace(), IPXactModel::extractBusInterface(), IPXactModel::extractFiles(), IPXactModel::extractModelParam(), IPXactModel::extractPortMap(), IPXactModel::extractSignals(), IPXactModel::extractVLNV(), ADFSerializer::functionUnitToMachine(), BEMSerializer::guardFieldToOM(), BEMSerializer::immediateSlotToOM(), ADFSerializer::immediateUnitToMachine(), ADFSerializer::instructionTemplateToMachine(), OSEdOptions::loadState(), IDF::FUGenerated::loadState(), TTAMachine::OperationTriggeredFormat::loadState(), OperationPimpl::loadState(), BinaryEncoding::loadState(), BEMSerializer::longImmDstRegFieldToOM(), BEMSerializer::longImmTagToOM(), ADFSerializer::machineFUPort(), ADFSerializer::machineOperation(), ADFSerializer::machinePipeline(), ADFSerializer::machineRFPort(), ADFSerializer::machineSRPort(), BEMSerializer::moveSlotToOM(), operator!=(), BEMSerializer::readRegisterFilePortCode(), ADFSerializer::registerFileToMachine(), ADFSerializer::setIUExtensionMode(), GUIOptionsSerializer::setToolbarProperties(), GUIOptionsSerializer::setWindowProperties(), BEMSerializer::slotFieldToOM(), BEMSerializer::socketCodeTableToOM(), ADFSerializer::socketToMachine(), BEMSerializer::sourceFieldToOM(), and OperationSerializer::toOperation().
UIntWord ObjectState::UIntWordAttribute | ( | const std::string & | name | ) | const |
int ObjectState::UIntWordValue | ( | ) | const |
ULongWord ObjectState::uLongAttribute | ( | const std::string & | name | ) | const |
Returns the value of the requested attribute.
name | Name of the attribute. |
KeyNotFound | If no attribute called the given name is found. |
NumberFormatException | If the value of the requested attribute can't be converted to int. |
Definition at line 291 of file ObjectState.cc.
References name(), stringAttribute(), and Conversion::toUnsignedLong().
Referenced by TTAMachine::AddressSpace::loadState().
unsigned int ObjectState::unsignedIntAttribute | ( | const std::string & | name | ) | const |
Returns the value of the requested attribute.
name | Name of the attribute. |
KeyNotFound | If no attribute called the given name is found. |
NumberFormatException | If the value of the requested attribute can't be converted to unsigned int. |
Definition at line 308 of file ObjectState.cc.
References name(), stringAttribute(), and Conversion::toUnsignedInt().
unsigned int ObjectState::unsignedIntValue | ( | ) | const |
|
private |
Contains all the attributes of the element.
Definition at line 146 of file ObjectState.hh.
Referenced by attribute(), hasAttribute(), operator!=(), setAttribute(), and stringAttribute().
|
private |
The child elements.
Definition at line 143 of file ObjectState.hh.
Referenced by addChild(), child(), childByName(), hasChild(), operator!=(), removeChild(), replaceChild(), and ~ObjectState().
|
private |
|
private |
The parent element.
Definition at line 140 of file ObjectState.hh.
Referenced by addChild(), removeChild(), replaceChild(), and ~ObjectState().
|
private |
The value of a leaf element.
Definition at line 137 of file ObjectState.hh.
Referenced by operator!=().