Changeset 1022:567f392d1d2e in lemon-0.x for src/lemon/concept/graph_component.h
- Timestamp:
- 11/28/04 17:30:10 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1412
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/concept/graph_component.h
r1021 r1022 407 407 /// core clear functions for the graph structure. 408 408 /// The most of the base graphs should be conform to this concept. 409 class BaseClearableGraphComponent : virtual public BaseGraphComponent {409 class ClearableGraphComponent : virtual public BaseGraphComponent { 410 410 public: 411 411 … … 419 419 struct Constraints { 420 420 void constraints() { 421 checkConcept< 421 checkConcept<BaseGraphComponent, _Graph>(); 422 422 graph.clear(); 423 423 } 424 424 425 _Graph &graph;425 _Graph graph; 426 426 }; 427 427 }; … … 805 805 }; 806 806 807 class ClearableGraphComponent : virtual public BaseGraphComponent {808 public:809 810 typedef ClearableGraphComponent Graph;811 812 typedef BaseGraphComponent::Node Node;813 typedef BaseGraphComponent::Edge Edge;814 815 void clear() {}816 817 818 template <typename _Graph>819 struct ClearableGraphComponentConcept {820 void constraints() {821 checkConcept< BaseGraphComponent, _Graph >();822 graph.clear();823 }824 _Graph& graph;825 };826 };827 828 807 } 829 808
Note: See TracChangeset
for help on using the changeset viewer.