mimmo::pin Namespace Reference

Utilities to create port connections between executable blocks. More...

Typedefs

typedef std::string PortID
 

Enumerations

enum  ConnectionType { ConnectionType::BOTH, ConnectionType::BACKWARD, ConnectionType::FORWARD }
 Type of allowed connections of the object: bidirectional, only input or only output. More...
 

Functions

bool addPin (BaseManipulation *objSend, BaseManipulation *objRec, PortID portS, PortID portR, bool forced)
 
bool checkCompatibility (BaseManipulation *objSend, BaseManipulation *objRec, PortID portS, PortID portR)
 
void removeAllPins (BaseManipulation *objSend, BaseManipulation *objRec)
 
void removePin (BaseManipulation *objSend, BaseManipulation *objRec, PortID portS, PortID portR)
 

Detailed Description

Utilities to create port connections between executable blocks.

Here are collected enums and methods to create connections between blocks throughout established ports. All the available port types are registered (or need to be if not) in the API singleton mimmo::PortManager

Typedef Documentation

◆ PortID

typedef std::string mimmo::pin::PortID

mimmo custom definition

Definition at line 89 of file MimmoNamespace.hpp.

Enumeration Type Documentation

◆ ConnectionType

Type of allowed connections of the object: bidirectional, only input or only output.

Enumerator
BOTH 

Bidirectional object. It allows both input and output connections.

BACKWARD 

Uni-directional backward object. It allows only input connections.

FORWARD 

Uni-directional forwadr object. It allows only output connections.

Definition at line 83 of file MimmoNamespace.hpp.

Function Documentation

◆ addPin()

bool mimmo::pin::addPin ( BaseManipulation objSend,
BaseManipulation objRec,
PortID  portS,
PortID  portR,
bool  forced 
)

◆ checkCompatibility()

bool mimmo::pin::checkCompatibility ( BaseManipulation objSend,
BaseManipulation objRec,
PortID  portS,
PortID  portR 
)

It checks the compatibility between input and output ports of two objects.

Parameters
[in]objSendPointer to BaseManipulation sender object.
[in]objRecPointer to BaseManipulation receiver object.
[in]portSPort ID of the output port of sender object.
[in]portRPort ID of the input port of receiver object.
Returns
True if the pin is added.

Definition at line 165 of file MimmoNamespace.cpp.

◆ removeAllPins()

void mimmo::pin::removeAllPins ( BaseManipulation objSend,
BaseManipulation objRec 
)

It removes all pins between two objects.

Parameters
[in]objSendPointer to BaseManipulation sender object.
[in]objRecPointer to BaseManipulation receiver object.

Definition at line 108 of file MimmoNamespace.cpp.

◆ removePin()

void mimmo::pin::removePin ( BaseManipulation objSend,
BaseManipulation objRec,
PortID  portS,
PortID  portR 
)

It removes a pin between two objects. If the pin is found it is removed, otherwise nothing is done.

Parameters
[in]objSendPointer to BaseManipulation sender object.
[in]objRecPointer to BaseManipulation receiver object.
[in]portSPort ID of the output port of sender object.
[in]portRPort ID of the input port of receiver object.

Definition at line 147 of file MimmoNamespace.cpp.