[Lemon-commits] [lemon_svn] deba: r2818 - hugo/trunk/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 21:50:35 CET 2006
Author: deba
Date: Wed Jun 28 17:28:38 2006
New Revision: 2818
Modified:
hugo/trunk/lemon/iterable_maps.h
Log:
Make explicit constructors
Modified: hugo/trunk/lemon/iterable_maps.h
==============================================================================
--- hugo/trunk/lemon/iterable_maps.h (original)
+++ hugo/trunk/lemon/iterable_maps.h Wed Jun 28 17:28:38 2006
@@ -126,7 +126,7 @@
/// \brief Constructor of the Map with a default value.
///
/// Constructor of the Map with a default value.
- IterableBoolMap(const Graph& _graph, bool def = false)
+ explicit IterableBoolMap(const Graph& _graph, bool def = false)
: Parent(_graph), graph(_graph) {
for (KeyIt it(graph); it != INVALID; ++it) {
Parent::set(it, array.size());
@@ -203,7 +203,7 @@
/// Creates an iterator. It iterates on the
/// keys which mapped to true.
/// \param _map The IterableIntMap
- TrueIt(const IterableBoolMap& _map)
+ explicit TrueIt(const IterableBoolMap& _map)
: Parent(_map.sep > 0 ? _map.array[_map.sep - 1] : INVALID),
map(&_map) {}
@@ -243,7 +243,7 @@
/// Creates an iterator. It iterates on the
/// keys which mapped to false.
/// \param _map The IterableIntMap
- FalseIt(const IterableBoolMap& _map)
+ explicit FalseIt(const IterableBoolMap& _map)
: Parent(_map.sep < (int)_map.array.size() ?
_map.array.back() : INVALID), map(&_map) {}
More information about the Lemon-commits
mailing list