lemon/bits/clearable_graph_extender.h
changeset 1979 c2992fd74dad
parent 1978 ef2d00e46897
child 1980 a954b780e3ab
     1.1 --- a/lemon/bits/clearable_graph_extender.h	Wed Feb 22 12:45:59 2006 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,123 +0,0 @@
     1.4 -/* -*- C++ -*-
     1.5 - *
     1.6 - * This file is a part of LEMON, a generic C++ optimization library
     1.7 - *
     1.8 - * Copyright (C) 2003-2006
     1.9 - * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10 - * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11 - *
    1.12 - * Permission to use, modify and distribute this software is granted
    1.13 - * provided that this copyright notice appears in all copies. For
    1.14 - * precise terms see the accompanying LICENSE file.
    1.15 - *
    1.16 - * This software is provided "AS IS" with no warranty of any kind,
    1.17 - * express or implied, and with no claim as to its suitability for any
    1.18 - * purpose.
    1.19 - *
    1.20 - */
    1.21 -
    1.22 -#ifndef LEMON_CLEARABLE_GRAPH_EXTENDER_H
    1.23 -#define LEMON_CLEARABLE_GRAPH_EXTENDER_H
    1.24 -
    1.25 -#include <lemon/invalid.h>
    1.26 -
    1.27 -
    1.28 -namespace lemon {
    1.29 -
    1.30 -  template <typename _Base> 
    1.31 -  class ClearableGraphExtender : public _Base {
    1.32 -  public:
    1.33 -
    1.34 -    typedef ClearableGraphExtender Graph;
    1.35 -    typedef _Base Parent;
    1.36 -    typedef typename Parent::Node Node;
    1.37 -    typedef typename Parent::Edge Edge;
    1.38 -
    1.39 -    void clear() {
    1.40 -      Parent::getNotifier(Node()).clear();
    1.41 -      Parent::getNotifier(Edge()).clear();
    1.42 -      Parent::clear();
    1.43 -    }
    1.44 -
    1.45 -  };
    1.46 -
    1.47 -  template <typename _Base> 
    1.48 -  class ClearableEdgeSetExtender : public _Base {
    1.49 -  public:
    1.50 -
    1.51 -    typedef ClearableEdgeSetExtender Graph;
    1.52 -    typedef _Base Parent;
    1.53 -    typedef typename Parent::Node Node;
    1.54 -    typedef typename Parent::Edge Edge;
    1.55 -
    1.56 -    void clear() {
    1.57 -      Parent::getNotifier(Edge()).clear();
    1.58 -      Parent::clear();
    1.59 -    }
    1.60 -
    1.61 -  };
    1.62 -
    1.63 -  template <typename _Base> 
    1.64 -  class ClearableUGraphExtender : public _Base {
    1.65 -  public:
    1.66 -
    1.67 -    typedef ClearableUGraphExtender Graph;
    1.68 -    typedef _Base Parent;
    1.69 -    typedef typename Parent::Node Node;
    1.70 -    typedef typename Parent::UEdge UEdge;
    1.71 -    typedef typename Parent::Edge Edge;
    1.72 -
    1.73 -    void clear() {
    1.74 -      Parent::getNotifier(Node()).clear();
    1.75 -      Parent::getNotifier(UEdge()).clear();
    1.76 -      Parent::getNotifier(Edge()).clear();
    1.77 -      Parent::clear();
    1.78 -    }
    1.79 -  };
    1.80 -
    1.81 -  template <typename _Base> 
    1.82 -  class ClearableUEdgeSetExtender : public _Base {
    1.83 -  public:
    1.84 -
    1.85 -    typedef ClearableUEdgeSetExtender Graph;
    1.86 -    typedef _Base Parent;
    1.87 -    typedef typename Parent::Node Node;
    1.88 -    typedef typename Parent::UEdge UEdge;
    1.89 -    typedef typename Parent::Edge Edge;
    1.90 -
    1.91 -    void clear() {
    1.92 -      Parent::getNotifier(UEdge()).clear();
    1.93 -      Parent::getNotifier(Edge()).clear();
    1.94 -      Parent::clear();
    1.95 -    }
    1.96 -
    1.97 -  };
    1.98 -
    1.99 -
   1.100 -  template <typename _Base>
   1.101 -  class ClearableBpUGraphExtender : public _Base {
   1.102 -  public:
   1.103 -
   1.104 -    typedef _Base Parent;
   1.105 -    typedef ClearableBpUGraphExtender Graph;
   1.106 -
   1.107 -    typedef typename Parent::Node Node;
   1.108 -    typedef typename Parent::BNode BNode;
   1.109 -    typedef typename Parent::ANode ANode;
   1.110 -    typedef typename Parent::Edge Edge;
   1.111 -    typedef typename Parent::UEdge UEdge;
   1.112 -
   1.113 -    void clear() {
   1.114 -      Parent::getNotifier(Edge()).clear();
   1.115 -      Parent::getNotifier(UEdge()).clear();
   1.116 -      Parent::getNotifier(Node()).clear();
   1.117 -      Parent::getNotifier(BNode()).clear();
   1.118 -      Parent::getNotifier(ANode()).clear();
   1.119 -      Parent::clear();
   1.120 -    }
   1.121 -
   1.122 -  };
   1.123 -
   1.124 -}
   1.125 -
   1.126 -#endif