lemon/bits/graph_extender.h
changeset 774 f4b5c2d5449d
parent 617 4137ef9aacc6
child 778 a143f19f465b
child 997 761fe0846f49
equal deleted inserted replaced
11:c955bce9544d 12:6810065c27bc
   602     class NodeMap
   602     class NodeMap
   603       : public MapExtender<DefaultMap<Graph, Node, _Value> > {
   603       : public MapExtender<DefaultMap<Graph, Node, _Value> > {
   604       typedef MapExtender<DefaultMap<Graph, Node, _Value> > Parent;
   604       typedef MapExtender<DefaultMap<Graph, Node, _Value> > Parent;
   605 
   605 
   606     public:
   606     public:
   607       NodeMap(const Graph& graph)
   607       explicit NodeMap(const Graph& graph)
   608         : Parent(graph) {}
   608         : Parent(graph) {}
   609       NodeMap(const Graph& graph, const _Value& value)
   609       NodeMap(const Graph& graph, const _Value& value)
   610         : Parent(graph, value) {}
   610         : Parent(graph, value) {}
   611 
   611 
   612     private:
   612     private:
   626     class ArcMap
   626     class ArcMap
   627       : public MapExtender<DefaultMap<Graph, Arc, _Value> > {
   627       : public MapExtender<DefaultMap<Graph, Arc, _Value> > {
   628       typedef MapExtender<DefaultMap<Graph, Arc, _Value> > Parent;
   628       typedef MapExtender<DefaultMap<Graph, Arc, _Value> > Parent;
   629 
   629 
   630     public:
   630     public:
   631       ArcMap(const Graph& graph)
   631       explicit ArcMap(const Graph& graph)
   632         : Parent(graph) {}
   632         : Parent(graph) {}
   633       ArcMap(const Graph& graph, const _Value& value)
   633       ArcMap(const Graph& graph, const _Value& value)
   634         : Parent(graph, value) {}
   634         : Parent(graph, value) {}
   635 
   635 
   636     private:
   636     private:
   650     class EdgeMap
   650     class EdgeMap
   651       : public MapExtender<DefaultMap<Graph, Edge, _Value> > {
   651       : public MapExtender<DefaultMap<Graph, Edge, _Value> > {
   652       typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
   652       typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
   653 
   653 
   654     public:
   654     public:
   655       EdgeMap(const Graph& graph)
   655       explicit EdgeMap(const Graph& graph)
   656         : Parent(graph) {}
   656         : Parent(graph) {}
   657 
   657 
   658       EdgeMap(const Graph& graph, const _Value& value)
   658       EdgeMap(const Graph& graph, const _Value& value)
   659         : Parent(graph, value) {}
   659         : Parent(graph, value) {}
   660 
   660