COIN-OR::LEMON - Graph Library

Changeset 1755:bf267b301a5e in lemon-0.x for lemon/graph_adaptor.h


Ignore:
Timestamp:
11/02/05 16:28:37 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2284
Message:

Make constructor explicit
Indentation changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/graph_adaptor.h

    r1725 r1755  
    128128    public:
    129129      typedef typename _Graph::template NodeMap<_Value> Parent;
    130       NodeMap(const GraphAdaptorBase<_Graph>& gw) : Parent(*gw.graph) { }
     130      explicit NodeMap(const GraphAdaptorBase<_Graph>& gw)
     131        : Parent(*gw.graph) { }
    131132      NodeMap(const GraphAdaptorBase<_Graph>& gw, const _Value& value)
    132       : Parent(*gw.graph, value) { }
     133        : Parent(*gw.graph, value) { }
    133134    };
    134135
     
    137138    public:
    138139      typedef typename _Graph::template EdgeMap<_Value> Parent;
    139       EdgeMap(const GraphAdaptorBase<_Graph>& gw) : Parent(*gw.graph) { }
     140      explicit EdgeMap(const GraphAdaptorBase<_Graph>& gw)
     141        : Parent(*gw.graph) { }
    140142      EdgeMap(const GraphAdaptorBase<_Graph>& gw, const _Value& value)
    141       : Parent(*gw.graph, value) { }
     143        : Parent(*gw.graph, value) { }
    142144    };
    143145
     
    154156
    155157  public:
    156     GraphAdaptor(Graph& _graph) { setGraph(_graph); }
     158    explicit GraphAdaptor(Graph& _graph) { setGraph(_graph); }
    157159  };
    158160
     
    212214    RevGraphAdaptor() { }
    213215  public:
    214     RevGraphAdaptor(_Graph& _graph) { setGraph(_graph); }
     216    explicit RevGraphAdaptor(_Graph& _graph) { setGraph(_graph); }
    215217  };
    216218
Note: See TracChangeset for help on using the changeset viewer.