COIN-OR::LEMON - Graph Library

Changeset 590:5c1465127b79 in lemon-0.x for src/hugo/smart_graph.h


Ignore:
Timestamp:
05/09/04 18:21:56 (17 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@769
Message:

Changes in the Maps' copy constructors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/smart_graph.h

    r579 r590  
    6464  public:
    6565    template <typename T> class EdgeMap;
    66     template <typename T> class EdgeMap;
     66    template <typename T> class NodeMap;
    6767
    6868    class Node;
     
    308308 
    309309      ///\todo It can copy between different types.
    310       ///
     310      ///\todo We could use 'copy'
    311311      template<typename TT> NodeMap(const NodeMap<TT> &m) :
    312         DynMapBase<Node>(*m.G)
     312        DynMapBase<Node>(*m.G), container(m.container.size())
    313313      {
    314314        G->dyn_node_maps.push_back(this);
     
    399399
    400400      ///\todo It can copy between different types.
    401       ///
    402       template<typename TT> EdgeMap(const EdgeMap<TT> &m) :
    403         DynMapBase<Edge>(*m.G)
     401      template<typename TT> EdgeMap(const EdgeMap<TT> &m)
     402        : DynMapBase<Edge>(*m.G), container(m.container.size())
    404403      {
    405404        G->dyn_edge_maps.push_back(this);
     
    542541      ///
    543542
    544       template<typename TT> SymEdgeMap(const SymEdgeMap<TT> &m) :
    545         DynMapBase<SymEdge>(*m.G)
     543      template<typename TT> SymEdgeMap(const SymEdgeMap<TT> &m)
     544        : DynMapBase<SymEdge>(*m.G), container(m.container.size())
    546545      {
    547546        G->dyn_node_maps.push_back(this);
     
    614613
    615614
    616 #endif //SMART_GRAPH_H
     615#endif //HUGO_SMART_GRAPH_H
Note: See TracChangeset for help on using the changeset viewer.