OpenASIP  2.0
Public Member Functions | Private Member Functions | List of all members
SocketPortConnFactory Class Reference

#include <SocketPortConnFactory.hh>

Inheritance diagram for SocketPortConnFactory:
Inheritance graph
Collaboration diagram for SocketPortConnFactory:
Collaboration graph

Public Member Functions

 SocketPortConnFactory ()
 
virtual ~SocketPortConnFactory ()
 
virtual EditPartcreateConnection (EditPart *source, EditPart *target) const
 
- Public Member Functions inherited from ConnectionFactory
 ConnectionFactory ()
 
virtual ~ConnectionFactory ()
 
virtual EditPartcreateEditPart (TTAMachine::MachinePart *)
 
- Public Member Functions inherited from Factory
virtual ~Factory ()
 

Private Member Functions

SocketPortConnFactoryoperator= (SocketPortConnFactory &old)
 Assignment not allowed. More...
 
 SocketPortConnFactory (SocketPortConnFactory &old)
 Copying not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Factory
 Factory ()
 

Detailed Description

Factory for creating socket-to-port connection EditParts.

Definition at line 44 of file SocketPortConnFactory.hh.

Constructor & Destructor Documentation

◆ SocketPortConnFactory() [1/2]

SocketPortConnFactory::SocketPortConnFactory ( )

The Constructor.

Definition at line 46 of file SocketPortConnFactory.cc.

46  : ConnectionFactory() {
47 }

◆ ~SocketPortConnFactory()

SocketPortConnFactory::~SocketPortConnFactory ( )
virtual

The Destructor.

Definition at line 52 of file SocketPortConnFactory.cc.

52  {
53 }

◆ SocketPortConnFactory() [2/2]

SocketPortConnFactory::SocketPortConnFactory ( SocketPortConnFactory old)
private

Copying not allowed.

Member Function Documentation

◆ createConnection()

EditPart * SocketPortConnFactory::createConnection ( EditPart port,
EditPart socket 
) const
virtual

Specialized factory function that returns an EditPart corresponding to a socket-port connection.

Note
Source and target distinction does not imply the direction of the connection.
Parameters
portSource (port) of the connection.
socketTarget (socket) of the connection.
Returns
An EditPart corresponding to a socket-port connection.

Reimplemented from ConnectionFactory.

Definition at line 66 of file SocketPortConnFactory.cc.

68  {
69 
72  conn->setFigure(connFig);
73  conn->setSource(port);
74  conn->setTarget(socket);
75  return conn;
76 }

References EditPart::setFigure(), ConnectionEditPart::setSource(), and ConnectionEditPart::setTarget().

Referenced by UnitPortFactory::addSocket().

Here is the call graph for this function:

◆ operator=()

SocketPortConnFactory& SocketPortConnFactory::operator= ( SocketPortConnFactory old)
private

Assignment not allowed.


The documentation for this class was generated from the following files:
ConnectionEditPart::setSource
void setSource(EditPart *source)
Definition: ConnectionEditPart.cc:56
ConnectionFactory::ConnectionFactory
ConnectionFactory()
Definition: ConnectionFactory.cc:46
EditPart::setFigure
void setFigure(Figure *figure)
ConnectionEditPart
Definition: ConnectionEditPart.hh:42
ConnectionEditPart::setTarget
void setTarget(EditPart *target)
Definition: ConnectionEditPart.cc:71
SocketPortConnFigure
Definition: SocketPortConnFigure.hh:46