#include <SharedConnection.hpp>
Public Types | |
typedef boost::intrusive_ptr< SharedConnectionBase > | shared_ptr |
Public Types inherited from RTT::base::ChannelElementBase | |
typedef boost::intrusive_ptr< ChannelElementBase > | shared_ptr |
Public Member Functions | |
virtual SharedConnID * | getConnID () |
virtual const ConnPolicy * | getConnPolicy () const |
virtual const std::string & | getName () const |
template<typename T > | |
SharedConnection< T > * | narrow () |
SharedConnectionBase (const ConnPolicy &policy) | |
virtual | ~SharedConnectionBase () |
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 void | clear () |
virtual bool | connected () |
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 bool | disconnect (ChannelElementBase::shared_ptr const &channel, bool forward) |
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 | inputReady (ChannelElementBase::shared_ptr const &caller) |
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 bool | signalFrom (ChannelElementBase *) |
virtual | ~ChannelElementBase () |
Static Public Member Functions | |
template<typename T > | |
static SharedConnection< T > * | narrow (ChannelElementBase *e) |
Static Public Member Functions inherited from RTT::base::ChannelElementBase | |
template<typename T > | |
static ChannelElement< T > * | narrow (ChannelElementBase *e) |
Private Attributes | |
ConnPolicy | policy |
Additional Inherited Members | |
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 |
Base class for shared connection elements.
Definition at line 72 of file SharedConnection.hpp.
typedef boost::intrusive_ptr< SharedConnectionBase > RTT::internal::SharedConnectionBase::shared_ptr |
Definition at line 75 of file SharedConnection.hpp.
SharedConnectionBase::SharedConnectionBase | ( | const ConnPolicy & | policy | ) |
Definition at line 70 of file SharedConnection.cpp.
|
virtual |
Definition at line 92 of file SharedConnection.cpp.
|
virtual |
Definition at line 100 of file SharedConnection.cpp.
|
virtual |
Get a pointer to the connection policy used to build this channel element, if available. This method will be overwritten for data and buffer elements.
Reimplemented from RTT::base::ChannelElementBase.
Definition at line 110 of file SharedConnection.cpp.
|
virtual |
Definition at line 105 of file SharedConnection.cpp.
|
inlinestatic |
Return a pointer to the typed instance of a SharedConnectionBase
Definition at line 87 of file SharedConnection.hpp.
|
inline |
Return a pointer to the typed variant of this SharedConnectionBase
Definition at line 95 of file SharedConnection.hpp.
|
private |
Definition at line 78 of file SharedConnection.hpp.