Changeset 767:6e8c27ee9079 in lemon for lemon/maps.h
- Timestamp:
- 07/23/09 18:13:59 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/maps.h
r731 r767 1827 1827 /// the items stored in the graph, which is returned by the \c id() 1828 1828 /// function of the graph. This map can be inverted with its member 1829 /// class \c InverseMap or with the \c operator() member.1829 /// class \c InverseMap or with the \c operator()() member. 1830 1830 /// 1831 1831 /// \tparam GR The graph type. … … 2033 2033 typename Container::const_iterator it = _inv_map.find(val); 2034 2034 return it != _inv_map.end() ? it->second : INVALID; 2035 } 2036 2037 /// \brief Returns the number of items with the given value. 2038 /// 2039 /// This function returns the number of items with the given value 2040 /// associated with it. 2041 int count(const Value &val) const { 2042 return _inv_map.count(val); 2035 2043 } 2036 2044 … … 2123 2131 }; 2124 2132 2125 /// \brief Provides continuous and unique IDfor the2133 /// \brief Provides continuous and unique id for the 2126 2134 /// items of a graph. 2127 2135 /// 2128 2136 /// RangeIdMap provides a unique and continuous 2129 /// IDfor each item of a given type (\c Node, \c Arc or2137 /// id for each item of a given type (\c Node, \c Arc or 2130 2138 /// \c Edge) in a graph. This id is 2131 2139 /// - \b unique: different items get different ids, … … 2138 2146 /// the \c id() function of the graph or \ref IdMap. 2139 2147 /// This map can be inverted with its member class \c InverseMap, 2140 /// or with the \c operator() member.2148 /// or with the \c operator()() member. 2141 2149 /// 2142 2150 /// \tparam GR The graph type.
Note: See TracChangeset
for help on using the changeset viewer.