2 #ifndef ThePEG_DebugItem_H 3 #define ThePEG_DebugItem_H 8 #include "ThePEG/Config/ThePEG.h" 34 DebugItem(
string itemname,
int level = 100);
45 static void setDebugItem(
string itemname,
long after = 0);
55 operator bool ()
const {
56 #ifndef ThePEG_NO_DEBUG 78 static multimap<string,DebugItem*> &
items();
84 static multimap<long,DebugItem*> &
itemtics();
90 static map<string,long> &
nametics();
static map< string, long > & nametics()
The DebugItem names registered together with the tic at which it should be turned on...
This is the main namespace within which all identifiers in ThePEG are declared.
DebugItem(string itemname, int level=100)
The only relevant constructor.
static multimap< string, DebugItem * > & items()
The DebugItem objects registered, indexed by their name.
The DebugItem class can be used to efficiently handle detailed debug options.
bool debug
Set to true if debugging requested.
static void setDebugItem(string itemname, long after=0)
Switch on all DebugItem objects matching the given string.
static long & ticker()
Counter for number of tics.
DebugItem & operator=(const DebugItem &)
The assignment operator is private and must never be called.
static void tic()
Advance one tic, opssibly switching on more debug items.
static multimap< long, DebugItem * > & itemtics()
The DebugItem objects registered, indexed by the tic at which they should be turned on...