RTT::base::OutputPortInterface Class Reference

#include <OutputPortInterface.hpp>

Inheritance diagram for RTT::base::OutputPortInterface:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool addConnection (internal::ConnID *port_id, ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)
virtual bool addConnection (internal::ConnID *port_id, ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)
virtual bool connected () const
virtual bool connected () const
virtual bool connectTo (PortInterface *other)
virtual bool connectTo (PortInterface *other, ConnPolicy const &policy)
virtual bool connectTo (PortInterface *other)
virtual bool connectTo (PortInterface *other, ConnPolicy const &policy)
bool createBufferConnection (InputPortInterface &sink, int size, int lock_policy=ConnPolicy::LOCK_FREE)
bool createBufferConnection (InputPortInterface &sink, int size, int lock_policy=ConnPolicy::LOCK_FREE)
virtual bool createConnection (InputPortInterface &sink, ConnPolicy const &policy)=0
bool createConnection (InputPortInterface &sink)
virtual bool createConnection (InputPortInterface &sink, ConnPolicy const &policy)=0
bool createConnection (InputPortInterface &sink)
bool createDataConnection (InputPortInterface &sink, int lock_policy=ConnPolicy::LOCK_FREE)
bool createDataConnection (InputPortInterface &sink, int lock_policy=ConnPolicy::LOCK_FREE)
virtual bool disconnect (PortInterface *port)
virtual void disconnect ()
virtual bool disconnect (PortInterface *port)
virtual void disconnect ()
virtual DataSourceBase::shared_ptr getDataSource () const =0
virtual DataSourceBase::shared_ptr getDataSource () const =0
virtual const
internal::ConnectionManager
getManager () const
virtual const
internal::ConnectionManager
getManager () const
virtual void keepLastWrittenValue (bool new_flag)=0
virtual void keepLastWrittenValue (bool new_flag)=0
virtual bool keepsLastWrittenValue () const =0
virtual bool keepsLastWrittenValue () const =0
 OutputPortInterface (std::string const &name)
 OutputPortInterface (std::string const &name)
virtual bool removeConnection (internal::ConnID *cid)
virtual bool removeConnection (internal::ConnID *cid)
virtual void write (DataSourceBase::shared_ptr source)
virtual void write (DataSourceBase::shared_ptr source)
virtual ~OutputPortInterface ()
virtual ~OutputPortInterface ()

Protected Member Functions

virtual bool connectionAdded (ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)=0
virtual bool connectionAdded (ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)=0
 OutputPortInterface (OutputPortInterface const &orig)
 OutputPortInterface (OutputPortInterface const &orig)

Protected Attributes

internal::ConnectionManager cmanager

Detailed Description

The base class of each OutputPort. It contains the connection management code, which is independent of the actual data being transmitted.

Definition at line 53 of file install/include/rtt/base/OutputPortInterface.hpp.


Constructor & Destructor Documentation

RTT::base::OutputPortInterface::OutputPortInterface ( OutputPortInterface const &  orig  )  [protected]
RTT::base::OutputPortInterface::OutputPortInterface ( std::string const &  name  ) 
virtual RTT::base::OutputPortInterface::~OutputPortInterface (  )  [virtual]
RTT::base::OutputPortInterface::OutputPortInterface ( OutputPortInterface const &  orig  )  [protected]
RTT::base::OutputPortInterface::OutputPortInterface ( std::string const &  name  ) 
virtual RTT::base::OutputPortInterface::~OutputPortInterface (  )  [virtual]

Member Function Documentation

virtual bool RTT::base::OutputPortInterface::addConnection ( internal::ConnID port_id,
ChannelElementBase::shared_ptr  channel_input,
ConnPolicy const &  policy 
) [virtual]

Adds a new connection to this output port and initializes the connection if required by policy. Use with care. Allows you to add any arbitrary connection to this output port. It is your responsibility to do any further bookkeeping, such as informing the input that a new output has been added.

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual bool RTT::base::OutputPortInterface::addConnection ( internal::ConnID port_id,
ChannelElementBase::shared_ptr  channel_input,
ConnPolicy const &  policy 
) [virtual]

