#include <ChannelDataElement.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::DataObjectInterface< T >::shared_ptr | data |
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 stores a single data sample
Definition at line 51 of file ChannelDataElement.hpp.
typedef base::ChannelElement<T>::param_t RTT::internal::ChannelDataElement< T >::param_t |
Definition at line 58 of file ChannelDataElement.hpp.
typedef base::ChannelElement<T>::reference_t RTT::internal::ChannelDataElement< T >::reference_t |
Definition at line 59 of file ChannelDataElement.hpp.
typedef base::ChannelElement<T>::value_t RTT::internal::ChannelDataElement< T >::value_t |
Definition at line 57 of file ChannelDataElement.hpp.
|
inline |
Definition at line 61 of file ChannelDataElement.hpp.
|
inlinevirtual |
Resets the stored sample. After clear() has been called, read() returns false
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 84 of file ChannelDataElement.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 90 of file ChannelDataElement.hpp.
|
inlinevirtual |
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 96 of file ChannelDataElement.hpp.
|
inlinevirtual |
Returns a pointer to the ConnPolicy that has been used to construct the underlying data object.
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 103 of file ChannelDataElement.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 108 of file ChannelDataElement.hpp.
|
inlinevirtual |
Reads the last sample given to write()
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 76 of file ChannelDataElement.hpp.
|
inlinevirtual |
Update the data sample stored in this element. It always returns true.
Reimplemented from RTT::base::ChannelElement< T >.
Definition at line 66 of file ChannelDataElement.hpp.
|
private |
Definition at line 53 of file ChannelDataElement.hpp.
|
private |
Definition at line 54 of file ChannelDataElement.hpp.