#include <ChannelDataElement.hpp>
Public Types | |
typedef base::ChannelElement < T >::param_t | param_t |
typedef base::ChannelElement < T >::reference_t | reference_t |
Public Member Functions | |
ChannelDataElement (typename base::DataObjectInterface< T >::shared_ptr sample) | |
virtual void | clear () |
virtual bool | data_sample (param_t sample) |
virtual T | data_sample () |
virtual FlowStatus | read (reference_t sample, bool copy_old_data) |
virtual bool | write (param_t sample) |
Private Attributes | |
base::DataObjectInterface< T > ::shared_ptr | data |
bool | mread |
bool | written |
A connection element that stores a single data sample
Definition at line 50 of file ChannelDataElement.hpp.
typedef base::ChannelElement<T>::param_t RTT::internal::ChannelDataElement< T >::param_t |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 56 of file ChannelDataElement.hpp.
typedef base::ChannelElement<T>::reference_t RTT::internal::ChannelDataElement< T >::reference_t |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 57 of file ChannelDataElement.hpp.
RTT::internal::ChannelDataElement< T >::ChannelDataElement | ( | typename base::DataObjectInterface< T >::shared_ptr | sample | ) | [inline] |
Definition at line 59 of file ChannelDataElement.hpp.
virtual void RTT::internal::ChannelDataElement< T >::clear | ( | ) | [inline, virtual] |
Resets the stored sample. After clear() has been called, read() returns false
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 97 of file ChannelDataElement.hpp.
virtual bool RTT::internal::ChannelDataElement< 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 from RTT::base::ChannelElement< T >.
Definition at line 104 of file ChannelDataElement.hpp.
virtual T RTT::internal::ChannelDataElement< T >::data_sample | ( | ) | [inline, virtual] |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 110 of file ChannelDataElement.hpp.
virtual FlowStatus RTT::internal::ChannelDataElement< T >::read | ( | reference_t | sample, |
bool | copy_old_data | ||
) | [inline, virtual] |
Reads the last sample given to write()
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 76 of file ChannelDataElement.hpp.
virtual bool RTT::internal::ChannelDataElement< T >::write | ( | param_t | sample | ) | [inline, virtual] |
Update the data sample stored in this element. It always returns true.
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 64 of file ChannelDataElement.hpp.
base::DataObjectInterface<T>::shared_ptr RTT::internal::ChannelDataElement< T >::data [private] |
Definition at line 53 of file ChannelDataElement.hpp.
bool RTT::internal::ChannelDataElement< T >::mread [private] |
Definition at line 52 of file ChannelDataElement.hpp.
bool RTT::internal::ChannelDataElement< T >::written [private] |
Definition at line 52 of file ChannelDataElement.hpp.