COIN-OR::LEMON - Graph Library

Ticket #302: 302-11404088d1a5.patch

File 302-11404088d1a5.patch, 1.1 KB (added by Peter Kovacs, 10 years ago)
  • lemon/maps.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1253874256 -7200
    # Node ID 11404088d1a5bd36fb75981791b24b097c696491
    # Parent  d8073df341f625e4a519b40e6903ac83539c2f73
    Add creator functions for IdMap and RangeIdMap (#302)
    
    diff --git a/lemon/maps.h b/lemon/maps.h
    a b  
    18991899    InverseMap inverse() const { return InverseMap(*_graph);}
    19001900  };
    19011901
     1902  /// \brief Returns an \c IdMap class.
     1903  ///
     1904  /// This function just returns an \c IdMap class.
     1905  /// \relates IdMap
     1906  template <typename K, typename GR>
     1907  inline IdMap<GR, K> idMap(const GR& graph) {
     1908    return IdMap<GR, K>(graph);
     1909  }
    19021910
    19031911  /// \brief General cross reference graph map type.
    19041912
     
    23622370    }
    23632371  };
    23642372
     2373  /// \brief Returns a \c RangeIdMap class.
     2374  ///
     2375  /// This function just returns an \c RangeIdMap class.
     2376  /// \relates RangeIdMap
     2377  template <typename K, typename GR>
     2378  inline RangeIdMap<GR, K> rangeIdMap(const GR& graph) {
     2379    return RangeIdMap<GR, K>(graph);
     2380  }
     2381 
    23652382  /// \brief Dynamic iterable \c bool map.
    23662383  ///
    23672384  /// This class provides a special graph map type which can store a