OpenASIP
2.0
|
#include <BridgeFactory.hh>
Public Member Functions | |
BridgeFactory (EditPolicyFactory &editPolicyFactory) | |
virtual | ~BridgeFactory () |
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 | |
BridgeFactory & | operator= (BridgeFactory &old) |
Assignment not allowed. More... | |
BridgeFactory (BridgeFactory &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 bridge EditParts corresponding to a given Machine Bridge object.
Definition at line 45 of file BridgeFactory.hh.
BridgeFactory::BridgeFactory | ( | EditPolicyFactory & | editPolicyFactory | ) |
The Constructor.
Definition at line 50 of file BridgeFactory.cc.
References EditPartFactory::registerFactory().
|
virtual |
|
private |
Copying not allowed.
|
virtual |
Returns an EditPart corresponding to a bridge.
component | Bridge of which to create the EditPart. |
Implements Factory.
Definition at line 70 of file BridgeFactory.cc.
References assert, EditPolicyFactory::createBridgeEditPolicy(), TTAMachine::Bridge::destinationBus(), EditPartFactory::editPolicyFactory_, EditPartFactory::factories_, EditPart::installEditPolicy(), EditPart::setFigure(), EditPart::setModel(), EditPart::setSelectable(), ConnectionEditPart::setSource(), ConnectionEditPart::setTarget(), ConnectionEditPart::source(), TTAMachine::Bridge::sourceBus(), and ConnectionEditPart::target().
|
private |
Assignment not allowed.