Public Member Functions | Private Attributes
RTT::internal::ConnInputEndpoint< T > Class Template Reference

#include <ConnInputEndPoint.hpp>

Inheritance diagram for RTT::internal::ConnInputEndpoint< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ConnInputEndpoint (OutputPort< T > *port, ConnID *id)
virtual void disconnect (bool forward)
virtual ConnIDgetConnID () const
virtual base::PortInterfacegetPort () const
virtual bool inputReady ()
virtual FlowStatus read (typename base::ChannelElement< T >::reference_t sample)
 ~ConnInputEndpoint ()

Private Attributes

ConnIDcid
OutputPort< T > * port

Detailed Description

template<typename T>
class RTT::internal::ConnInputEndpoint< T >

This is a channel element that represents the input endpoint of a connection, i.e. the part that is connected to the OutputPort

Definition at line 51 of file ConnInputEndPoint.hpp.


Constructor & Destructor Documentation

template<typename T>
RTT::internal::ConnInputEndpoint< T >::ConnInputEndpoint ( OutputPort< T > *  port,
ConnID id 
) [inline]

Definition at line 57 of file ConnInputEndPoint.hpp.

template<typename T>
RTT::internal::ConnInputEndpoint< T >::~ConnInputEndpoint ( ) [inline]

Definition at line 60 of file ConnInputEndPoint.hpp.


Member Function Documentation

template<typename T>
virtual void RTT::internal::ConnInputEndpoint< T >::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 RTT::base::ChannelElementBase.

Definition at line 78 of file ConnInputEndPoint.hpp.

template<typename T>
virtual ConnID* RTT::internal::ConnInputEndpoint< T >::getConnID ( ) const [inline, virtual]

Gets the Connection ID of this channel. This is only stored in connection endpoints.

Returns:
null if no ConnID is associated with this element.

Reimplemented from RTT::base::ChannelElementBase.

Definition at line 95 of file ConnInputEndPoint.hpp.

template<typename T>
virtual base::PortInterface* RTT::internal::ConnInputEndpoint< T >::getPort ( ) const [inline, virtual]

Gets the port this channel element is connected to.

Returns:
null if no port is connected to this element, the port (or a proxy representing the port) otherwise.

Reimplemented from RTT::base::ChannelElementBase.

Definition at line 91 of file ConnInputEndPoint.hpp.

template<typename T>
virtual bool RTT::internal::ConnInputEndpoint< T >::inputReady ( ) [inline, virtual]

This is called by an input port when it is ready to receive data. Each channel element has the responsibility to pass this notification on to the next, in the direction of the output.

Returns:
false if a fatal connection failure was encountered and the channel needs to be destroyed.

Reimplemented from RTT::base::ChannelElementBase.

Definition at line 74 of file ConnInputEndPoint.hpp.

template<typename T>
virtual FlowStatus RTT::internal::ConnInputEndpoint< T >::read ( typename base::ChannelElement< T >::reference_t  sample) [inline, virtual]

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

Definition at line 71 of file ConnInputEndPoint.hpp.


Member Data Documentation

template<typename T>
ConnID* RTT::internal::ConnInputEndpoint< T >::cid [private]

Definition at line 54 of file ConnInputEndPoint.hpp.

template<typename T>
OutputPort<T>* RTT::internal::ConnInputEndpoint< T >::port [private]

Definition at line 53 of file ConnInputEndPoint.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:16:24