Click
Loading...
Searching...
No Matches
Public Member Functions | List of all members
StackVisitor Class Reference

This class defines a RouterVisitor that will be used to build the function stack Each element starts a visitor downsteam so that when the visitor reaches the next CTXElement, the object that started the visitor will be registered as the next element in the function stack of the visited element. More...

#include <ctxelement.hh>

Inheritance diagram for StackVisitor:
RouterVisitor

Public Member Functions

 StackVisitor (CTXElement *startElement)
 Construct a StackVisitor.
 
 ~StackVisitor ()
 Destruct a StackVisitor.
 
bool visit (Element *e, bool, int port, Element *, int, int)
 Visit the path of elements until we find a stack element. We will indicate to this element that we are the next element in the function stack so that it will propagate the calls to us. See the Click documentation for the description of the parameters.
 
- Public Member Functions inherited from RouterVisitor
 RouterVisitor ()
 Construct an RouterVisitor.
 
virtual ~RouterVisitor ()
 Destroy an RouterVisitor.
 
virtual int distance (Element *e, Element *from_e)
 return the distance between two neighbour elements
 

Detailed Description

This class defines a RouterVisitor that will be used to build the function stack Each element starts a visitor downsteam so that when the visitor reaches the next CTXElement, the object that started the visitor will be registered as the next element in the function stack of the visited element.

Constructor & Destructor Documentation

◆ StackVisitor()

StackVisitor::StackVisitor ( CTXElement *  startElement)
inline

Construct a StackVisitor.

◆ ~StackVisitor()

StackVisitor::~StackVisitor ( )
inline

Destruct a StackVisitor.

Member Function Documentation

◆ visit()

bool StackVisitor::visit ( Element *  e,
bool  ,
int  port,
Element *  ,
int  ,
int   
)
virtual

Visit the path of elements until we find a stack element. We will indicate to this element that we are the next element in the function stack so that it will propagate the calls to us. See the Click documentation for the description of the parameters.

Reimplemented from RouterVisitor.


The documentation for this class was generated from the following files: