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

#include <ConnectionFactory.hh>

Inheritance diagram for ConnectionFactory:
Inheritance graph
Collaboration diagram for ConnectionFactory:
Collaboration graph

Public Member Functions

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

Private Member Functions

ConnectionFactoryoperator= (ConnectionFactory &old)
 Assignment not allowed. More...
 
 ConnectionFactory (ConnectionFactory &old)
 Copying not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Factory
 Factory ()
 

Detailed Description

Factory for creating connection EditParts.

Definition at line 44 of file ConnectionFactory.hh.

Constructor & Destructor Documentation

◆ ConnectionFactory() [1/2]

ConnectionFactory::ConnectionFactory ( )

The Constructor.

Definition at line 46 of file ConnectionFactory.cc.

46  {
47 }

◆ ~ConnectionFactory()

ConnectionFactory::~ConnectionFactory ( )
virtual

The Destructor.

Definition at line 52 of file ConnectionFactory.cc.

52  {
53 }

◆ ConnectionFactory() [2/2]

ConnectionFactory::ConnectionFactory ( ConnectionFactory old)
private

Copying not allowed.

Member Function Documentation

◆ createConnection()

EditPart * ConnectionFactory::createConnection ( EditPart source,
EditPart target 
) const
virtual

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

Doesn't create a figure.

Parameters
sourceSource of the connection.
targetTarget of the connection.
Returns
An EditPart corresponding to a connection.

Reimplemented in SocketBusConnFactory, and SocketPortConnFactory.

Definition at line 66 of file ConnectionFactory.cc.

68  {
69 
71  conn->setSource(source);
72  conn->setTarget(target);
73  return conn;
74 }

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

Here is the call graph for this function:

◆ createEditPart()

EditPart * ConnectionFactory::createEditPart ( TTAMachine::MachinePart )
virtual

There's no object in Machine that corresponds to a connection.

Returns
NULL always.

Implements Factory.

Definition at line 82 of file ConnectionFactory.cc.

82  {
83  return NULL;
84 }

◆ operator=()

ConnectionFactory& ConnectionFactory::operator= ( ConnectionFactory 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
ConnectionEditPart
Definition: ConnectionEditPart.hh:42
ConnectionEditPart::setTarget
void setTarget(EditPart *target)
Definition: ConnectionEditPart.cc:71