#include <channel_element.hpp>
Public Types | |
typedef boost::call_traits< T > ::param_type | param_t |
typedef boost::call_traits< T > ::reference | reference_t |
typedef boost::intrusive_ptr < ChannelElement< T > > | shared_ptr |
typedef T | value_t |
Public Member Functions | |
virtual bool | data_sample (param_t sample) |
virtual value_t | data_sample () |
shared_ptr | getInput () |
shared_ptr | getOutput () |
virtual FlowStatus | read (reference_t sample, bool copy_old_data) |
virtual bool | write (param_t sample) |
A typed version of ChannelElementBase. It defines generic methods that are type-specific (like write and read)
Definition at line 16 of file channel_element.hpp.
typedef boost::call_traits<T>::param_type hpcl_rtt::ChannelElement< T >::param_t |
Reimplemented in hpcl_rtt::ChannelDataElement< T >.
Definition at line 21 of file channel_element.hpp.
typedef boost::call_traits<T>::reference hpcl_rtt::ChannelElement< T >::reference_t |
Reimplemented in hpcl_rtt::ChannelDataElement< T >.
Definition at line 22 of file channel_element.hpp.
typedef boost::intrusive_ptr< ChannelElement<T> > hpcl_rtt::ChannelElement< T >::shared_ptr |
Reimplemented from hpcl_rtt::ChannelElementBase.
Definition at line 20 of file channel_element.hpp.
typedef T hpcl_rtt::ChannelElement< T >::value_t |
Definition at line 19 of file channel_element.hpp.
virtual bool hpcl_rtt::ChannelElement< T >::data_sample | ( | param_t | sample | ) | [inline, virtual] |
Provides a data sample to initialize this connection. This is used before the first write() in order to inform this connection of the size of the data. As such enough storage space can be allocated before the actual writing begins.
Reimplemented in hpcl_rtt::ChannelDataElement< T >.
Definition at line 42 of file channel_element.hpp.
virtual value_t hpcl_rtt::ChannelElement< T >::data_sample | ( | ) | [inline, virtual] |
Reimplemented in hpcl_rtt::ChannelDataElement< T >.
Definition at line 52 of file channel_element.hpp.
shared_ptr hpcl_rtt::ChannelElement< T >::getInput | ( | ) | [inline] |
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 from hpcl_rtt::ChannelElementBase.
Definition at line 29 of file channel_element.hpp.
shared_ptr hpcl_rtt::ChannelElement< T >::getOutput | ( | ) | [inline] |
Returns the next channel element in the channel's propagation direction
Reimplemented from hpcl_rtt::ChannelElementBase.
Definition at line 24 of file channel_element.hpp.
virtual FlowStatus hpcl_rtt::ChannelElement< T >::read | ( | reference_t | sample, |
bool | copy_old_data | ||
) | [inline, virtual] |
Reads a sample from the connection. sample is a reference which will get updated if a sample is available. The method returns true if a sample was available, and false otherwise. If false is returned, then sample is not modified by the method
Reimplemented in hpcl_rtt::ChannelDataElement< T >.
Definition at line 82 of file channel_element.hpp.
virtual bool hpcl_rtt::ChannelElement< T >::write | ( | param_t | sample | ) | [inline, virtual] |
Writes a new sample on this connection. sample is the sample to write.
Reimplemented in hpcl_rtt::ChannelDataElement< T >.
Definition at line 67 of file channel_element.hpp.