Sirikata
|
Base class for elements that accept input. More...
#include <RouterElement.hpp>
Classes | |
class | InputPort |
An input port for this element. More... | |
Public Types | |
typedef UpstreamElementBase < PacketType > | InputElement |
Public Member Functions | |
virtual | ~DownstreamElementBase () |
virtual bool | connectInput (uint32 inport, InputElement *elmt, uint32 outport) |
Connect the specified input port of this element to another router element, on the specified output port. | |
virtual bool | push (uint32 port, PacketType *pkt)=0 |
Push a packet to this element on the given port. | |
Protected Member Functions | |
virtual InputPort & | input (uint32 k)=0 |
Base class for elements that accept input.
Downstream refers to the fact that it receives input from other elements.
typedef UpstreamElementBase<PacketType> Sirikata::DownstreamElementBase< PacketType >::InputElement |
virtual Sirikata::DownstreamElementBase< PacketType >::~DownstreamElementBase | ( | ) | [inline, virtual] |
virtual bool Sirikata::DownstreamElementBase< PacketType >::connectInput | ( | uint32 | inport, |
InputElement * | elmt, | ||
uint32 | outport | ||
) | [inline, virtual] |
Connect the specified input port of this element to another router element, on the specified output port.
inport | the input port to connect to the other element |
elmt | the element to connect the port to |
outport | the output port on the providing element to connect to |
Referenced by Sirikata::UpstreamElementBase< ObjectMessage >::connect().
virtual InputPort& Sirikata::DownstreamElementBase< PacketType >::input | ( | uint32 | k | ) | [protected, pure virtual] |
Implemented in Sirikata::DownstreamElementFixed< PacketType, NumInputs >, Sirikata::DownstreamElement< PacketType >, Sirikata::DownstreamElementFixed< ObjectMessage, 1 >, and Sirikata::DownstreamElementFixed< PacketType, 1 >.
Referenced by Sirikata::DownstreamElementBase< ObjectMessage >::connectInput().
virtual bool Sirikata::DownstreamElementBase< PacketType >::push | ( | uint32 | port, |
PacketType * | pkt | ||
) | [pure virtual] |
Push a packet to this element on the given port.
port | the port to push the packet to |
pkt | the packet to push |
Implemented in Sirikata::QueueRouterElement< PacketType >, and Sirikata::QueueRouterElement< ObjectMessage >.
Referenced by Sirikata::UpstreamElementBase< PacketType >::OutputPort::push().