Adds a new connection to this output port and initializes the connection if required by policy. Use with care. Allows you to add any arbitrary connection to this output port. It is your responsibility to do any further bookkeeping, such as informing the input that a new output has been added.

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual bool RTT::base::OutputPortInterface::connected (  )  const [virtual]

Returns true if there is at least one channel registered in this port's list of outputs

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual bool RTT::base::OutputPortInterface::connected (  )  const [virtual]

Returns true if there is at least one channel registered in this port's list of outputs

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual bool RTT::base::OutputPortInterface::connectionAdded ( ChannelElementBase::shared_ptr  channel_input,
ConnPolicy const &  policy 
) [protected, pure virtual]
virtual bool RTT::base::OutputPortInterface::connectionAdded ( ChannelElementBase::shared_ptr  channel_input,
ConnPolicy const &  policy 
) [protected, pure virtual]
virtual bool RTT::base::OutputPortInterface::connectTo ( PortInterface other  )  [virtual]

Connects this port with other, using the default policy of the input. Unlike OutputPortInterface::createConnection, other can be the write port and this the read port.

Returns:
true on success, false on failure

Implements RTT::base::PortInterface.

virtual bool RTT::base::OutputPortInterface::connectTo ( PortInterface other,
ConnPolicy const &  policy 
) [virtual]

Connects this port with other, using the given policy. Unlike OutputPortInterface::createConnection, other can be the write port and this the read port.

Returns:
true on success, false on failure

Implements RTT::base::PortInterface.

virtual bool RTT::base::OutputPortInterface::connectTo ( PortInterface other  )  [virtual]

Connects this port with other, using the default policy of the input. Unlike OutputPortInterface::createConnection, other can be the write port and this the read port.

Returns:
true on success, false on failure

Implements RTT::base::PortInterface.

virtual bool RTT::base::OutputPortInterface::connectTo ( PortInterface other,
ConnPolicy const &  policy 
) [virtual]

Connects this port with other, using the given policy. Unlike OutputPortInterface::createConnection, other can be the write port and this the read port.

Returns:
true on success, false on failure

Implements RTT::base::PortInterface.

bool RTT::base::OutputPortInterface::createBufferConnection ( InputPortInterface sink,
int  size,
int  lock_policy = ConnPolicy::LOCK_FREE 
)

Connects this write port to the given read port, using a buffered policy, with the buffer of the given size and the given locking mechanism

bool RTT::base::OutputPortInterface::createBufferConnection ( InputPortInterface sink,
int  size,
int  lock_policy = ConnPolicy::LOCK_FREE 
)

Connects this write port to the given read port, using a buffered policy, with the buffer of the given size and the given locking mechanism

virtual bool RTT::base::OutputPortInterface::createConnection ( InputPortInterface sink,
ConnPolicy const &  policy 
) [pure virtual]
bool RTT::base::OutputPortInterface::createConnection ( InputPortInterface sink  ) 

Connects this write port to the given read port, using as policy the default policy of the sink port

virtual bool RTT::base::OutputPortInterface::createConnection ( InputPortInterface sink,
ConnPolicy const &  policy 
) [pure virtual]
bool RTT::base::OutputPortInterface::createConnection ( InputPortInterface sink  ) 

Connects this write port to the given read port, using as policy the default policy of the sink port

bool RTT::base::OutputPortInterface::createDataConnection ( InputPortInterface sink,
int  lock_policy = ConnPolicy::LOCK_FREE 
)

Connects this write port to the given read port, using a single-data policy with the given locking mechanism

bool RTT::base::OutputPortInterface::createDataConnection ( InputPortInterface sink,
int  lock_policy = ConnPolicy::LOCK_FREE 
)

Connects this write port to the given read port, using a single-data policy with the given locking mechanism

