Changeset 1022:567f392d1d2e in lemon-0.x for src/lemon/default_map.h
- Timestamp:
- 11/28/04 17:30:10 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1412
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lemon/default_map.h
r987 r1022 173 173 class NodeMap : public DefaultMap<Graph, Node, NodeIt, _Value> { 174 174 public: 175 typedef DefaultMappableGraphExtender<_Base> Graph; 176 177 typedef typename Graph::Node Node; 178 typedef typename Graph::NodeIt NodeIt; 179 175 typedef DefaultMappableGraphExtender Graph; 180 176 typedef DefaultMap<Graph, Node, NodeIt, _Value> Parent; 181 182 //typedef typename Parent::Graph Graph;183 typedef typename Parent::Value Value;184 177 185 178 NodeMap(const Graph& _g) 186 179 : Parent(_g) {} 187 NodeMap(const Graph& _g, const Value& _v)180 NodeMap(const Graph& _g, const _Value& _v) 188 181 : Parent(_g, _v) {} 189 190 182 }; 191 183 … … 193 185 class EdgeMap : public DefaultMap<Graph, Edge, EdgeIt, _Value> { 194 186 public: 195 typedef DefaultMappableGraphExtender<_Base> Graph; 196 197 typedef typename Graph::Edge Edge; 198 typedef typename Graph::EdgeIt EdgeIt; 199 187 typedef DefaultMappableGraphExtender Graph; 200 188 typedef DefaultMap<Graph, Edge, EdgeIt, _Value> Parent; 201 202 //typedef typename Parent::Graph Graph;203 typedef typename Parent::Value Value;204 189 205 190 EdgeMap(const Graph& _g) 206 191 : Parent(_g) {} 207 EdgeMap(const Graph& _g, const Value& _v)192 EdgeMap(const Graph& _g, const _Value& _v) 208 193 : Parent(_g, _v) {} 209 210 194 }; 211 195 212 196 }; 213 197 198 template <typename _Base> 199 class MappableUndirGraphExtender : 200 public DefaultMappableGraphExtender<_Base> { 201 public: 202 203 typedef MappableUndirGraphExtender Graph; 204 typedef DefaultMappableGraphExtender<_Base> Parent; 205 206 typedef typename Parent::UndirEdge UndirEdge; 207 typedef typename Parent::UndirEdgeIt UndirEdgeIt; 208 209 template <typename _Value> 210 class UndirEdgeMap : 211 public DefaultMap<Graph, UndirEdge, UndirEdgeIt, _Value> { 212 public: 213 typedef MappableUndirGraphExtender Graph; 214 typedef DefaultMap<Graph, UndirEdge, UndirEdgeIt, _Value> Parent; 215 216 UndirEdgeMap(const Graph& _g) 217 : Parent(_g) {} 218 UndirEdgeMap(const Graph& _g, const _Value& _v) 219 : Parent(_g, _v) {} 220 }; 221 222 223 }; 214 224 215 225 }
Note: See TracChangeset
for help on using the changeset viewer.