author | alpar |
Sat, 13 Nov 2004 17:47:44 +0000 | |
changeset 988 | aa19ca32d9b0 |
parent 946 | c94ef40a22ce |
child 1022 | 567f392d1d2e |
permissions | -rw-r--r-- |
1 // -*- c++ -*-
3 #ifndef LEMON_CLEARABLE_GRAPH_EXTENDER_H
4 #define LEMON_CLEARABLE_GRAPH_EXTENDER_H
6 #include <lemon/invalid.h>
9 namespace lemon {
11 template <typename _Base>
12 class ClearableGraphExtender : public _Base {
13 public:
15 typedef ClearableGraphExtender Graph;
16 typedef _Base Parent;
17 typedef typename Parent::Node Node;
18 typedef typename Parent::Edge Edge;
20 void clear() {
21 Parent::getObserverRegistry(Node()).clear();
22 Parent::getObserverRegistry(Edge()).clear();
23 Parent::clear();
24 }
26 };
28 }
30 #endif