Siena Fast Forwarding Documentation (v. 2.0.1)
Public Member Functions | List of all members
siena::TagsFIB Class Referenceabstract

A forwarding table for the tag-based, single-tree model. More...

#include <forwarding.h>

Inheritance diagram for siena::TagsFIB:
Inheritance graph
[legend]
Collaboration diagram for siena::TagsFIB:
Collaboration graph
[legend]

Public Member Functions

virtual void ifconfig (InterfaceId, const TagSetList &)=0
 Associates a predicate to an interface. More...
 
virtual void match (const TagSet &, MatchHandler &) const =0
 Processes a message, calling the output() function on the given MatchHandler object for each matching interface. More...
 
- Public Member Functions inherited from siena::FIB
virtual ~FIB ()
 Destroys the forwarding including all its internal data structures.
 
virtual void consolidate ()
 Prepares the forwarding table for matching. More...
 
virtual void clear ()=0
 Clears the forwarding table. More...
 
virtual void clear_recycle ()=0
 Clears the forwarding table. More...
 
virtual size_t allocated_bytesize () const =0
 Memory allocated by the forwarding table. More...
 
virtual size_t bytesize () const =0
 Memory used by the forwarding table. More...
 

Detailed Description

A forwarding table for the tag-based, single-tree model.

A TagsFIB associates predicates to interfaces as in a single-tree routing scheme. A TagsFIB uses the tag-based model, thus a predicate in a TagsFIB is a lists of tagsets. A tagset is a set of tags representing a set of requested properties of a message. An interface is simply an identifier, corresponding to the link-level address of a neighbor.

Member Function Documentation

virtual void siena::TagsFIB::ifconfig ( InterfaceId  ,
const TagSetList  
)
pure virtual

Associates a predicate to an interface.

This is the method that constructs the forwarding table. This method must be called once for each interface, after the forwarding table is constructed or after it has been cleared. Using this method twice on the same interface without clearing the forwarding table has undefined effects.

See Also
consolidate()
virtual void siena::TagsFIB::match ( const TagSet ,
MatchHandler  
) const
pure virtual

Processes a message, calling the output() function on the given MatchHandler object for each matching interface.

Matches a message against the predicates stored in the forwarding table. The result is processed through the MatchHandler passed as a parameter to this function.

Notice that the forwarding table must be consolidated by calling consolidate() before this function is called.

See Also
consolidate()