Builds Connections (buffers or data objects) between the ports of tasks. More...
#include <rtt/ConnectionFactory.hpp>
Public Member Functions | |
BufferConnection< T > * | createBuffer (int size, const T &initial_value=T(), ConnectionTypes::ConnectionType type=ConnectionTypes::lockfree) |
Create an empty Buffered data connection. | |
DataConnection< T > * | createDataObject (const T &initial_value=T(), ConnectionTypes::ConnectionType type=ConnectionTypes::lockfree) |
Create an empty unbuffered data connection. |
Builds Connections (buffers or data objects) between the ports of tasks.
T | The contents type of the buffers or data objects. |
Definition at line 58 of file ConnectionFactory.hpp.
BufferConnection< T > * RTT::ConnectionFactory< T >::createBuffer | ( | int | size, | |
const T & | initial_value = T() , |
|||
ConnectionTypes::ConnectionType | type = ConnectionTypes::lockfree | |||
) | [inline] |
Create an empty Buffered data connection.
size | The maximum capacity of the connnection's buffer | |
initial_value | The initial value of all elements within the buffer. Use this parameter if the data uses dynamic memory or requires an initial state. | |
type | The connection type: lock based or lock-free. The latter is highly advised. |
Definition at line 112 of file ConnectionFactory.hpp.
References RTT::ConnectionTypes::lockfree.
DataConnection< T > * RTT::ConnectionFactory< T >::createDataObject | ( | const T & | initial_value = T() , |
|
ConnectionTypes::ConnectionType | type = ConnectionTypes::lockfree | |||
) | [inline] |
Create an empty unbuffered data connection.
initial_value | The initial value of all elements within the buffer. Use this parameter if the data uses dynamic memory or requires an initial state. | |
type | The connection type: lock based or lock-free. The latter is highly advised. |
Definition at line 126 of file ConnectionFactory.hpp.
References RTT::ConnectionTypes::lockfree.
Referenced by RTT::DataPort< T >::createConnection(), and RTT::WriteDataPort< T >::createConnection().