src/lemon/clearable_graph_extender.h
author klao
Wed, 10 Nov 2004 21:59:59 +0000
changeset 979 b5fb023cdb7b
child 980 0f1044b7a3af
permissions -rw-r--r--
"make check" pass under icc v8.0

* There are _many_ remarks which are worth examinating! Non-inline (and even
not template) functions in header files for example.
     1 // -*- c++ -*-
     2 
     3 #ifndef LEMON_CLEARABLE_GRAPH_EXTENDER_H
     4 #define LEMON_CLEARABLE_GRAPH_EXTENDER_H
     5 
     6 #include <lemon/invalid.h>
     7 
     8 
     9 namespace lemon {
    10 
    11   template <typename _Base> 
    12   class ClearableGraphExtender : public _Base {
    13   public:
    14 
    15     typedef ClearableGraphExtender Graph;
    16     typedef _Base Parent;
    17 
    18     void clear() {
    19       Parent::getNodeObserverRegistry().clear();
    20       Parent::getEdgeObserverRegistry().clear();
    21       Parent::clear();
    22     }
    23 
    24   };
    25 
    26 }
    27 
    28 #endif