ML Reference
ml::InputConnector Class Reference

Class to manage an input connection of a Module module. More...

#include <mlConnectors.h>

Public Member Functions

 InputConnector (Module &module, MLint index)
 Constructor: Creates input connection for module module at input index.
 
 InputConnector (Module &module, MLint index, OutputConnector &outputConnector)
 Constructor: Creates input connection for module module at input index and connect bidirectionally with output connector outputConnector.
 
virtual ~InputConnector ()
 Destructor: Destroys this and its connection to the OutputConnector bidirectionally.
 
ModulegetModule () const
 Returns the Module to which this connector belongs to.
 
MLint getIndex () const
 Returns index of input connection which is represented by this connector.
 
OutputConnectorgetConnector () const
 Returns the connected OutputConnector. Could be NULL.
 
void connect (OutputConnector &connector)
 Creates connection between this and the OutputConnector connector bidirectionally.
 
void disconnect ()
 Disconnects this connector from the OutputConnector bidirectionally if it exists.
 
bool isValidConnection () const
 Returns true if bidirectional connection is valid, otherwise false.
 

Friends

class OutputConnector
 

Detailed Description

Class to manage an input connection of a Module module.

One or more instances of this class are assigned to the Module module thisOp. An instance of this represents the index'th image input of thisOp and it represents the connections with an OutputConnector of another (input) module.

Definition at line 124 of file mlConnectors.h.

Constructor & Destructor Documentation

◆ InputConnector() [1/2]

ml::InputConnector::InputConnector ( Module & module,
MLint index )

Constructor: Creates input connection for module module at input index.

◆ InputConnector() [2/2]

ml::InputConnector::InputConnector ( Module & module,
MLint index,
OutputConnector & outputConnector )

Constructor: Creates input connection for module module at input index and connect bidirectionally with output connector outputConnector.

◆ ~InputConnector()

virtual ml::InputConnector::~InputConnector ( )
virtual

Destructor: Destroys this and its connection to the OutputConnector bidirectionally.

Member Function Documentation

◆ connect()

void ml::InputConnector::connect ( OutputConnector & connector)

Creates connection between this and the OutputConnector connector bidirectionally.

connector must be non NULL.

◆ disconnect()

void ml::InputConnector::disconnect ( )

Disconnects this connector from the OutputConnector bidirectionally if it exists.

◆ getConnector()

OutputConnector * ml::InputConnector::getConnector ( ) const

Returns the connected OutputConnector. Could be NULL.

◆ getIndex()

MLint ml::InputConnector::getIndex ( ) const

Returns index of input connection which is represented by this connector.

◆ getModule()

Module & ml::InputConnector::getModule ( ) const

Returns the Module to which this connector belongs to.

◆ isValidConnection()

bool ml::InputConnector::isValidConnection ( ) const

Returns true if bidirectional connection is valid, otherwise false.

This is for debug purposes only, the API does not allow such connections invalid connections.

Friends And Related Symbol Documentation

◆ OutputConnector

friend class OutputConnector
friend

Definition at line 162 of file mlConnectors.h.


The documentation for this class was generated from the following file: