Sirikata
|
Base class for elements that generate output. More...
#include <RouterElement.hpp>
Classes | |
class | OutputPort |
An output port for this element. More... | |
Public Types | |
typedef DownstreamElementBase < PacketType > | OutputElement |
Public Member Functions | |
virtual | ~UpstreamElementBase () |
virtual bool | connect (uint32 outport, OutputElement *elmt, uint32 inport) |
Connect the specified output port of this element to another router element, on the specified input port. | |
virtual PacketType * | pull (uint32 port)=0 |
Pull a packet from the element on the specified port. | |
Protected Member Functions | |
virtual OutputPort & | output (uint32 k)=0 |
Base class for elements that generate output.
Upstream refers to the fact that packets flow from it to other elements.
typedef DownstreamElementBase<PacketType> Sirikata::UpstreamElementBase< PacketType >::OutputElement |
virtual Sirikata::UpstreamElementBase< PacketType >::~UpstreamElementBase | ( | ) | [inline, virtual] |
virtual bool Sirikata::UpstreamElementBase< PacketType >::connect | ( | uint32 | outport, |
OutputElement * | elmt, | ||
uint32 | inport | ||
) | [inline, virtual] |
Connect the specified output port of this element to another router element, on the specified input port.
outport | the output port to connect to the other element |
elmt | the element to connect the port to |
inport | the input port on the receiving element to connect to |
virtual OutputPort& Sirikata::UpstreamElementBase< PacketType >::output | ( | uint32 | k | ) | [protected, pure virtual] |
virtual PacketType* Sirikata::UpstreamElementBase< PacketType >::pull | ( | uint32 | port | ) | [pure virtual] |
Pull a packet from the element on the specified port.
port | the port to request the packet from |
Implemented in Sirikata::QueueRouterElement< PacketType >, and Sirikata::QueueRouterElement< ObjectMessage >.
Referenced by Sirikata::DownstreamElementBase< PacketType >::InputPort::pull().