OpenASIP
2.0
|
#include <IUFactory.hh>
Public Member Functions | |
IUFactory (EditPolicyFactory &editPolicyFactory) | |
virtual | ~IUFactory () |
virtual EditPart * | createEditPart (TTAMachine::MachinePart *component) |
Public Member Functions inherited from EditPartFactory | |
virtual | ~EditPartFactory () |
void | registerFactory (Factory *factory) |
Public Member Functions inherited from Factory | |
virtual | ~Factory () |
Private Member Functions | |
IUFactory & | operator= (IUFactory &old) |
Assignment not allowed. More... | |
IUFactory (IUFactory &old) | |
Copying not allowed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from EditPartFactory | |
EditPartFactory (EditPolicyFactory &editPolicyFactory) | |
EditPart * | checkCache (const TTAMachine::MachinePart *component) const |
void | writeToCache (EditPart *editPart) |
Protected Member Functions inherited from Factory | |
Factory () | |
Protected Attributes inherited from EditPartFactory | |
std::vector< Factory * > | factories_ |
Registered factories. More... | |
EditPolicyFactory & | editPolicyFactory_ |
Factory which creates edit policies for edit parts. More... | |
Static Protected Attributes inherited from EditPartFactory | |
static std::vector< EditPart * > | created_ |
Container for already created EditParts. More... | |
Factory for creating immediate unit EditParts corresponding to a given Machine ImmediateUnit object.
Definition at line 45 of file IUFactory.hh.
IUFactory::IUFactory | ( | EditPolicyFactory & | editPolicyFactory | ) |
The Constructor.
Definition at line 52 of file IUFactory.cc.
References EditPartFactory::registerFactory().
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns an EditPart corresponding to a immediate unit.
component | Immediate unit of which to create the EditPart. |
Implements Factory.
Definition at line 72 of file IUFactory.cc.
References EditPart::addChild(), EditPolicyFactory::createIUEditPolicy(), EditPolicyFactory::createIUPortEditPolicy(), EditPartFactory::editPolicyFactory_, EditPartFactory::factories_, EditPart::installEditPolicy(), TTAMachine::Component::name(), TTAMachine::BaseRegisterFile::numberOfRegisters(), TTAMachine::BaseRegisterFile::port(), TTAMachine::Unit::portCount(), EditPart::setFigure(), UnitFigure::setInfo(), EditPart::setModel(), UnitFigure::setName(), EditPart::setSelectable(), WxConversion::toWxString(), and TTAMachine::BaseRegisterFile::width().