COIN-OR::LEMON - Graph Library

Changeset 2112:f27dfd29c5c0 in lemon-0.x


Ignore:
Timestamp:
06/28/06 17:28:38 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2818
Message:

Make explicit constructors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/iterable_maps.h

    r2031 r2112  
    127127    ///
    128128    /// Constructor of the Map with a default value.
    129     IterableBoolMap(const Graph& _graph, bool def = false)
     129    explicit IterableBoolMap(const Graph& _graph, bool def = false)
    130130      : Parent(_graph), graph(_graph) {
    131131      for (KeyIt it(graph); it != INVALID; ++it) {
     
    204204      /// keys which mapped to true.
    205205      /// \param _map The IterableIntMap
    206       TrueIt(const IterableBoolMap& _map)
     206      explicit TrueIt(const IterableBoolMap& _map)
    207207        : Parent(_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID),
    208208          map(&_map) {}
     
    244244      /// keys which mapped to false.
    245245      /// \param _map The IterableIntMap
    246       FalseIt(const IterableBoolMap& _map)
     246      explicit FalseIt(const IterableBoolMap& _map)
    247247        : Parent(_map.sep < (int)_map.array.size() ?
    248248                 _map.array.back() : INVALID), map(&_map) {}
Note: See TracChangeset for help on using the changeset viewer.