gem5  v21.1.0.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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. More...
 
- 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. More...
 
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 92 of file debug.hh.

Constructor & Destructor Documentation

◆ SimpleFlag()

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

Definition at line 103 of file debug.hh.

Member Function Documentation

◆ disable()

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

Implements gem5::debug::Flag.

Definition at line 108 of file debug.hh.

References _enabled, and sync().

Referenced by TEST().

◆ enable()

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

Implements gem5::debug::Flag.

Definition at line 107 of file debug.hh.

References _enabled, and sync().

Referenced by 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 116 of file debug.hh.

References _isFormat.

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

◆ sync()

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

Reimplemented from gem5::debug::Flag.

Definition at line 100 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 98 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 96 of file debug.hh.

Referenced by isFormat().


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

Generated on Tue Sep 21 2021 12:28:59 for gem5 by doxygen 1.8.17