OpenASIP
2.0
|
#include <FUFactory.hh>
Public Member Functions | |
FUFactory (EditPolicyFactory &editPolicyFactory) | |
virtual | ~FUFactory () |
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 | |
FUFactory & | operator= (FUFactory &old) |
Assignment not allowed. More... | |
FUFactory (FUFactory &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 function unit EditParts corresponding to a given Machine FunctionUnit object.
Definition at line 45 of file FUFactory.hh.
FUFactory::FUFactory | ( | EditPolicyFactory & | editPolicyFactory | ) |
The Constructor.
Definition at line 53 of file FUFactory.cc.
References EditPartFactory::registerFactory().
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns an EditPart corresponding to a function unit.
component | Function unit of which to create the EditPart. |
Implements Factory.
Definition at line 75 of file FUFactory.cc.
References EditPart::addChild(), TTAMachine::FunctionUnit::addressSpace(), EditPolicyFactory::createFUEditPolicy(), EditPolicyFactory::createFUPortEditPolicy(), EditPartFactory::editPolicyFactory_, EditPartFactory::factories_, EditPart::installEditPolicy(), TTAMachine::HWOperation::name(), TTAMachine::Component::name(), TTAMachine::FunctionUnit::operation(), TTAMachine::FunctionUnit::operationCount(), TTAMachine::FunctionUnit::port(), TTAMachine::Unit::portCount(), EditPart::setFigure(), UnitFigure::setInfo(), EditPart::setModel(), UnitFigure::setName(), EditPart::setSelectable(), and WxConversion::toWxString().