Changeset 2329:3f4a04a9b7bf in lemon-0.x
- Timestamp:
- 12/12/06 14:35:52 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3105
- Location:
- lemon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/graph_extender.h
r2290 r2329 284 284 285 285 template <typename Graph, typename NodeRefMap, typename EdgeRefMap> 286 void clone(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) {287 Parent:: clone(graph, nodeRef, edgeRef);286 void build(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) { 287 Parent::build(graph, nodeRef, edgeRef); 288 288 getNotifier(Node()).build(); 289 289 getNotifier(Edge()).build(); … … 695 695 696 696 template <typename Graph, typename NodeRefMap, typename UEdgeRefMap> 697 void clone(const Graph& graph, NodeRefMap& nodeRef,697 void build(const Graph& graph, NodeRefMap& nodeRef, 698 698 UEdgeRefMap& uEdgeRef) { 699 Parent:: clone(graph, nodeRef, uEdgeRef);699 Parent::build(graph, nodeRef, uEdgeRef); 700 700 getNotifier(Node()).build(); 701 701 getNotifier(UEdge()).build(); … … 1319 1319 template <typename Graph, typename ANodeRefMap, 1320 1320 typename BNodeRefMap, typename UEdgeRefMap> 1321 void clone(const Graph& graph, ANodeRefMap& aNodeRef,1321 void build(const Graph& graph, ANodeRefMap& aNodeRef, 1322 1322 BNodeRefMap& bNodeRef, UEdgeRefMap& uEdgeRef) { 1323 Parent:: clone(graph, aNodeRef, bNodeRef, uEdgeRef);1323 Parent::build(graph, aNodeRef, bNodeRef, uEdgeRef); 1324 1324 getNotifier(ANode()).build(); 1325 1325 getNotifier(BNode()).build(); -
lemon/bits/traits.h
r2290 r2329 325 325 326 326 template <typename Graph, typename Enable = void> 327 struct CloneableTagIndicator {328 static const bool value = false; 329 }; 330 331 template <typename Graph> 332 struct CloneableTagIndicator<333 Graph, 334 typename enable_if<typename Graph:: CloneableTag, void>::type327 struct BuildTagIndicator { 328 static const bool value = false; 329 }; 330 331 template <typename Graph> 332 struct BuildTagIndicator< 333 Graph, 334 typename enable_if<typename Graph::BuildTag, void>::type 335 335 > { 336 336 static const bool value = true; -
lemon/graph_utils.h
r2290 r2329 684 684 struct GraphCopySelector< 685 685 Graph, 686 typename enable_if<typename Graph:: CloneableTag, void>::type>686 typename enable_if<typename Graph::BuildTag, void>::type> 687 687 { 688 688 template <typename Source, typename NodeRefMap, typename EdgeRefMap> 689 689 static void copy(Graph &target, const Source& source, 690 690 NodeRefMap& nodeRefMap, EdgeRefMap& edgeRefMap) { 691 target. clone(source, nodeRefMap, edgeRefMap);691 target.build(source, nodeRefMap, edgeRefMap); 692 692 } 693 693 }; … … 711 711 struct UGraphCopySelector< 712 712 UGraph, 713 typename enable_if<typename UGraph:: CloneableTag, void>::type>713 typename enable_if<typename UGraph::BuildTag, void>::type> 714 714 { 715 715 template <typename Source, typename NodeRefMap, typename UEdgeRefMap> 716 716 static void copy(UGraph &target, const Source& source, 717 717 NodeRefMap& nodeRefMap, UEdgeRefMap& uEdgeRefMap) { 718 target. clone(source, nodeRefMap, uEdgeRefMap);718 target.build(source, nodeRefMap, uEdgeRefMap); 719 719 } 720 720 }; … … 743 743 struct BpUGraphCopySelector< 744 744 BpUGraph, 745 typename enable_if<typename BpUGraph:: CloneableTag, void>::type>745 typename enable_if<typename BpUGraph::BuildTag, void>::type> 746 746 { 747 747 template <typename Source, typename ANodeRefMap, … … 750 750 ANodeRefMap& aNodeRefMap, BNodeRefMap& bNodeRefMap, 751 751 UEdgeRefMap& uEdgeRefMap) { 752 target. clone(source, aNodeRefMap, bNodeRefMap, uEdgeRefMap);752 target.build(source, aNodeRefMap, bNodeRefMap, uEdgeRefMap); 753 753 } 754 754 }; -
lemon/static_graph.h
r2293 r2329 123 123 public: 124 124 125 typedef True CloneableTag;125 typedef True BuildTag; 126 126 127 127 template <typename Graph, typename NodeRefMap, typename EdgeRefMap> 128 void clone(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) {128 void build(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) { 129 129 130 130 if (node_num != -1) {
Note: See TracChangeset
for help on using the changeset viewer.