COIN-OR::LEMON - Graph Library

Changeset 2202:09cbc87cb4ab in lemon-0.x for lemon/bits/default_map.h


Ignore:
Timestamp:
09/06/06 12:19:57 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2927
Message:

New map type based on array map for debugging purpose

It checks multiple allocation and deallocation of map values and
some consistency.

todo:
clarification of debugging concepts
assertions - exceptions - debug
revision of attic/debug.h

motto:
testing is at least so important as coding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/default_map.h

    r2164 r2202  
    2323#include <lemon/bits/array_map.h>
    2424#include <lemon/bits/vector_map.h>
     25#include <lemon/bits/debug_map.h>
    2526
    2627///\ingroup graphbits
     
    3738    typedef ArrayMap<_Graph, _Item, _Value> Map;
    3839  };
    39 
    40 #else
    41 
    42   template <typename _Graph, typename _Item, typename _Value>
    43   struct DefaultMapSelector {
    44     typedef VectorMap<_Graph, _Item, _Value> Map;
    45   };
    46 
    47 #endif
    4840
    4941  // bool
     
    149141  };
    150142
     143#else
     144
     145  template <typename _Graph, typename _Item, typename _Value>
     146  struct DefaultMapSelector {
     147    typedef DebugMap<_Graph, _Item, _Value> Map;
     148  };
     149
     150#endif 
     151
    151152  /// \e
    152153  template <typename _Graph, typename _Item, typename _Value>
Note: See TracChangeset for help on using the changeset viewer.