COIN-OR::LEMON - Graph Library

Changeset 2329:3f4a04a9b7bf in lemon-0.x for lemon


Ignore:
Timestamp:
12/12/06 14:35:52 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3105
Message:

clone => build renaming

Location:
lemon
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/graph_extender.h

    r2290 r2329  
    284284
    285285    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);
    288288      getNotifier(Node()).build();
    289289      getNotifier(Edge()).build();
     
    695695
    696696    template <typename Graph, typename NodeRefMap, typename UEdgeRefMap>
    697     void clone(const Graph& graph, NodeRefMap& nodeRef,
     697    void build(const Graph& graph, NodeRefMap& nodeRef,
    698698               UEdgeRefMap& uEdgeRef) {
    699       Parent::clone(graph, nodeRef, uEdgeRef);
     699      Parent::build(graph, nodeRef, uEdgeRef);
    700700      getNotifier(Node()).build();
    701701      getNotifier(UEdge()).build();
     
    13191319    template <typename Graph, typename ANodeRefMap,
    13201320              typename BNodeRefMap, typename UEdgeRefMap>
    1321     void clone(const Graph& graph, ANodeRefMap& aNodeRef,
     1321    void build(const Graph& graph, ANodeRefMap& aNodeRef,
    13221322               BNodeRefMap& bNodeRef, UEdgeRefMap& uEdgeRef) {
    1323       Parent::clone(graph, aNodeRef, bNodeRef, uEdgeRef);
     1323      Parent::build(graph, aNodeRef, bNodeRef, uEdgeRef);
    13241324      getNotifier(ANode()).build();
    13251325      getNotifier(BNode()).build();
  • lemon/bits/traits.h

    r2290 r2329  
    325325
    326326  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>::type
     327  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
    335335  > {
    336336    static const bool value = true;
  • lemon/graph_utils.h

    r2290 r2329  
    684684    struct GraphCopySelector<
    685685      Graph,
    686       typename enable_if<typename Graph::CloneableTag, void>::type>
     686      typename enable_if<typename Graph::BuildTag, void>::type>
    687687    {
    688688      template <typename Source, typename NodeRefMap, typename EdgeRefMap>
    689689      static void copy(Graph &target, const Source& source,
    690690                       NodeRefMap& nodeRefMap, EdgeRefMap& edgeRefMap) {
    691         target.clone(source, nodeRefMap, edgeRefMap);
     691        target.build(source, nodeRefMap, edgeRefMap);
    692692      }
    693693    };
     
    711711    struct UGraphCopySelector<
    712712      UGraph,
    713       typename enable_if<typename UGraph::CloneableTag, void>::type>
     713      typename enable_if<typename UGraph::BuildTag, void>::type>
    714714    {
    715715      template <typename Source, typename NodeRefMap, typename UEdgeRefMap>
    716716      static void copy(UGraph &target, const Source& source,
    717717                       NodeRefMap& nodeRefMap, UEdgeRefMap& uEdgeRefMap) {
    718         target.clone(source, nodeRefMap, uEdgeRefMap);
     718        target.build(source, nodeRefMap, uEdgeRefMap);
    719719      }
    720720    };
     
    743743    struct BpUGraphCopySelector<
    744744      BpUGraph,
    745       typename enable_if<typename BpUGraph::CloneableTag, void>::type>
     745      typename enable_if<typename BpUGraph::BuildTag, void>::type>
    746746    {
    747747      template <typename Source, typename ANodeRefMap,
     
    750750                       ANodeRefMap& aNodeRefMap, BNodeRefMap& bNodeRefMap,
    751751                       UEdgeRefMap& uEdgeRefMap) {
    752         target.clone(source, aNodeRefMap, bNodeRefMap, uEdgeRefMap);
     752        target.build(source, aNodeRefMap, bNodeRefMap, uEdgeRefMap);
    753753      }
    754754    };
  • lemon/static_graph.h

    r2293 r2329  
    123123  public:
    124124
    125     typedef True CloneableTag;
     125    typedef True BuildTag;
    126126   
    127127    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) {
    129129
    130130      if (node_num != -1) {
Note: See TracChangeset for help on using the changeset viewer.