OpenASIP
2.0
|
#include <RFFactory.hh>
Public Member Functions | |
RFFactory (EditPolicyFactory &editPolicyFactory) | |
virtual | ~RFFactory () |
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 | |
RFFactory & | operator= (RFFactory &old) |
Assignment not allowed. More... | |
RFFactory (RFFactory &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 register file EditParts corresponding to a given Machine RegisterFile object.
Definition at line 45 of file RFFactory.hh.
RFFactory::RFFactory | ( | EditPolicyFactory & | editPolicyFactory | ) |
The Constructor.
Definition at line 53 of file RFFactory.cc.
References EditPartFactory::registerFactory().
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns an EditPart corresponding to a register file.
component | Register file of which to create the EditPart. |
Implements Factory.
Definition at line 73 of file RFFactory.cc.
References EditPart::addChild(), EditPolicyFactory::createRFEditPolicy(), EditPolicyFactory::createRFPortEditPolicy(), 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().