| author | alpar |
| Tue, 02 Nov 2004 06:28:38 +0000 | |
| changeset 955 | 0a066f80e05f |
| child 980 | 0f1044b7a3af |
| 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;
18 void clear() {
19 Parent::getNodeObserverRegistry().clear();
20 Parent::getEdgeObserverRegistry().clear();
21 Parent::clear();
22 }
24 };
26 }
28 #endif