COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/lemon/clearable_graph_extender.h @ 947:93e9c45703ea

Last change on this file since 947:93e9c45703ea was 946:c94ef40a22ce, checked in by Mihaly Barasz, 19 years ago

The graph_factory branch (@ 1321) has been merged to trunk.

File size: 467 bytes
Line 
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
9namespace 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
Note: See TracBrowser for help on using the repository browser.