author | alpar |
Wed, 10 Nov 2004 11:42:00 +0000 | |
changeset 974 | 785062a83f8e |
child 980 | 0f1044b7a3af |
permissions | -rw-r--r-- |
klao@946 | 1 |
// -*- c++ -*- |
klao@946 | 2 |
|
klao@946 | 3 |
#ifndef LEMON_CLEARABLE_GRAPH_EXTENDER_H |
klao@946 | 4 |
#define LEMON_CLEARABLE_GRAPH_EXTENDER_H |
klao@946 | 5 |
|
klao@946 | 6 |
#include <lemon/invalid.h> |
klao@946 | 7 |
|
klao@946 | 8 |
|
klao@946 | 9 |
namespace lemon { |
klao@946 | 10 |
|
klao@946 | 11 |
template <typename _Base> |
klao@946 | 12 |
class ClearableGraphExtender : public _Base { |
klao@946 | 13 |
public: |
klao@946 | 14 |
|
klao@946 | 15 |
typedef ClearableGraphExtender Graph; |
klao@946 | 16 |
typedef _Base Parent; |
klao@946 | 17 |
|
klao@946 | 18 |
void clear() { |
klao@946 | 19 |
Parent::getNodeObserverRegistry().clear(); |
klao@946 | 20 |
Parent::getEdgeObserverRegistry().clear(); |
klao@946 | 21 |
Parent::clear(); |
klao@946 | 22 |
} |
klao@946 | 23 |
|
klao@946 | 24 |
}; |
klao@946 | 25 |
|
klao@946 | 26 |
} |
klao@946 | 27 |
|
klao@946 | 28 |
#endif |