#include <ChannelBufferElement.hpp>
Public Types | |
typedef base::ChannelElement < T >::param_t | param_t |
typedef base::ChannelElement < T >::reference_t | reference_t |
typedef base::ChannelElement < T >::value_t | value_t |
Public Member Functions | |
ChannelBufferElement (typename base::BufferInterface< T >::shared_ptr buffer) | |
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) |
virtual | ~ChannelBufferElement () |
Private Attributes | |
base::BufferInterface< T > ::shared_ptr | buffer |
base::ChannelElement< T > ::value_t * | last_sample_p |
A connection element that can store a fixed number of data samples.
Definition at line 50 of file ChannelBufferElement.hpp.
typedef base::ChannelElement<T>::param_t RTT::internal::ChannelBufferElement< T >::param_t |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 55 of file ChannelBufferElement.hpp.
typedef base::ChannelElement<T>::reference_t RTT::internal::ChannelBufferElement< T >::reference_t |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 56 of file ChannelBufferElement.hpp.
typedef base::ChannelElement<T>::value_t RTT::internal::ChannelBufferElement< T >::value_t |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 57 of file ChannelBufferElement.hpp.
RTT::internal::ChannelBufferElement< T >::ChannelBufferElement | ( | typename base::BufferInterface< T >::shared_ptr | buffer | ) | [inline] |
Definition at line 59 of file ChannelBufferElement.hpp.
virtual RTT::internal::ChannelBufferElement< T >::~ChannelBufferElement | ( | ) | [inline, virtual] |
Definition at line 62 of file ChannelBufferElement.hpp.
virtual void RTT::internal::ChannelBufferElement< T >::clear | ( | ) | [inline, virtual] |
Removes all elements in the FIFO. After a call to clear(), read() will always return false (provided write() has not been called in the meantime).
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 106 of file ChannelBufferElement.hpp.
virtual bool RTT::internal::ChannelBufferElement< 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 115 of file ChannelBufferElement.hpp.
virtual T RTT::internal::ChannelBufferElement< T >::data_sample | ( | ) | [inline, virtual] |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 121 of file ChannelBufferElement.hpp.
virtual FlowStatus RTT::internal::ChannelBufferElement< T >::read | ( | reference_t | sample, |
bool | copy_old_data | ||
) | [inline, virtual] |
Pops and returns the first element of the FIFO
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 83 of file ChannelBufferElement.hpp.
virtual bool RTT::internal::ChannelBufferElement< T >::write | ( | param_t | sample | ) | [inline, virtual] |
Appends a sample at the end of the FIFO
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 72 of file ChannelBufferElement.hpp.
base::BufferInterface<T>::shared_ptr RTT::internal::ChannelBufferElement< T >::buffer [private] |
Definition at line 52 of file ChannelBufferElement.hpp.
base::ChannelElement<T>::value_t* RTT::internal::ChannelBufferElement< T >::last_sample_p [private] |
Definition at line 53 of file ChannelBufferElement.hpp.