Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
RTT::internal::SharedConnectionBase Class Reference

#include <SharedConnection.hpp>

Inheritance diagram for RTT::internal::SharedConnectionBase:
Inheritance graph
[legend]

Public Types

typedef boost::intrusive_ptr< SharedConnectionBaseshared_ptr
 
- Public Types inherited from RTT::base::ChannelElementBase
typedef boost::intrusive_ptr< ChannelElementBaseshared_ptr
 

Public Member Functions

virtual SharedConnIDgetConnID ()
 
virtual const ConnPolicygetConnPolicy () 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 PortInterfacegetPort () 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
 

Detailed Description

Base class for shared connection elements.

Definition at line 72 of file SharedConnection.hpp.

Member Typedef Documentation

Definition at line 75 of file SharedConnection.hpp.

Constructor & Destructor Documentation

SharedConnectionBase::SharedConnectionBase ( const ConnPolicy policy)

Definition at line 70 of file SharedConnection.cpp.

SharedConnectionBase::~SharedConnectionBase ( )
virtual

Definition at line 92 of file SharedConnection.cpp.

Member Function Documentation

SharedConnID * SharedConnectionBase::getConnID ( )
virtual

Definition at line 100 of file SharedConnection.cpp.

const ConnPolicy * SharedConnectionBase::getConnPolicy ( ) const
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.

Returns
null if there is no ConnPolicy associated with this element, a pointer to an instance of ConnPolicy otherwise.

Reimplemented from RTT::base::ChannelElementBase.

Definition at line 110 of file SharedConnection.cpp.

const std::string & SharedConnectionBase::getName ( ) const
virtual

Definition at line 105 of file SharedConnection.cpp.

template<typename T >
static SharedConnection<T>* RTT::internal::SharedConnectionBase::narrow ( ChannelElementBase e)
inlinestatic

Return a pointer to the typed instance of a SharedConnectionBase

Definition at line 87 of file SharedConnection.hpp.

template<typename T >
SharedConnection<T>* RTT::internal::SharedConnectionBase::narrow ( )
inline

Return a pointer to the typed variant of this SharedConnectionBase

Definition at line 95 of file SharedConnection.hpp.

Member Data Documentation

ConnPolicy RTT::internal::SharedConnectionBase::policy
private

Definition at line 78 of file SharedConnection.hpp.


The documentation for this class was generated from the following files:


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:45