xorp

AttributeManager< A > Class Template Reference

AttributeManager manages the storage of PathAttributeLists, so that we don't store the same attribute list more than once. More...

#include <attribute_manager.hh>

List of all members.

Public Member Functions

PAListRef< A > add_attribute_list (PAListRef< A > &attribute_list)
void delete_attribute_list (PAListRef< A > &attribute_list)
int number_of_managed_atts () const

Private Attributes

set< PAListRef< A >
, Att_Ptr_Cmp< A > > 
_attribute_lists
int _total_references

Detailed Description

template<class A>
class AttributeManager< A >

AttributeManager manages the storage of PathAttributeLists, so that we don't store the same attribute list more than once.

The interface is simple: to store something, you give it a pointer, and it gives you back a pointer to where it stored it. To unstore something, you just tell it to delete it, and the undeletion is handled for you if no-one else is still referencing a copy.


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