1.1 --- a/lemon/bits/default_map.h Sun Jul 13 16:46:56 2008 +0100
1.2 +++ b/lemon/bits/default_map.h Sun Jul 13 19:51:02 2008 +0100
1.3 @@ -1,6 +1,6 @@
1.4 -/* -*- C++ -*-
1.5 +/* -*- mode: C++; indent-tabs-mode: nil; -*-
1.6 *
1.7 - * This file is a part of LEMON, a generic C++ optimization library
1.8 + * This file is a part of LEMON, a generic C++ optimization library.
1.9 *
1.10 * Copyright (C) 2003-2008
1.11 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.12 @@ -29,8 +29,8 @@
1.13 ///\brief Graph maps that construct and destruct their elements dynamically.
1.14
1.15 namespace lemon {
1.16 -
1.17 -
1.18 +
1.19 +
1.20 //#ifndef LEMON_USE_DEBUG_MAP
1.21
1.22 template <typename _Graph, typename _Item, typename _Value>
1.23 @@ -140,28 +140,28 @@
1.24 typedef VectorMap<_Graph, _Item, _Ptr*> Map;
1.25 };
1.26
1.27 -// #else
1.28 +// #else
1.29
1.30 // template <typename _Graph, typename _Item, typename _Value>
1.31 // struct DefaultMapSelector {
1.32 // typedef DebugMap<_Graph, _Item, _Value> Map;
1.33 // };
1.34
1.35 -// #endif
1.36 +// #endif
1.37
1.38 /// \e
1.39 template <typename _Graph, typename _Item, typename _Value>
1.40 - class DefaultMap
1.41 + class DefaultMap
1.42 : public DefaultMapSelector<_Graph, _Item, _Value>::Map {
1.43 public:
1.44 typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
1.45 typedef DefaultMap<_Graph, _Item, _Value> Map;
1.46 -
1.47 +
1.48 typedef typename Parent::Graph Graph;
1.49 typedef typename Parent::Value Value;
1.50
1.51 explicit DefaultMap(const Graph& graph) : Parent(graph) {}
1.52 - DefaultMap(const Graph& graph, const Value& value)
1.53 + DefaultMap(const Graph& graph, const Value& value)
1.54 : Parent(graph, value) {}
1.55
1.56 DefaultMap& operator=(const DefaultMap& cmap) {