gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::debug::SimpleFlag Class Reference

#include <debug.hh>

Inheritance diagram for gem5::debug::SimpleFlag:
gem5::debug::Flag

Public Member Functions

 SimpleFlag (const char *name, const char *desc, bool is_format=false)
 
void enable () override
 
void disable () override
 
bool isFormat () const
 Checks whether this flag is a conventional debug flag, or a flag that modifies the way debug information is printed.
 
- Public Member Functions inherited from gem5::debug::Flag
 Flag (const char *name, const char *desc)
 
virtual ~Flag ()
 
std::string name () const
 
std::string desc () const
 
bool tracing () const
 
 operator bool () const
 

Protected Member Functions

void sync () override
 

Protected Attributes

const bool _isFormat = false
 Whether this flag changes debug formatting.
 
bool _enabled = false
 
- Protected Attributes inherited from gem5::debug::Flag
bool _tracing = false
 
const char * _name
 
const char * _desc
 

Additional Inherited Members

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

Detailed Description

Definition at line 91 of file debug.hh.

Constructor & Destructor Documentation

◆ SimpleFlag()

gem5::debug::SimpleFlag::SimpleFlag ( const char * name,
const char * desc,
bool is_format = false )

Member Function Documentation

◆ disable()

void gem5::debug::SimpleFlag::disable ( )
inlineoverridevirtual

Implements gem5::debug::Flag.

Definition at line 105 of file debug.hh.

References _enabled, and sync().

Referenced by TEST(), TEST(), and TEST().

◆ enable()

void gem5::debug::SimpleFlag::enable ( )
inlineoverridevirtual

Implements gem5::debug::Flag.

Definition at line 104 of file debug.hh.

References _enabled, and sync().

Referenced by TEST(), TEST(), TEST(), and TEST().

◆ isFormat()

bool gem5::debug::SimpleFlag::isFormat ( ) const
inline

Checks whether this flag is a conventional debug flag, or a flag that modifies the way debug information is printed.

Returns
True if this flag is a debug-formatting flag.

Definition at line 113 of file debug.hh.

References _isFormat.

Referenced by gem5::pybind_init_debug(), SimpleFlag(), and TEST().

◆ sync()

void gem5::debug::SimpleFlag::sync ( )
inlineoverrideprotectedvirtual

Reimplemented from gem5::debug::Flag.

Definition at line 99 of file debug.hh.

References _enabled, gem5::debug::Flag::_globalEnable, and gem5::debug::Flag::_tracing.

Referenced by disable(), and enable().

Member Data Documentation

◆ _enabled

bool gem5::debug::SimpleFlag::_enabled = false
protected

Definition at line 97 of file debug.hh.

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

◆ _isFormat

const bool gem5::debug::SimpleFlag::_isFormat = false
protected

Whether this flag changes debug formatting.

Definition at line 95 of file debug.hh.

Referenced by isFormat().


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

Generated on Tue Jun 18 2024 16:24:19 for gem5 by doxygen 1.11.0