Siena Fast Forwarding Documentation (v. 1.13.0)
Public Member Functions | List of all members
siena::BDDBTable Class Reference

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

#include <bddbtable.h>

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

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from siena::BDDBTableBase
FTAllocator memory
 Protected allocator of the forwarding table. More...
 

Detailed Description

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

See Also
BDDBTableBase

Member Function Documentation

virtual void siena::BDDBTable::clear ( )
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::BDDBTable::clear_recycle ( )
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::BDDBTable::ifconfig ( if_t  ,
const predicate  
)
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::BDDBTable::match ( const message ,
MatchHandler  
) const
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.