Go to the documentation of this file.
42 #ifndef __BASE_DEBUG_HH__
43 #define __BASE_DEBUG_HH__
45 #include <initializer_list>
73 virtual bool status()
const = 0;
75 operator bool()
const {
return status(); }
107 template<
typename... Args>
109 std::initializer_list<Flag *> flags)
119 bool status()
const override;
144 # define DTRACE(x) (Debug::x)
146 # define DTRACE(x) (false)
150 #endif // __BASE_DEBUG_HH__
static bool _globalEnable
CompoundFlag(const char *name, const char *desc, std::initializer_list< Flag * > flags)
Flag * findFlag(const std::string &name)
Flag(const char *name, const char *desc)
const std::vector< Flag * > & kids() const
std::vector< Flag * > _kids
bool status() const override
void setDebugFlag(const char *string)
std::map< std::string, Flag * > FlagsMap
static void globalEnable()
bool changeFlag(const char *s, bool value)
static void globalDisable()
const std::string & name()
void clearDebugFlag(const char *string)
bool status() const override
virtual bool status() const =0
SimpleFlag(const char *name, const char *desc)
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17