Siena Fast Forwarding Documentation (v. 1.9.4)

siena::ZDDBTable Class Reference

implementation of the forwarding table based on Bloom filters. This implementation consolidates each predicate into a ZDD, which is then used for matching. More...

#include <bddbtable.h>

Inheritance diagram for siena::ZDDBTable:
siena::BDDBTableBase siena::ForwardingTable

List of all members.

Public Member Functions

virtual void ifconfig (if_t, const predicate &) throw (bad_constraint)
 Associates a predicate to an interface.
virtual void match (const message &, MatchHandler &) const throw ()
 Processes a message, calling the output() function on the given MatchHandler object for each matching interface.
virtual void clear () throw ()
 Clears the forwarding table.
virtual void clear_recycle () throw ()
 Clears the forwarding table.

Detailed Description

implementation of the forwarding table based on Bloom filters. This implementation consolidates each predicate into a ZDD, which is then used for matching.

See also:
BDDBTableBase

Member Function Documentation

virtual void siena::ZDDBTable::clear (  )  throw () [virtual]

Clears the forwarding table.

This method removes all the associations from the forwarding table and releases allocated memory. After a call to this method, the forwarding table is ready to be configured with ifconfig().

See also:
ifconfig()
consolidate()

Implements siena::BDDBTableBase.

virtual void siena::ZDDBTable::clear_recycle (  )  throw () [virtual]

Clears the forwarding table.

This method removes all the associations from the forwarding table recycling the allocated memory. After a call to this method, the forwarding table is ready to be configured with ifconfig().

See also:
ifconfig()
consolidate()

Implements siena::BDDBTableBase.

virtual void siena::ZDDBTable::ifconfig ( if_t  ,
const predicate  
) throw (bad_constraint) [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()

Implements siena::BDDBTableBase.

virtual void siena::ZDDBTable::match ( const message ,
MatchHandler  
) const throw () [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 siena::ForwardingTable::consolidate() before this function is called.

See also:
consolidate()

Implements siena::BDDBTableBase.


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