ThePEG::Debug Class Reference

The Debug class defines a number of debug levels and a static public member giving the current debug level in a run. More...

#include <Debug.h>

List of all members.

Public Types

enum  Levels { noDebug = 0, printSomeEvents = 1, printEveryEvent = 5, full = 9 }
 The different debug levels. More...

Static Public Member Functions

static void debugItem (int item, bool on)
 Switch on or off a given debug item.
static void setDebug (int ilev)
 Set the debug level.
static bool debugItem (int item)
 Check if a given item should be debugged.
Functions for manipulating floating point (FPU) signals
(requires the existence of fpu_controll.h on the platform).

static void unmaskFpuErrors ()
 Switch on signalling all FPU exceptions.
static void unmaskFpuOverflow ()
 Switch on signalling overflow FPU exceptions.
static void unmaskFpuUnderflow ()
 Switch on signalling underflow FPU exceptions.
static void unmaskFpuDivZero ()
 Switch on signalling division by zero FPU exceptions.
static void unmaskFpuDenorm ()
 Switch on signalling denormalized argument FPU exceptions.
static void unmaskFpuInvalid ()
 Switch on signalling invalid operation FPU exceptions.
static void maskFpuErrors ()
 Switch off signalling all FPU exceptions.
static void maskFpuOverflow ()
 Switch off signalling overflow FPU exceptions.
static void maskFpuUnderflow ()
 Switch off signalling underflow FPU exceptions.
static void maskFpuDivZero ()
 Switch off signalling division by zero FPU exceptions.
static void maskFpuDenorm ()
 Switch off signalling denormalized argument FPU exceptions.
static void maskFpuInvalid ()
 Switch off signalling invalid operation FPU exceptions.

Static Public Attributes

static int level
 The current level.
static std::vector< bool > debugItems
 A vector of switches indicating whether a given debug item is switched on or not.


Detailed Description

The Debug class defines a number of debug levels and a static public member giving the current debug level in a run.

Definition at line 21 of file Debug.h.


Member Enumeration Documentation

The different debug levels.

Enumerator:
noDebug  No debugging.

printSomeEvents  Lowest debug level.

Some events are printed out.

printEveryEvent  Higher debug level.

All events are printed out.

full  Highest possible debug level.

Definition at line 28 of file Debug.h.


Member Function Documentation

static void ThePEG::Debug::debugItem ( int  item,
bool  on 
) [static]

Switch on or off a given debug item.

If no such item exists, one will be created.

static bool ThePEG::Debug::debugItem ( int  item  )  [inline, static]

Check if a given item should be debugged.

If no such item is present false is returned.

Definition at line 64 of file Debug.h.

References debugItems, full, level, and noDebug.


Member Data Documentation

std::vector<bool> ThePEG::Debug::debugItems [static]

A vector of switches indicating whether a given debug item is switched on or not.

The index of a debug item has no special meaning. An implementor may assume that a given number corresponds to a certain request for debug output, but cannot be sure that someone else uses that number for some other purpose.

Definition at line 47 of file Debug.h.

Referenced by debugItem().


The documentation for this class was generated from the following file:

Generated on Thu Apr 29 12:43:25 2010 for ThePEG by  doxygen 1.5.5