Public Member Functions | Private Attributes
micros_rtt::ConnOutputEndpoint< M > Class Template Reference

#include <conn_output_endpoint.hpp>

Inheritance diagram for micros_rtt::ConnOutputEndpoint< M >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ConnOutputEndpoint (ConnectionBasePtr subscription)
virtual bool data_sample (typename ChannelElement< M >::param_t sample)
virtual void disconnect (bool forward)
bool inputReady ()
virtual bool signal ()
virtual bool write (typename ChannelElement< M >::param_t sample)
 ~ConnOutputEndpoint ()

Private Attributes

ConnectionBasePtr subscription_

Detailed Description

template<typename M>
class micros_rtt::ConnOutputEndpoint< M >

This is a channel element that represents the output endpoint of a connection, i.e. the part that is connected to the InputPort. In the RTT, connections are always created from input towards output. So this class is typically first created of the channel element chain and attached to the input port. Then we build further towards the outputport. Imagine a spider attaching a thread at one wall and moving along to the other side of the wall.

Definition at line 36 of file conn_output_endpoint.hpp.


Constructor & Destructor Documentation

template<typename M>
micros_rtt::ConnOutputEndpoint< M >::ConnOutputEndpoint ( ConnectionBasePtr  subscription) [inline]

Creates the connection end that represents the output and attach it to the input.

Parameters:
portThe start point.
output_idEach connection must be identified by an ID that represents the other end. This id is passed to the input port port.
Returns:

Definition at line 48 of file conn_output_endpoint.hpp.

template<typename M>
micros_rtt::ConnOutputEndpoint< M >::~ConnOutputEndpoint ( ) [inline]

Definition at line 53 of file conn_output_endpoint.hpp.


Member Function Documentation

template<typename M>
virtual bool micros_rtt::ConnOutputEndpoint< M >::data_sample ( typename ChannelElement< M >::param_t  sample) [inline, virtual]

Definition at line 88 of file conn_output_endpoint.hpp.

template<typename M>
virtual void micros_rtt::ConnOutputEndpoint< M >::disconnect ( bool  forward) [inline, virtual]

Performs a disconnection of this channel's endpoints. If forward is true, then the disconnection is initiated by the input endpoint. Otherwise, it has been initiated by the output endpoint.

Reimplemented from micros_rtt::ChannelElementBase.

Definition at line 77 of file conn_output_endpoint.hpp.

template<typename M>
bool micros_rtt::ConnOutputEndpoint< M >::inputReady ( ) [inline, virtual]

Called by the connection factory to check that the connection is properly set up. It is called when the channel is complete, so we can register ourselves on the port side now

Before that, the channel might not be complete and therefore having the input port read on it would lead to crashes

Reimplemented from micros_rtt::ChannelElementBase.

Definition at line 64 of file conn_output_endpoint.hpp.

template<typename M>
virtual bool micros_rtt::ConnOutputEndpoint< M >::signal ( ) [inline, virtual]

Signals that there is new data available on this channel By default, the channel element forwards the call to its output

Returns:
false if an error occured that requires the channel to be invalidated. In no ways it indicates that the sample has been received by the other side of the channel.

Reimplemented from micros_rtt::ChannelElementBase.

Definition at line 82 of file conn_output_endpoint.hpp.

template<typename M>
virtual bool micros_rtt::ConnOutputEndpoint< M >::write ( typename ChannelElement< M >::param_t  sample) [inline, virtual]

Writes a new sample on this connection This should never be called, as all connections are supposed to have a data storage element

Definition at line 74 of file conn_output_endpoint.hpp.


Member Data Documentation

template<typename M>
ConnectionBasePtr micros_rtt::ConnOutputEndpoint< M >::subscription_ [private]

Definition at line 38 of file conn_output_endpoint.hpp.


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


micros_rtt
Author(s): Zaile Jiang , Xiaodong Yi , Minglong Li
autogenerated on Sat Jun 8 2019 19:02:21