1 #ifndef DUNE_FEM_DEBUG_HH
2 #define DUNE_FEM_DEBUG_HH
12 #if not defined NDEBUG
28 template<
class CounterImp =
unsigned int >
62 : count_( other.count_ )
110 return count_ == other.count_;
131 return count_ != other.count_;
Definition: bindguard.hh:11
A counter only present if NDEBUG is not defined.
Definition: debug.hh:30
DebugCounter(const ThisType &other)
copy constructor
Definition: debug.hh:60
bool operator==(const ThisType &other)
comparison for equality
Definition: debug.hh:107
bool operator!=(const ThisType &other)
comparison for inequality
Definition: debug.hh:128
ThisType & operator--()
decrement operator
Definition: debug.hh:87
ThisType & operator++()
increment operator
Definition: debug.hh:73
DebugCounter(const CounterType count=0)
constructor
Definition: debug.hh:51
CounterImp CounterType
integral type for the actual counting
Definition: debug.hh:33
ThisType & operator=(const ThisType &)=delete
DebugLock(const ThisType &)=delete
void lock()
Definition: debug.hh:170
void unlock()
Definition: debug.hh:178
DebugLock()
Definition: debug.hh:151
bool operator!() const
Definition: debug.hh:161