Orocos Real-Time Toolkit 2.5.0
< ChannelElementBase >
|A default constructed ChannelElementBase has no input nor output configured. |
|Removes the input channel (if any). |
|Returns the current input channel element. |
|Returns the first input channel element of this connection. |
|Returns the next channel element in the channel's propagation direction. |
|Returns the last output channel element of this connection. |
|void||setOutput (shared_ptr output)|
|Sets the output of this channel element to output and sets the input of output to this. |
|virtual bool||signal ()|
|Signals that there is new data available on this channel By default, the channel element forwards the call to its output. |
|virtual bool||inputReady ()|
|This is called by an input port when it is ready to receive data. |
|virtual void||clear ()|
|Clears any data stored by the channel. |
|virtual void||disconnect (bool forward)|
|Performs a disconnection of this channel's endpoints. |
|virtual PortInterface *||getPort () const|
|Gets the port this channel element is connected to. |
|Increases the reference count. |
|Decreases the reference count, and deletes the object if it is zero. |
|void RTT_API||intrusive_ptr_add_ref (ChannelElementBase *e)|
|void RTT_API||intrusive_ptr_release (ChannelElementBase *e)|
In the data flow implementation, a channel is created by chaining ChannelElementBase objects.
ChannelElementBase objects are refcounted. In the chain, an element maintains the refcount for its successor, and holds a simple pointer to its predecessor.
Clears any data stored by the channel.
It means that ChannelElement::read() will return false afterwards (provided that no new data has been written on the meantime of course)
By default, the channel element forwards the calls to its input
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.
Returns the current input channel element.
This will only return a valid channel element if another element has received this object as an argument to setOutput().
Reimplemented in RTT::base::ChannelElement< T >.
Gets the port this channel element is connected to.
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.
Removes the input channel (if any).
This call may delete channels from memory.
Sets the output of this channel element to output and sets the input of output to this.
This implies that this channel element becomes the input of output. There is no setInput function since this function does both setting input and output of this and output.
|output||the next element in chain.|
Signals that there is new data available on this channel By default, the channel element forwards the call to its output.