Changeset 1990:15fb7a4ea6be in lemon-0.x for lemon/sub_graph.h
- Timestamp:
- 03/01/06 11:17:25 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2592
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/sub_graph.h
r1979 r1990 21 21 22 22 #include <lemon/graph_adaptor.h> 23 #include <lemon/bits/graph_adaptor_extender.h> 24 #include <lemon/bits/default_map.h> 23 25 24 26 namespace lemon { … … 243 245 Edge firstIn, firstOut; 244 246 }; 245 class NodesImpl : public Graph::template NodeMap<NodeT> {247 class NodesImpl : public DefaultMap<Graph, Node, NodeT> { 246 248 friend class SubGraphBase; 247 249 public: 248 typedef typename Graph::template NodeMap<NodeT> Parent;250 typedef DefaultMap<Graph, Node, NodeT> Parent; 249 251 250 252 NodesImpl(SubGraph& _adaptor, const Graph& _graph) … … 306 308 Edge prevIn, nextIn; 307 309 }; 308 class EdgesImpl : public Graph::template EdgeMap<EdgeT> {310 class EdgesImpl : public DefaultMap<Graph, Edge, EdgeT> { 309 311 friend class SubGraphBase; 310 312 public: 311 typedef typename Graph::template EdgeMap<EdgeT> Parent;313 typedef DefaultMap<Graph, Edge, EdgeT> Parent; 312 314 313 315 EdgesImpl(SubGraph& _adaptor, const Graph& _graph) … … 561 563 Edge firstIn, firstOut; 562 564 }; 563 class NodesImpl : public Graph::template NodeMap<NodeT> {565 class NodesImpl : public DefaultMap<Graph, Node, NodeT> { 564 566 friend class EdgeSubGraphBase; 565 567 public: 566 typedef typename Graph::template NodeMap<NodeT> Parent;568 typedef DefaultMap<Graph, Node, NodeT> Parent; 567 569 568 570 NodesImpl(SubGraph& _adaptor, const Graph& _graph) … … 604 606 Edge prevIn, nextIn; 605 607 }; 606 class EdgesImpl : public Graph::template EdgeMap<EdgeT> {608 class EdgesImpl : public DefaultMap<Graph, Edge, EdgeT> { 607 609 friend class EdgeSubGraphBase; 608 610 public: 609 typedef typename Graph::template EdgeMap<EdgeT> Parent;611 typedef DefaultMap<Graph, Edge, EdgeT> Parent; 610 612 611 613 EdgesImpl(SubGraph& _adaptor, const Graph& _graph)
Note: See TracChangeset
for help on using the changeset viewer.