class ExpectTable

A Route Table for comparing route updates received against expected. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

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.

 ExpectTable (const string& tablename, RouteTable<A>* parent)

ExpectTable

 ~ExpectTable ()

~ExpectTable

const list<ExpectedRouteChange<A> >&  expected_route_changes ()

expected_route_changes

[const]

void  expect_add (const IPRouteEntry<A>& route)

expect_add

void  expect_delete (const IPRouteEntry<A>& route)

expect_delete

int  add_route (const IPRouteEntry<A>& route, RouteTable<A>* caller)

add_route

Reimplemented from RouteTable.

int  delete_route (const IPRouteEntry<A>* route, RouteTable<A>* caller)

delete_route

Reimplemented from RouteTable.

const IPRouteEntry<A>*  lookup_route (const IPNet<A>& net)

lookup_route

[const]

Reimplemented from RouteTable.

const IPRouteEntry<A>*  lookup_route (const A& addr)

lookup_route

[const]

Reimplemented from RouteTable.

RouteRange<A>*  lookup_route_range (const A& addr)

lookup_route_range

[const]

Reimplemented from RouteTable.

TableType  type ()

type

[const]

Reimplemented from RouteTable.

RouteTable<A>*  parent ()

parent

Reimplemented from RouteTable.

void  replumb (RouteTable<A>* old_parent, RouteTable<A>* new_parent)

replumb

Reimplemented from RouteTable.

string  str ()

str

[const]

Reimplemented from RouteTable.


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:43:48 2006, using kdoc $.