equal
deleted
inserted
replaced
2523 GRAPH_TYPEDEFS(typename G); |
2523 GRAPH_TYPEDEFS(typename G); |
2524 typedef G Graph; |
2524 typedef G Graph; |
2525 |
2525 |
2526 protected: |
2526 protected: |
2527 |
2527 |
2528 class AutoNodeMap : public DefaultMap<Graph, Node, Edge> { |
2528 class AutoNodeMap : public DefaultMap<G, Node, Edge> { |
2529 public: |
2529 public: |
2530 |
2530 |
2531 typedef DefaultMap<Graph, Node, Edge> Parent; |
2531 typedef DefaultMap<G, Node, Edge> Parent; |
2532 |
2532 |
2533 AutoNodeMap(const Graph& graph) : Parent(graph, INVALID) {} |
2533 AutoNodeMap(const G& graph) : Parent(graph, INVALID) {} |
2534 |
2534 |
2535 virtual void add(const Node& node) { |
2535 virtual void add(const Node& node) { |
2536 Parent::add(node); |
2536 Parent::add(node); |
2537 Parent::set(node, INVALID); |
2537 Parent::set(node, INVALID); |
2538 } |
2538 } |