#include <channel_element.hpp>
Public Types | |
typedef boost::call_traits< M > ::param_type | param_t |
typedef boost::call_traits< M > ::reference | reference_t |
typedef boost::intrusive_ptr < ChannelElement< M > > | shared_ptr |
typedef M | 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 34 of file channel_element.hpp.
typedef boost::call_traits<M>::param_type micros_rtt::ChannelElement< M >::param_t |
Reimplemented in micros_rtt::ChannelDataElement< T >.
Definition at line 39 of file channel_element.hpp.
typedef boost::call_traits<M>::reference micros_rtt::ChannelElement< M >::reference_t |
Reimplemented in micros_rtt::ChannelDataElement< T >.
Definition at line 40 of file channel_element.hpp.
typedef boost::intrusive_ptr< ChannelElement<M> > micros_rtt::ChannelElement< M >::shared_ptr |
Reimplemented from micros_rtt::ChannelElementBase.
Definition at line 38 of file channel_element.hpp.
typedef M micros_rtt::ChannelElement< M >::value_t |
Definition at line 37 of file channel_element.hpp.
virtual bool micros_rtt::ChannelElement< M >::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.
Definition at line 60 of file channel_element.hpp.
virtual value_t micros_rtt::ChannelElement< M >::data_sample | ( | ) | [inline, virtual] |
Reimplemented in micros_rtt::ChannelDataElement< T >.
Definition at line 70 of file channel_element.hpp.
shared_ptr micros_rtt::ChannelElement< M >::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 micros_rtt::ChannelElementBase.
Definition at line 47 of file channel_element.hpp.
shared_ptr micros_rtt::ChannelElement< M >::getOutput | ( | ) | [inline] |
Returns the next channel element in the channel's propagation direction
Reimplemented from micros_rtt::ChannelElementBase.
Definition at line 42 of file channel_element.hpp.
virtual FlowStatus micros_rtt::ChannelElement< M >::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
Definition at line 100 of file channel_element.hpp.
virtual bool micros_rtt::ChannelElement< M >::write | ( | param_t | sample | ) | [inline, virtual] |
Writes a new sample on this connection. sample is the sample to write.
Definition at line 85 of file channel_element.hpp.