#include <ChannelElement.hpp>
Public Types | |
typedef ChannelElement< T >::param_t | param_t |
typedef ChannelElement< T >::reference_t | reference_t |
typedef boost::intrusive_ptr< MultipleInputsChannelElement< T > > | shared_ptr |
typedef ChannelElement< T >::value_t | value_t |
Public Types inherited from RTT::base::MultipleInputsChannelElementBase | |
typedef std::list< ChannelElementBase::shared_ptr > | Inputs |
typedef boost::intrusive_ptr< MultipleInputsChannelElementBase > | shared_ptr |
Public Types inherited from RTT::base::ChannelElementBase | |
typedef boost::intrusive_ptr< ChannelElementBase > | shared_ptr |
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 |
Protected Member Functions | |
virtual void | removeInput (ChannelElementBase::shared_ptr const &input) |
Protected Member Functions inherited from RTT::base::MultipleInputsChannelElementBase | |
virtual bool | addInput (ChannelElementBase::shared_ptr const &input) |
Protected Member Functions inherited from RTT::base::ChannelElementBase | |
virtual bool | addOutput (shared_ptr const &output, bool mandatory=true) |
void | deref () |
void | ref () |
virtual void | removeOutput (shared_ptr const &output) |
Private Member Functions | |
ChannelElement< T >::shared_ptr | currentInput () |
bool | do_read (reference_t sample, FlowStatus &result, bool copy_old_data, typename ChannelElement< T >::shared_ptr &input) |
template<typename Pred > | |
ChannelElement< T >::shared_ptr | find_if (Pred pred, bool copy_old_data) |
template<typename Pred > | |
void | select_reader_channel (Pred pred, bool copy_old_data) |
Private Attributes | |
ChannelElement< T > * | last |
Additional Inherited Members | |
Static Public Member Functions inherited from RTT::base::ChannelElementBase | |
template<typename T > | |
static ChannelElement< T > * | narrow (ChannelElementBase *e) |
Protected Attributes inherited from RTT::base::MultipleInputsChannelElementBase | |
Inputs | inputs |
RTT::os::SharedMutex | inputs_lock |
Protected Attributes inherited from RTT::base::ChannelElementBase | |
shared_ptr | input |
RTT::os::SharedMutex | input_lock |
shared_ptr | output |
RTT::os::SharedMutex | output_lock |
A typed version of MultipleInputsChannelElementBase.
Definition at line 131 of file ChannelElement.hpp.
typedef ChannelElement<T>::param_t RTT::base::MultipleInputsChannelElement< T >::param_t |
Definition at line 136 of file ChannelElement.hpp.
typedef ChannelElement<T>::reference_t RTT::base::MultipleInputsChannelElement< T >::reference_t |
Definition at line 137 of file ChannelElement.hpp.
typedef boost::intrusive_ptr< MultipleInputsChannelElement<T> > RTT::base::MultipleInputsChannelElement< T >::shared_ptr |
Definition at line 134 of file ChannelElement.hpp.
typedef ChannelElement<T>::value_t RTT::base::MultipleInputsChannelElement< T >::value_t |
Definition at line 135 of file ChannelElement.hpp.
|
inline |
Definition at line 139 of file ChannelElement.hpp.
|
inlineprivate |
Definition at line 172 of file ChannelElement.hpp.
|
inlinevirtual |
Overridden implementation of MultipleInputsChannelElementBase::data_sample() that gets a sample from the currently selected input.
Reimplemented from RTT::base::ChannelElement< T >.
Reimplemented in RTT::internal::SharedConnection< T >.
Definition at line 146 of file ChannelElement.hpp.
|
inlineprivate |
Definition at line 178 of file ChannelElement.hpp.
|
inlineprivate |
Definition at line 218 of file ChannelElement.hpp.
|
inlinevirtual |
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
Reimplemented from RTT::base::ChannelElement< T >.
Reimplemented in RTT::internal::SharedConnection< T >.
Definition at line 161 of file ChannelElement.hpp.
|
inlineprotectedvirtual |
Remove an input from the inputs list.
input | the element to be removed |
Reimplemented from RTT::base::MultipleInputsChannelElementBase.
Definition at line 240 of file ChannelElement.hpp.
|
inlineprivate |
Selects a connection as the current channel if pred(connection) is true. It will first check the current channel ( getCurrentChannel() ), if that does not satisfy pred, iterate over all connections. If none satisfy pred, the current channel remains unchanged.
pred |
Definition at line 204 of file ChannelElement.hpp.
|
private |
Definition at line 247 of file ChannelElement.hpp.