gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes | List of all members
Debug::SimpleFlag Class Reference

#include <debug.hh>

Inheritance diagram for Debug::SimpleFlag:
Debug::Flag

Public Member Functions

 SimpleFlag (const char *name, const char *desc)
 
bool status () const
 
 operator bool () const
 
bool operator! () const
 
void enable ()
 
void disable ()
 
void sync ()
 
- Public Member Functions inherited from Debug::Flag
 Flag (const char *name, const char *desc)
 
virtual ~Flag ()
 
std::string name () const
 
std::string desc () const
 
virtual std::vector< Flag * > kids ()
 

Static Public Member Functions

static void enableAll ()
 
static void disableAll ()
 

Protected Attributes

bool _tracing
 
bool _status
 
- Protected Attributes inherited from Debug::Flag
const char * _name
 
const char * _desc
 

Static Private Attributes

static bool _active = false
 

Detailed Description

Definition at line 60 of file debug.hh.

Constructor & Destructor Documentation

◆ SimpleFlag()

Debug::SimpleFlag::SimpleFlag ( const char *  name,
const char *  desc 
)
inline

Definition at line 68 of file debug.hh.

Member Function Documentation

◆ disable()

void Debug::SimpleFlag::disable ( )
inlinevirtual

Implements Debug::Flag.

Definition at line 77 of file debug.hh.

References Debug::Flag::sync().

◆ disableAll()

void Debug::SimpleFlag::disableAll ( )
static

Definition at line 107 of file debug.cc.

References Debug::allFlags(), and ArmISA::i.

Referenced by Trace::disable().

◆ enable()

void Debug::SimpleFlag::enable ( )
inlinevirtual

Implements Debug::Flag.

Definition at line 76 of file debug.hh.

References Debug::Flag::sync().

◆ enableAll()

void Debug::SimpleFlag::enableAll ( )
static

Definition at line 99 of file debug.cc.

References Debug::allFlags(), and ArmISA::i.

Referenced by Trace::enable().

◆ operator bool()

Debug::SimpleFlag::operator bool ( ) const
inline

Definition at line 73 of file debug.hh.

◆ operator!()

bool Debug::SimpleFlag::operator! ( ) const
inline

Definition at line 74 of file debug.hh.

◆ status()

bool Debug::SimpleFlag::status ( ) const
inline

Definition at line 72 of file debug.hh.

Referenced by dumpDebugFlags().

◆ sync()

void Debug::SimpleFlag::sync ( )
inlinevirtual

Reimplemented from Debug::Flag.

Definition at line 79 of file debug.hh.

Member Data Documentation

◆ _active

bool Debug::SimpleFlag::_active = false
staticprivate

Definition at line 62 of file debug.hh.

◆ _status

bool Debug::SimpleFlag::_status
protected

Definition at line 65 of file debug.hh.

◆ _tracing

bool Debug::SimpleFlag::_tracing
protected

Definition at line 64 of file debug.hh.


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

Generated on Mon Jun 8 2020 15:45:35 for gem5 by doxygen 1.8.13