xorp

NextTableMap< A > Class Template Reference

NextTableMap behaves more or less like a map between a BGPRouteTable* and a const PeerHandler*, but it gives deterministic ordering semantics so our test suites aren't dependent on the memory allocator. More...

#include <route_table_fanout.hh>

List of all members.

Public Types

typedef NextTableMapIterator< A > iterator

Public Member Functions

void insert (BGPRouteTable< A > *next_table, const PeerHandler *ph, uint32_t genid)
void erase (iterator &iter)
iterator find (BGPRouteTable< A > *next_table)
iterator begin ()
iterator end ()

Private Attributes

map< BGPRouteTable< A >
*, PeerTableInfo< A > * > 
_next_tables
multimap< uint32_t,
PeerTableInfo< A > * > 
_next_table_order

Detailed Description

template<class A>
class NextTableMap< A >

NextTableMap behaves more or less like a map between a BGPRouteTable* and a const PeerHandler*, but it gives deterministic ordering semantics so our test suites aren't dependent on the memory allocator.

This class basically hides the complexity of maintaining two parallel data structures from the main FanoutTable code


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