# HG changeset patch # User deba # Date 1165930552 0 # Node ID 3f4a04a9b7bf69e7902b23658645c3747359d934 # Parent b4931ae52069bc47c68df9f748fa349fdab32d18 clone => build renaming diff -r b4931ae52069 -r 3f4a04a9b7bf lemon/bits/graph_extender.h --- a/lemon/bits/graph_extender.h Thu Dec 07 16:10:54 2006 +0000 +++ b/lemon/bits/graph_extender.h Tue Dec 12 13:35:52 2006 +0000 @@ -283,8 +283,8 @@ } template - void clone(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) { - Parent::clone(graph, nodeRef, edgeRef); + void build(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) { + Parent::build(graph, nodeRef, edgeRef); getNotifier(Node()).build(); getNotifier(Edge()).build(); } @@ -694,9 +694,9 @@ } template - void clone(const Graph& graph, NodeRefMap& nodeRef, + void build(const Graph& graph, NodeRefMap& nodeRef, UEdgeRefMap& uEdgeRef) { - Parent::clone(graph, nodeRef, uEdgeRef); + Parent::build(graph, nodeRef, uEdgeRef); getNotifier(Node()).build(); getNotifier(UEdge()).build(); getNotifier(Edge()).build(); @@ -1318,9 +1318,9 @@ template - void clone(const Graph& graph, ANodeRefMap& aNodeRef, + void build(const Graph& graph, ANodeRefMap& aNodeRef, BNodeRefMap& bNodeRef, UEdgeRefMap& uEdgeRef) { - Parent::clone(graph, aNodeRef, bNodeRef, uEdgeRef); + Parent::build(graph, aNodeRef, bNodeRef, uEdgeRef); getNotifier(ANode()).build(); getNotifier(BNode()).build(); getNotifier(Node()).build(); diff -r b4931ae52069 -r 3f4a04a9b7bf lemon/bits/traits.h --- a/lemon/bits/traits.h Thu Dec 07 16:10:54 2006 +0000 +++ b/lemon/bits/traits.h Tue Dec 12 13:35:52 2006 +0000 @@ -324,14 +324,14 @@ }; template - struct CloneableTagIndicator { + struct BuildTagIndicator { static const bool value = false; }; template - struct CloneableTagIndicator< + struct BuildTagIndicator< Graph, - typename enable_if::type + typename enable_if::type > { static const bool value = true; }; diff -r b4931ae52069 -r 3f4a04a9b7bf lemon/graph_utils.h --- a/lemon/graph_utils.h Thu Dec 07 16:10:54 2006 +0000 +++ b/lemon/graph_utils.h Tue Dec 12 13:35:52 2006 +0000 @@ -683,12 +683,12 @@ template struct GraphCopySelector< Graph, - typename enable_if::type> + typename enable_if::type> { template static void copy(Graph &target, const Source& source, NodeRefMap& nodeRefMap, EdgeRefMap& edgeRefMap) { - target.clone(source, nodeRefMap, edgeRefMap); + target.build(source, nodeRefMap, edgeRefMap); } }; @@ -710,12 +710,12 @@ template struct UGraphCopySelector< UGraph, - typename enable_if::type> + typename enable_if::type> { template static void copy(UGraph &target, const Source& source, NodeRefMap& nodeRefMap, UEdgeRefMap& uEdgeRefMap) { - target.clone(source, nodeRefMap, uEdgeRefMap); + target.build(source, nodeRefMap, uEdgeRefMap); } }; @@ -742,14 +742,14 @@ template struct BpUGraphCopySelector< BpUGraph, - typename enable_if::type> + typename enable_if::type> { template static void copy(BpUGraph &target, const Source& source, ANodeRefMap& aNodeRefMap, BNodeRefMap& bNodeRefMap, UEdgeRefMap& uEdgeRefMap) { - target.clone(source, aNodeRefMap, bNodeRefMap, uEdgeRefMap); + target.build(source, aNodeRefMap, bNodeRefMap, uEdgeRefMap); } }; diff -r b4931ae52069 -r 3f4a04a9b7bf lemon/static_graph.h --- a/lemon/static_graph.h Thu Dec 07 16:10:54 2006 +0000 +++ b/lemon/static_graph.h Tue Dec 12 13:35:52 2006 +0000 @@ -122,10 +122,10 @@ public: - typedef True CloneableTag; + typedef True BuildTag; template - void clone(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) { + void build(const Graph& graph, NodeRefMap& nodeRef, EdgeRefMap& edgeRef) { if (node_num != -1) { delete[] node_first_out;