OpenASIP
2.0
|
#include <UnitPortFactory.hh>
Public Member Functions | |
UnitPortFactory (EditPolicyFactory &editPolicyFactory) | |
virtual | ~UnitPortFactory () |
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 | |
UnitPortFactory & | operator= (UnitPortFactory &old) |
Assignment not allowed. More... | |
UnitPortFactory (UnitPortFactory &old) | |
Copying not allowed. More... | |
void | addSocket (EditPart *portEditPart, TTAMachine::MachinePart *socket) const |
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 port EditParts corresponding to a given Machine port object.
Definition at line 45 of file UnitPortFactory.hh.
UnitPortFactory::UnitPortFactory | ( | EditPolicyFactory & | editPolicyFactory | ) |
The Constructor.
Definition at line 54 of file UnitPortFactory.cc.
References EditPartFactory::registerFactory().
|
virtual |
|
private |
Copying not allowed.
|
private |
Creates an EditPart of a socket and adds it as a child to the given EditPart.
socket | Socket of which to create the EditPart. |
portEditPart | Port in which to add the socket as a child. |
Definition at line 136 of file UnitPortFactory.cc.
References EditPart::addChild(), assert, SocketPortConnFactory::createConnection(), and EditPartFactory::factories_.
Referenced by createEditPart().
|
virtual |
Returns an EditPart corresponding to a port.
component | Port of which to create the EditPart. |
Implements Factory.
Definition at line 73 of file UnitPortFactory.cc.
References addSocket(), EditPart::childCount(), EditPolicyFactory::createPortEditPolicy(), EditPartFactory::editPolicyFactory_, TTAMachine::Port::inputSocket(), EditPart::installEditPolicy(), TTAMachine::FUPort::isTriggering(), TTAMachine::Port::name(), TTAMachine::Port::outputSocket(), EditPart::setFigure(), EditPart::setModel(), EditPart::setSelectable(), TTAMachine::Port::unconnectedSocket(), and TTAMachine::Port::width().
|
private |
Assignment not allowed.