COIN-OR::LEMON - Graph Library

Changeset 725:11404088d1a5 in lemon-1.2


Ignore:
Timestamp:
09/25/09 12:24:16 (14 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add creator functions for IdMap? and RangeIdMap? (#302)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/maps.h

    r724 r725  
    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.
     
    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  ///
Note: See TracChangeset for help on using the changeset viewer.