diff -r fd1d073b6557 -r 567f392d1d2e src/lemon/concept/graph_component.h --- a/src/lemon/concept/graph_component.h Thu Nov 25 14:48:24 2004 +0000 +++ b/src/lemon/concept/graph_component.h Sun Nov 28 16:30:10 2004 +0000 @@ -406,7 +406,7 @@ /// This class provides beside the core graph features /// core clear functions for the graph structure. /// The most of the base graphs should be conform to this concept. - class BaseClearableGraphComponent : virtual public BaseGraphComponent { + class ClearableGraphComponent : virtual public BaseGraphComponent { public: /// Erase all the Nodes and Edges from the graph. @@ -418,11 +418,11 @@ template struct Constraints { void constraints() { - checkConcept< BaseGraphComponent, _Graph>(); + checkConcept(); graph.clear(); } - _Graph& graph; + _Graph graph; }; }; @@ -804,27 +804,6 @@ }; }; - class ClearableGraphComponent : virtual public BaseGraphComponent { - public: - - typedef ClearableGraphComponent Graph; - - typedef BaseGraphComponent::Node Node; - typedef BaseGraphComponent::Edge Edge; - - void clear() {} - - - template - struct ClearableGraphComponentConcept { - void constraints() { - checkConcept< BaseGraphComponent, _Graph >(); - graph.clear(); - } - _Graph& graph; - }; - }; - } }