|
OpenASIP 2.2
|
#include <EditPartFactory.hh>


Public Member Functions | |
| virtual | ~EditPartFactory () |
| void | registerFactory (Factory *factory) |
Public Member Functions inherited from Factory | |
| virtual | ~Factory () |
| virtual EditPart * | createEditPart (TTAMachine::MachinePart *component)=0 |
| Returns an EditPart that corresponds to a Machine component. | |
Protected Member Functions | |
| EditPartFactory (EditPolicyFactory &editPolicyFactory) | |
| EditPart * | checkCache (const TTAMachine::MachinePart *component) const |
| void | writeToCache (EditPart *editPart) |
Protected Member Functions inherited from Factory | |
| Factory () | |
Protected Attributes | |
| std::vector< Factory * > | factories_ |
| Registered factories. | |
| EditPolicyFactory & | editPolicyFactory_ |
| Factory which creates edit policies for edit parts. | |
Static Protected Attributes | |
| static std::vector< EditPart * > | created_ |
| Container for already created EditParts. | |
Private Member Functions | |
| EditPartFactory & | operator= (EditPartFactory &old) |
| Assignment not allowed. | |
| EditPartFactory (EditPartFactory &old) | |
| Copying not allowed. | |
Abstract base class for EditPart factories that create appropriate EditParts from Machine components.
Definition at line 48 of file EditPartFactory.hh.
|
virtual |
The Destructor.
Definition at line 57 of file EditPartFactory.cc.
References created_, SequenceTools::deleteAllItems(), and factories_.

|
protected |
The Constructor.
Definition at line 49 of file EditPartFactory.cc.
|
private |
Copying not allowed.
|
protected |
Checks if an EditPart of the given component has already been created and returns it.
| component | A machine component to check. |
Definition at line 72 of file EditPartFactory.cc.
References created_.
Referenced by BusFactory::createEditPart(), MachineEditPartFactory::createEditPart(), and SocketFactory::createEditPart().
|
private |
Assignment not allowed.
| void EditPartFactory::registerFactory | ( | Factory * | factory | ) |
|
protected |
Inserts an EditPart to the EditPart cache.
| editPart | The EditPart to insert. |
Definition at line 89 of file EditPartFactory.cc.
References created_.
Referenced by BusFactory::createEditPart(), MachineEditPartFactory::createEditPart(), and SocketFactory::createEditPart().
|
staticprotected |
Container for already created EditParts.
Definition at line 62 of file EditPartFactory.hh.
Referenced by checkCache(), writeToCache(), and ~EditPartFactory().
|
protected |
Factory which creates edit policies for edit parts.
Definition at line 64 of file EditPartFactory.hh.
Referenced by MachineEditPartFactory::createBiDirBridge(), BridgeFactory::createEditPart(), BusFactory::createEditPart(), FUFactory::createEditPart(), GCUFactory::createEditPart(), IUFactory::createEditPart(), RFFactory::createEditPart(), SegmentFactory::createEditPart(), SocketFactory::createEditPart(), and UnitPortFactory::createEditPart().
|
protected |
Registered factories.
Definition at line 60 of file EditPartFactory.hh.
Referenced by UnitPortFactory::addSocket(), BridgeFactory::createEditPart(), BusFactory::createEditPart(), FUFactory::createEditPart(), GCUFactory::createEditPart(), IUFactory::createEditPart(), MachineEditPartFactory::createEditPart(), RFFactory::createEditPart(), SegmentFactory::createEditPart(), and ~EditPartFactory().