COIN-OR::LEMON - Graph Library

Changeset 2046:66d160810c0a in lemon-0.x


Ignore:
Timestamp:
04/13/06 19:57:03 (14 years ago)
Author:
Mihaly Barasz
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2688
Message:

more explicit :)

Location:
lemon/bits
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/array_map.h

    r2031 r2046  
    7979    ///
    8080    /// Graph initialized map constructor.
    81     ArrayMap(const Graph& graph) {
     81    explicit ArrayMap(const Graph& graph) {
    8282      Parent::attach(graph.getNotifier(Item()));
    8383      allocate_memory();
  • lemon/bits/default_map.h

    r2031 r2046  
    160160    typedef typename Parent::Value Value;
    161161
    162     DefaultMap(const Graph& graph) : Parent(graph) {}
     162    explicit DefaultMap(const Graph& graph) : Parent(graph) {}
    163163    DefaultMap(const Graph& graph, const Value& value)
    164164      : Parent(graph, value) {}
  • lemon/bits/edge_set_extender.h

    r2031 r2046  
    225225      typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
    226226
    227       EdgeMap(const Graph& _g)
     227      explicit EdgeMap(const Graph& _g)
    228228        : Parent(_g) {}
    229229      EdgeMap(const Graph& _g, const _Value& _v)
  • lemon/bits/graph_extender.h

    r2031 r2046  
    224224      typedef MapExtender<DefaultMap<Graph, Node, _Value> > Parent;
    225225
    226       NodeMap(const Graph& graph)
     226      explicit NodeMap(const Graph& graph)
    227227        : Parent(graph) {}
    228228      NodeMap(const Graph& graph, const _Value& value)
     
    248248      typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
    249249
    250       EdgeMap(const Graph& graph)
     250      explicit EdgeMap(const Graph& graph)
    251251        : Parent(graph) {}
    252252      EdgeMap(const Graph& graph, const _Value& value)
Note: See TracChangeset for help on using the changeset viewer.