39 #ifndef ORO_CONN_OUTPUT_ENDPOINT_HPP 40 #define ORO_CONN_OUTPUT_ENDPOINT_HPP 64 typedef boost::intrusive_ptr<ConnOutputEndpoint<T> >
shared_ptr;
96 if ( channel->inputReady(
this) ) {
132 if (port && channel && forward)
134 port->
getManager()->removeConnection(channel.get(),
false);
154 #ifdef ORO_SIGNALLING_PORTS 155 if (port && port->new_data_on_port_event)
156 (*port->new_data_on_port_event)(port);
189 return std::string(
"ConnOutputEndpoint");
boost::intrusive_ptr< ChannelElement< T > > shared_ptr
This is a channel element that represents the output endpoint of a connection, i.e.
virtual base::ChannelElement< T >::shared_ptr getSharedBuffer()
std::string getElementName() const
Returns the class name of this element.
virtual bool disconnect(const base::ChannelElementBase::shared_ptr &channel, bool forward=true)
Overridden implementation of ChannelElementBase::disconnect(forward, channel).
base::MultipleInputsChannelElement< T > Base
base::ChannelElement< T >::shared_ptr getReadEndpoint()
A connection policy object describes how a given connection should behave.
virtual bool signal()
Signals that there is new data available on this channel By default, the channel element forwards the...
virtual base::PortInterface * getPort() const
Gets the port this channel element is connected to.
virtual internal::ConnectionManager * getManager()
Returns the connection manager of this port (if any).
virtual base::ChannelElementBase::shared_ptr getOutputEndPoint()
Returns the last output channel element of this connection.
ConnOutputEndpoint(InputPort< T > *port)
Creates the connection end that represents the output and attach it to the input. ...
boost::intrusive_ptr< ChannelElementBase > shared_ptr
bool channelReady(base::ChannelElementBase::shared_ptr const &channel, ConnPolicy const &policy, ConnID *conn_id)
Call this to indicate that a connection leading to this port is ready to use.
A simplistic id that is only same with its own clones (and clones of clones).
This class is used in places where a permanent representation of a reference to a connection is neede...
boost::intrusive_ptr< ConnOutputEndpoint< T > > shared_ptr
virtual WriteStatus write(param_t sample)
Writes a new sample on this connection.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
The base class of every data flow port.
WriteStatus
Returns the status of a data flow write operation.
virtual WriteStatus write(typename Base::param_t sample)
Writes a new sample on this connection This should only be called if this endpoint has a buffer outpu...