src/lemon/concept/graph_component.h
changeset 1022 567f392d1d2e
parent 1021 fd1d073b6557
child 1030 c8a41699e613
     1.1 --- a/src/lemon/concept/graph_component.h	Thu Nov 25 14:48:24 2004 +0000
     1.2 +++ b/src/lemon/concept/graph_component.h	Sun Nov 28 16:30:10 2004 +0000
     1.3 @@ -406,7 +406,7 @@
     1.4      /// This class provides beside the core graph features
     1.5      /// core clear functions for the graph structure.
     1.6      /// The most of the base graphs should be conform to this concept.
     1.7 -    class BaseClearableGraphComponent : virtual public BaseGraphComponent {
     1.8 +    class ClearableGraphComponent : virtual public BaseGraphComponent {
     1.9      public:
    1.10  
    1.11        /// Erase all the Nodes and Edges from the graph.
    1.12 @@ -418,11 +418,11 @@
    1.13        template <typename _Graph>
    1.14        struct Constraints {
    1.15  	void constraints() {
    1.16 -	  checkConcept< BaseGraphComponent, _Graph>();
    1.17 +	  checkConcept<BaseGraphComponent, _Graph>();
    1.18  	  graph.clear();
    1.19  	}
    1.20  
    1.21 -	_Graph& graph;
    1.22 +	_Graph graph;
    1.23        };
    1.24      };
    1.25  
    1.26 @@ -804,27 +804,6 @@
    1.27        };
    1.28      };
    1.29  
    1.30 -    class ClearableGraphComponent : virtual public BaseGraphComponent {
    1.31 -    public:
    1.32 -
    1.33 -      typedef ClearableGraphComponent Graph;
    1.34 -
    1.35 -      typedef BaseGraphComponent::Node Node;
    1.36 -      typedef BaseGraphComponent::Edge Edge;
    1.37 -
    1.38 -      void clear() {}    
    1.39 -
    1.40 -
    1.41 -      template <typename _Graph>
    1.42 -      struct ClearableGraphComponentConcept {
    1.43 -	void constraints() {
    1.44 -	  checkConcept< BaseGraphComponent, _Graph >();
    1.45 -	  graph.clear();
    1.46 -	}
    1.47 -	_Graph& graph;
    1.48 -      };
    1.49 -    };
    1.50 -
    1.51    }
    1.52  
    1.53  }