#include <ChannelElementBase.hpp>
Public Types | |
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 Member Functions | |
virtual void | clear () |
virtual bool | connected () |
virtual bool | disconnect (ChannelElementBase::shared_ptr const &channel, bool forward=true) |
virtual bool | inputReady (ChannelElementBase::shared_ptr const &caller) |
MultipleInputsChannelElementBase () | |
bool | signalFrom (ChannelElementBase *caller) |
Public Member Functions inherited from RTT::base::ChannelElementBase | |
ChannelElementBase () | |
virtual bool | channelReady (ChannelElementBase::shared_ptr const &caller, ConnPolicy const &policy, internal::ConnID *conn_id=0) |
virtual bool | connectFrom (ChannelElementBase::shared_ptr const &input) |
virtual bool | connectTo (ChannelElementBase::shared_ptr const &output, bool mandatory=true) |
virtual void | disconnect (bool forward) |
virtual const ConnPolicy * | getConnPolicy () const |
virtual std::string | getElementName () const |
shared_ptr | getInput () |
virtual shared_ptr | getInputEndPoint () |
virtual std::string | getLocalURI () const |
shared_ptr | getOutput () |
virtual shared_ptr | getOutputEndPoint () |
virtual PortInterface * | getPort () const |
virtual std::string | getRemoteURI () const |
virtual bool | isRemoteElement () const |
template<typename T > | |
ChannelElement< T > * | narrow () |
RTT_DEPRECATED void | setInput (const ChannelElementBase::shared_ptr &input) |
RTT_DEPRECATED void | setOutput (const ChannelElementBase::shared_ptr &output) |
virtual bool | signal () |
virtual | ~ChannelElementBase () |
Protected Member Functions | |
virtual bool | addInput (ChannelElementBase::shared_ptr const &input) |
virtual void | removeInput (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) |
Protected Attributes | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from RTT::base::ChannelElementBase | |
template<typename T > | |
static ChannelElement< T > * | narrow (ChannelElementBase *e) |
ChannelElementBase variant with multiple input channels.
Definition at line 331 of file ChannelElementBase.hpp.
typedef std::list<ChannelElementBase::shared_ptr> RTT::base::MultipleInputsChannelElementBase::Inputs |
Definition at line 335 of file ChannelElementBase.hpp.
typedef boost::intrusive_ptr<MultipleInputsChannelElementBase> RTT::base::MultipleInputsChannelElementBase::shared_ptr |
Definition at line 334 of file ChannelElementBase.hpp.
MultipleInputsChannelElementBase::MultipleInputsChannelElementBase | ( | ) |
Definition at line 231 of file ChannelInterface.cpp.
|
protectedvirtual |
Sets the new input channel element of this element or adds a channel to the inputs list.
input | the previous element in chain. |
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 234 of file ChannelInterface.cpp.
|
virtual |
Overridden implementation of ChannelElementBase::clear(). Forwards the clear() call to all inputs.
Reimplemented from RTT::base::ChannelElementBase.
Reimplemented in RTT::internal::SharedConnection< T >.
Definition at line 264 of file ChannelInterface.cpp.
|
virtual |
Returns true, if this channel element has at least one input, independent of whether is has an output connection or not.
Reimplemented from RTT::base::ChannelElementBase.
Reimplemented in RTT::base::MultipleInputsMultipleOutputsChannelElementBase.
Definition at line 249 of file ChannelInterface.cpp.
|
virtual |
Overridden implementation of ChannelElementBase::disconnect(forward, channel).
Reimplemented from RTT::base::ChannelElementBase.
Reimplemented in RTT::base::MultipleInputsMultipleOutputsChannelElementBase, RTT::internal::ConnOutputEndpoint< T >, RTT::internal::ConnOutputEndpoint< double >, RTT::internal::ConnOutputEndpoint< int >, and RTT::internal::ConnOutputEndpoint< bool >.
Definition at line 272 of file ChannelInterface.cpp.
|
virtual |
Overridden implementation of ChannelElementBase::inputReady(). Forwards the inputReady() call to all inputs and only returns true if all inputs returned true.
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 255 of file ChannelInterface.cpp.
|
protectedvirtual |
Remove an input from the inputs list.
input | the element to be removed |
Reimplemented from RTT::base::ChannelElementBase.
Reimplemented in RTT::base::MultipleInputsChannelElement< T >.
Definition at line 244 of file ChannelInterface.cpp.
|
virtual |
Overridden implementation of ChannelElementBase::signalFrom(caller) which remembers the caller who last signalled this channel element.
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 316 of file ChannelInterface.cpp.
|
protected |
Definition at line 338 of file ChannelElementBase.hpp.
|
mutableprotected |
Definition at line 339 of file ChannelElementBase.hpp.