ConnectionFactory Class Template Reference

#include <rtt/ConnectionFactory.hpp>

List of all members.


Detailed Description

template<class T>
class RTT::ConnectionFactory< T >

Builds Connections (buffers or data objects) between the ports of tasks.

Parameters:
T The contents type of the buffers or data objects.

Definition at line 58 of file 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.

Member Function Documentation

BufferConnection< T > * createBuffer ( int  size,
const T &  initial_value = T(),
ConnectionTypes::ConnectionType  type = ConnectionTypes::lockfree 
) [inline]

Create an empty Buffered data connection.

Parameters:
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.
Returns:
a new connection object
See also:
BufferInterface for a look at the internal buffer structure

ReadBufferPort, WriteBufferPort, BufferPort for ports to which this connection can be attached.

Definition at line 110 of file ConnectionFactory.hpp.

References ConnectionTypes::lockfree.

Referenced by BufferPort::createConnection(), and WriteBufferPort::createConnection().

DataConnection< T > * createDataObject ( const T &  initial_value = T(),
ConnectionTypes::ConnectionType  type = ConnectionTypes::lockfree 
) [inline]

Create an empty unbuffered data connection.

Parameters:
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.
Returns:
a new connection object
See also:
DataObjectInterface for a look at the internal data sharing structure

ReadDataPort, WriteDataPort for ports to which this connection can be attached.

Definition at line 120 of file ConnectionFactory.hpp.

References ConnectionTypes::lockfree.

Referenced by DataPort::createConnection(), and WriteDataPort::createConnection().


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

Generated on Mon Jan 19 16:53:57 2009 for OrocosReal-TimeToolkit by  doxygen 1.5.6