#include <OutputPortInterface.hpp>
Protected Member Functions | |
virtual bool | connectionAdded (ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)=0 |
OutputPortInterface (OutputPortInterface const &orig) | |
Protected Member Functions inherited from RTT::base::PortInterface | |
PortInterface (const std::string &name) | |
Additional Inherited Members | |
Protected Attributes inherited from RTT::base::PortInterface | |
internal::ConnectionManager | cmanager |
os::MutexRecursive | connection_lock |
DataFlowInterface * | iface |
The base class of each OutputPort. It contains the connection management code, which is independent of the actual data being transmitted.
Definition at line 52 of file OutputPortInterface.hpp.
|
protected |
OutputPortInterface::OutputPortInterface | ( | std::string const & | name | ) |
Definition at line 52 of file OutputPortInterface.cpp.
|
virtual |
Definition at line 55 of file OutputPortInterface.cpp.
|
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 >.
Definition at line 76 of file OutputPortInterface.cpp.
|
virtual |
Returns true if there is at least one channel registered in this port's list of outputs
Returns true if this port is connected
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >.
Definition at line 61 of file OutputPortInterface.cpp.
|
protectedpure virtual |
Upcall to OutputPort.
Implemented in RTT::OutputPort< T >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::corba::RemotePort< base::OutputPortInterface >.
|
virtual |
Connects this port with other, using the given policy. Unlike OutputPortInterface::createConnection, other can be the write port and this
the read port.
Implements RTT::base::PortInterface.
Definition at line 101 of file OutputPortInterface.cpp.
|
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.
Implements RTT::base::PortInterface.
Definition at line 109 of file OutputPortInterface.cpp.
bool 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
Definition at line 90 of file OutputPortInterface.cpp.
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
|
pure virtual |
Connects this write port to the given read port, using the given connection policy.
Implemented in RTT::OutputPort< T >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::corba::RemoteOutputPort.
|
virtual |
Connects the port to an existing shared connection instance.
Implements RTT::base::PortInterface.
bool 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
Definition at line 87 of file OutputPortInterface.cpp.
|
virtual |
Removes any connection that either go to or come from this port
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemotePort< base::OutputPortInterface >.
Definition at line 71 of file OutputPortInterface.cpp.
|
virtual |
Removes the channel that connects this port to port
Implements RTT::base::PortInterface.
Reimplemented in RTT::corba::RemoteOutputPort.
Definition at line 66 of file OutputPortInterface.cpp.
|
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::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::corba::RemoteOutputPort.
|
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.
Implemented in RTT::OutputPort< T >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::corba::RemoteOutputPort.
|
pure virtual |
Returns true if this port records the last written value.
Implemented in RTT::OutputPort< T >, RTT::OutputPort< double >, RTT::OutputPort< int >, RTT::OutputPort< bool >, and RTT::corba::RemoteOutputPort.
void OutputPortInterface::traceWrite | ( | ) |
Sends a write tracepoint
Definition at line 117 of file OutputPortInterface.cpp.
|
virtual |
Write this port using the value stored in source.
Reimplemented in RTT::OutputPort< T >, RTT::OutputPort< double >, RTT::OutputPort< int >, and RTT::OutputPort< bool >.
Definition at line 84 of file OutputPortInterface.cpp.