src/work/klao/debug.h
author marci
Fri, 21 May 2004 10:57:30 +0000
changeset 655 a9878222d5c8
parent 493 bbd1db03f0fe
child 680 17415189e42a
permissions -rw-r--r--
bug correction in BidirGraphWrapper<Graph> default constructor
     1 // -*- C++ -*- //
     2 
     3 #ifndef HUGO_DEBUG_H
     4 #define HUGO_DEBUG_H
     5 
     6 //! \file
     7 //! \brief Basic definitions for debug control.
     8 
     9 namespace hugo {
    10 
    11   struct DebugOn {
    12     //! Example: check whether the edges added to a path are adjacent
    13     static const bool consistensy_check = true;
    14 
    15     static const bool range_check = true;
    16 
    17     //! Examples: initialize maps with some value;
    18     //! after deleting an item from UnionFindEnum set its value in the
    19     //! corresponding map to NULL...
    20     static const bool ensure_safe_state = true;
    21 
    22     static const int verbose = 5;
    23   };
    24 
    25   struct DebugOff {
    26     static const bool consistensy_check = false;
    27     static const bool range_check = false;
    28     static const bool ensure_safe_state = false;
    29     static const int verbose = 0;
    30   };
    31 
    32 #ifdef DEBUG
    33   typedef DebugOn DefaultDebugMode;
    34 #else
    35   typedef DebugOff DefaultDebugMode;
    36 #endif
    37 
    38 }
    39 #endif // HUGO_DEBUG_H