template<DebugLevel L = DebugNone>
class AudioGrapher::Debuggable< L >
Class that allows optimizing out debugging code during compile time. Usage: to take all advantage of this class you should wrap all debugging statemets like this:
if (
debug_level (SomeDebugLevel) && other_optional_conditionals) {
}
std::ostream & debug_stream()
bool debug_level(DebugLevel level)
The order of the conditionals in the if-clause is important. The checks specified in other_optional_conditionals are only optimized out if debug_level() is placed before it with a logical and (short-circuiting).
Definition at line 41 of file debuggable.h.