#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 Types inherited from RTT::base::ChannelElement< T > | |
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 Types inherited from RTT::base::ChannelElementBase | |
typedef boost::intrusive_ptr< ChannelElementBase > | shared_ptr |
Private Attributes | |
base::BufferInterface< T >::shared_ptr | buffer |
base::ChannelElement< T >::value_t * | last_sample_p |
const ConnPolicy | policy |
Additional Inherited Members | |
Static Public Member Functions inherited from RTT::base::ChannelElementBase | |
template<typename T > | |
static ChannelElement< T > * | narrow (ChannelElementBase *e) |
Protected Member Functions inherited from RTT::base::ChannelElementBase | |
virtual bool | addInput (shared_ptr const &input) |
virtual bool | addOutput (shared_ptr const &output, bool mandatory=true) |
void | deref () |
void | ref () |
virtual void | removeInput (shared_ptr const &input) |
virtual void | removeOutput (shared_ptr const &output) |
Protected Attributes inherited from RTT::base::ChannelElementBase | |
shared_ptr | input |
RTT::os::SharedMutex | input_lock |
shared_ptr | output |
RTT::os::SharedMutex | output_lock |
A connection element that can store a fixed number of data samples.
Definition at line 60 of file ChannelBufferElement.hpp.
typedef base::ChannelElement<T>::param_t RTT::internal::ChannelBufferElement< T >::param_t |
Definition at line 68 of file ChannelBufferElement.hpp.
typedef base::ChannelElement<T>::reference_t RTT::internal::ChannelBufferElement< T >::reference_t |
Definition at line 69 of file ChannelBufferElement.hpp.
typedef base::ChannelElement<T>::value_t RTT::internal::ChannelBufferElement< T >::value_t |
Definition at line 67 of file ChannelBufferElement.hpp.
|
inline |
Definition at line 71 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Definition at line 74 of file ChannelBufferElement.hpp.
|
inlinevirtual |
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 140 of file ChannelBufferElement.hpp.
|
inlinevirtual |
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 149 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 155 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Implements RTT::internal::ChannelBufferElementBase.
Definition at line 85 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Implements RTT::internal::ChannelBufferElementBase.
Definition at line 80 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Returns a pointer to the ConnPolicy that has been used to construct the underlying buffer.
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 162 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Returns the class name of this element. This is primary useful for special case handling in the connection tracking.
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 167 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Implements RTT::internal::ChannelBufferElementBase.
Definition at line 90 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Pops and returns the first element of the FIFO
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 109 of file ChannelBufferElement.hpp.
|
inlinevirtual |
Appends a sample at the end of the FIFO
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 99 of file ChannelBufferElement.hpp.
|
private |
Definition at line 62 of file ChannelBufferElement.hpp.
|
private |
Definition at line 63 of file ChannelBufferElement.hpp.
|
private |
Definition at line 64 of file ChannelBufferElement.hpp.