gem5  v20.1.0.0
Public Member Functions | Protected Member Functions | Protected 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 override
 
void enable () override
 
void disable () override
 
- Public Member Functions inherited from Debug::Flag
 Flag (const char *name, const char *desc)
 
virtual ~Flag ()
 
std::string name () const
 
std::string desc () const
 
 operator bool () const
 
bool operator! () const
 

Protected Member Functions

void sync () override
 

Protected Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from Debug::Flag
static void globalEnable ()
 
static void globalDisable ()
 
- Static Protected Attributes inherited from Debug::Flag
static bool _globalEnable = false
 

Detailed Description

Definition at line 82 of file debug.hh.

Constructor & Destructor Documentation

◆ SimpleFlag()

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

Definition at line 91 of file debug.hh.

Member Function Documentation

◆ disable()

void Debug::SimpleFlag::disable ( )
inlineoverridevirtual

Implements Debug::Flag.

Definition at line 98 of file debug.hh.

References _status, and sync().

◆ enable()

void Debug::SimpleFlag::enable ( )
inlineoverridevirtual

Implements Debug::Flag.

Definition at line 97 of file debug.hh.

References _status, and sync().

◆ status()

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

Implements Debug::Flag.

Definition at line 95 of file debug.hh.

References _tracing.

◆ sync()

void Debug::SimpleFlag::sync ( )
inlineoverrideprotectedvirtual

Reimplemented from Debug::Flag.

Definition at line 88 of file debug.hh.

References Debug::Flag::_globalEnable, _status, and _tracing.

Referenced by disable(), and enable().

Member Data Documentation

◆ _status

bool Debug::SimpleFlag::_status
protected

Definition at line 86 of file debug.hh.

Referenced by disable(), enable(), and sync().

◆ _tracing

bool Debug::SimpleFlag::_tracing
protected

Definition at line 85 of file debug.hh.

Referenced by status(), and sync().


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

Generated on Wed Sep 30 2020 14:02:39 for gem5 by doxygen 1.8.17