virtual bool RTT::base::OutputPortInterface::disconnect ( PortInterface port  )  [virtual]

Removes the channel that connects this port to port

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual void RTT::base::OutputPortInterface::disconnect (  )  [virtual]

Removes any connection that either go to or come from this port

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual bool RTT::base::OutputPortInterface::disconnect ( PortInterface port  )  [virtual]

Removes the channel that connects this port to port

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual void RTT::base::OutputPortInterface::disconnect (  )  [virtual]

Removes any connection that either go to or come from this port

Implements RTT::base::PortInterface.

Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >, and RTT::corba::RemotePort< base::OutputPortInterface >.

virtual DataSourceBase::shared_ptr RTT::base::OutputPortInterface::getDataSource (  )  const [pure virtual]

Returns a Data source that stores the last written value, or a null pointer if this port does not keep its last written value.

Implemented in RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< double >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::OutputPort< bool >.

virtual DataSourceBase::shared_ptr RTT::base::OutputPortInterface::getDataSource (  )  const [pure virtual]

Returns a Data source that stores the last written value, or a null pointer if this port does not keep its last written value.

Implemented in RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< double >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::OutputPort< bool >.

virtual const internal::ConnectionManager* RTT::base::OutputPortInterface::getManager (  )  const [inline, virtual]

Returns the connection manager of this port (if any). This method provides access to the internals of this port in order to allow connection introspection.

Returns:
null if no such manager is available, or the manager otherwise.
See also:
ConnectionManager::getChannels() for a list of all connections of this port.

Implements RTT::base::PortInterface.

Definition at line 142 of file rtt/base/OutputPortInterface.hpp.

virtual const internal::ConnectionManager* RTT::base::OutputPortInterface::getManager (  )  const [inline, virtual]

Returns the connection manager of this port (if any). This method provides access to the internals of this port in order to allow connection introspection.

Returns:
null if no such manager is available, or the manager otherwise.
See also:
ConnectionManager::getChannels() for a list of all connections of this port.

Implements RTT::base::PortInterface.

Definition at line 142 of file install/include/rtt/base/OutputPortInterface.hpp.

virtual void RTT::base::OutputPortInterface::keepLastWrittenValue ( bool  new_flag  )  [pure virtual]

Change the setting for keeping the last written value. Setting this to false will clear up any unneeded storage. If set, this port can initialize new connections with a data sample and allows real-time data transport of dynamically sized objects over its newly created connections.

See also:
OutputPort::OutputPort.

Implemented in RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< double >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::OutputPort< bool >.

virtual void RTT::base::OutputPortInterface::keepLastWrittenValue ( bool  new_flag  )  [pure virtual]

Change the setting for keeping the last written value. Setting this to false will clear up any unneeded storage. If set, this port can initialize new connections with a data sample and allows real-time data transport of dynamically sized objects over its newly created connections.

See also:
OutputPort::OutputPort.

Implemented in RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< T >, RTT::corba::RemoteOutputPort, RTT::OutputPort< double >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::OutputPort< bool >.

virtual bool RTT::base::OutputPortInterface::keepsLastWrittenValue (  )  const [pure virtual]
virtual bool RTT::base::OutputPortInterface::keepsLastWrittenValue (  )  const [pure virtual]
virtual bool RTT::base::OutputPortInterface::removeConnection ( internal::ConnID cid  )  [virtual]

Removes the connection associated with this channel, and the channel as well

Implements RTT::base::PortInterface.

virtual bool RTT::base::OutputPortInterface::removeConnection ( internal::ConnID cid  )  [virtual]

Removes the connection associated with this channel, and the channel as well

Implements RTT::base::PortInterface.

virtual void RTT::base::OutputPortInterface::write ( DataSourceBase::shared_ptr  source  )  [virtual]
virtual void RTT::base::OutputPortInterface::write ( DataSourceBase::shared_ptr  source  )  [virtual]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:49:52 2013