OpenASIP
2.0
|
#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. More... | |
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. More... | |
EditPolicyFactory & | editPolicyFactory_ |
Factory which creates edit policies for edit parts. More... | |
Static Protected Attributes | |
static std::vector< EditPart * > | created_ |
Container for already created EditParts. More... | |
Private Member Functions | |
EditPartFactory & | operator= (EditPartFactory &old) |
Assignment not allowed. More... | |
EditPartFactory (EditPartFactory &old) | |
Copying not allowed. More... | |
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(), SocketFactory::createEditPart(), and MachineEditPartFactory::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(), SocketFactory::createEditPart(), and MachineEditPartFactory::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(), UnitPortFactory::createEditPart(), BusFactory::createEditPart(), GCUFactory::createEditPart(), RFFactory::createEditPart(), FUFactory::createEditPart(), IUFactory::createEditPart(), SegmentFactory::createEditPart(), BridgeFactory::createEditPart(), and SocketFactory::createEditPart().
|
protected |
Registered factories.
Definition at line 60 of file EditPartFactory.hh.
Referenced by UnitPortFactory::addSocket(), GCUFactory::createEditPart(), SegmentFactory::createEditPart(), RFFactory::createEditPart(), BridgeFactory::createEditPart(), FUFactory::createEditPart(), BusFactory::createEditPart(), IUFactory::createEditPart(), MachineEditPartFactory::createEditPart(), and ~EditPartFactory().