[Lemon-commits] deba: r3105 - in hugo/trunk/lemon: . bits

Lemon SVN svn at lemon.cs.elte.hu
Tue Dec 12 14:35:53 CET 2006


Author: deba
Date: Tue Dec 12 14:35:52 2006
New Revision: 3105

Modified:
   hugo/trunk/lemon/bits/graph_extender.h
   hugo/trunk/lemon/bits/traits.h
   hugo/trunk/lemon/graph_utils.h
   hugo/trunk/lemon/static_graph.h

Log:
clone => build renaming



Modified: hugo/trunk/lemon/bits/graph_extender.h
==============================================================================
--- hugo/trunk/lemon/bits/graph_extender.h	(original)
+++ hugo/trunk/lemon/bits/graph_extender.h	Tue Dec 12 14:35:52 2006
@@ -283,8 +283,8 @@
     }
 
     template <typename Graph, typename NodeRefMap, typename EdgeRefMap>
-    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 <typename Graph, typename NodeRefMap, typename UEdgeRefMap>
-    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 <typename Graph, typename ANodeRefMap, 
               typename BNodeRefMap, typename UEdgeRefMap>
-    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();

Modified: hugo/trunk/lemon/bits/traits.h
==============================================================================
--- hugo/trunk/lemon/bits/traits.h	(original)
+++ hugo/trunk/lemon/bits/traits.h	Tue Dec 12 14:35:52 2006
@@ -324,14 +324,14 @@
   };
 
   template <typename Graph, typename Enable = void>
-  struct CloneableTagIndicator {
+  struct BuildTagIndicator {
     static const bool value = false;
   };
 
   template <typename Graph>
-  struct CloneableTagIndicator<
+  struct BuildTagIndicator<
     Graph, 
-    typename enable_if<typename Graph::CloneableTag, void>::type
+    typename enable_if<typename Graph::BuildTag, void>::type
   > {
     static const bool value = true;
   };

Modified: hugo/trunk/lemon/graph_utils.h
==============================================================================
--- hugo/trunk/lemon/graph_utils.h	(original)
+++ hugo/trunk/lemon/graph_utils.h	Tue Dec 12 14:35:52 2006
@@ -683,12 +683,12 @@
     template <typename Graph>
     struct GraphCopySelector<
       Graph, 
-      typename enable_if<typename Graph::CloneableTag, void>::type> 
+      typename enable_if<typename Graph::BuildTag, void>::type> 
     {
       template <typename Source, typename NodeRefMap, typename EdgeRefMap>
       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 <typename UGraph>
     struct UGraphCopySelector<
       UGraph, 
-      typename enable_if<typename UGraph::CloneableTag, void>::type> 
+      typename enable_if<typename UGraph::BuildTag, void>::type> 
     {
       template <typename Source, typename NodeRefMap, typename UEdgeRefMap>
       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 <typename BpUGraph>
     struct BpUGraphCopySelector<
       BpUGraph, 
-      typename enable_if<typename BpUGraph::CloneableTag, void>::type> 
+      typename enable_if<typename BpUGraph::BuildTag, void>::type> 
     {
       template <typename Source, typename ANodeRefMap, 
                 typename BNodeRefMap, typename UEdgeRefMap>
       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);
       }
     };
     

Modified: hugo/trunk/lemon/static_graph.h
==============================================================================
--- hugo/trunk/lemon/static_graph.h	(original)
+++ hugo/trunk/lemon/static_graph.h	Tue Dec 12 14:35:52 2006
@@ -122,10 +122,10 @@
     
   public:
 
-    typedef True CloneableTag;
+    typedef True BuildTag;
     
     template <typename Graph, typename NodeRefMap, typename EdgeRefMap>
-    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;



More information about the Lemon-commits mailing list