LogTable< A > Class Template Reference

A Base for Route Tables that log updates. More...

#include <rt_tab_log.hh>

Inheritance diagram for LogTable< A >:
RouteTable< A > DebugMsgLogTable< A > OstreamLogTable< A > XLogTraceTable< A >

List of all members.

Public Member Functions

 LogTable (const string &tablename, RouteTable< A > *parent)
int add_route (const IPRouteEntry< A > &route, RouteTable< A > *caller)
int delete_route (const IPRouteEntry< A > *, RouteTable< A > *caller)
const IPRouteEntry< A > * lookup_route (const IPNet< A > &net) const
const IPRouteEntry< A > * lookup_route (const A &addr) const
RouteRange< A > * lookup_route_range (const A &addr) const
TableType type () const
RouteTable< A > * parent ()
void replumb (RouteTable< A > *old_parent, RouteTable< A > *new_parent)
string str () const
uint32_t update_number () const

Private Attributes

RouteTable< A > * _parent
uint32_t _update_number

Detailed Description

template<typename A>
class LogTable< A >

A Base for Route Tables that log updates.

Users of this class specify expected updates with expect_add and expect_delete. As the updates come through they are compared against those expect and generate an assertion failure if those arriving do not match those expected. An assertion failure will also occur if there are unmatched updates upon instance destruction.

This class is strictly for debugging and testing purposes.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations