1#ifndef DUNE_FEM_DEBUG_HH
2#define DUNE_FEM_DEBUG_HH
28 template<
class CounterImp =
unsigned int >
62 : count_( other.count_ )
110 return count_ == other.count_;
131 return count_ != other.count_;
143 typedef DebugLock ThisType;
158 DebugLock (
const ThisType& ) =
delete;
159 ThisType& operator= (
const ThisType& ) =
delete;
161 inline bool operator ! ()
const
178 inline void unlock ()
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++()
increment operator
Definition: debug.hh:73
DebugCounter(const CounterType count=0)
constructor
Definition: debug.hh:51
ThisType & operator--()
decrement operator
Definition: debug.hh:87
CounterImp CounterType
integral type for the actual counting
Definition: debug.hh:33
Dune namespace.
Definition: alignedallocator.hh:13