xorp

SetManager Class Reference

Class that owns all sets. More...

#include <set_manager.hh>

Inheritance diagram for SetManager:
NONCOPYABLE

List of all members.

Classes

class  SetNotFound
 Exception thrown when a set with an unknown name is requested. More...

Public Types

typedef map< string, Element * > SetMap

Public Member Functions

const ElementgetSet (const string &setid) const
 Return the corresponding ElemSet for the requested set name.
void replace_sets (SetMap *sets)
 Resplace all sets with the given ones.
void clear ()
 Zap all sets.

Private Attributes

SetMap * _sets

Detailed Description

Class that owns all sets.

It resolves set names to ElemSet's.

Ideally, if the contents of a set changes, a filter should not be reconfigured, but only the sets. This is currently not the case, but there is enough structure to allow it.


Member Function Documentation

const Element & SetManager::getSet ( const string &  setid) const

Return the corresponding ElemSet for the requested set name.

Returns:
the ElemSet requested.
Parameters:
setidname of set wanted.
void SetManager::replace_sets ( SetMap *  sets)

Resplace all sets with the given ones.

Caller must not delete them.

Parameters:
setsthe new sets that should be used.

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