gem5  v20.1.0.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Debug::Flag Class Referenceabstract

#include <debug.hh>

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

Public Member Functions

 Flag (const char *name, const char *desc)
 
virtual ~Flag ()
 
std::string name () const
 
std::string desc () const
 
virtual void enable ()=0
 
virtual void disable ()=0
 
virtual bool status () const =0
 
 operator bool () const
 
bool operator! () const
 

Static Public Member Functions

static void globalEnable ()
 
static void globalDisable ()
 

Protected Member Functions

virtual void sync ()
 

Protected Attributes

const char * _name
 
const char * _desc
 

Static Protected Attributes

static bool _globalEnable = false
 

Detailed Description

Definition at line 54 of file debug.hh.

Constructor & Destructor Documentation

◆ Flag()

Debug::Flag::Flag ( const char *  name,
const char *  desc 
)

Definition at line 93 of file debug.cc.

References Debug::allFlags(), Debug::allFlagsVersion, name(), and panic.

◆ ~Flag()

Debug::Flag::~Flag ( )
virtual

Definition at line 105 of file debug.cc.

Member Function Documentation

◆ desc()

std::string Debug::Flag::desc ( ) const
inline

Definition at line 69 of file debug.hh.

References _desc.

Referenced by pybind_init_debug().

◆ disable()

virtual void Debug::Flag::disable ( )
pure virtual

Implemented in Debug::CompoundFlag, and Debug::SimpleFlag.

Referenced by pybind_init_debug().

◆ enable()

virtual void Debug::Flag::enable ( )
pure virtual

Implemented in Debug::CompoundFlag, and Debug::SimpleFlag.

Referenced by pybind_init_debug().

◆ globalDisable()

void Debug::Flag::globalDisable ( )
static

Definition at line 119 of file debug.cc.

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

Referenced by Trace::disable().

◆ globalEnable()

void Debug::Flag::globalEnable ( )
static

Definition at line 111 of file debug.cc.

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

Referenced by Trace::enable().

◆ name()

std::string Debug::Flag::name ( ) const
inline

Definition at line 68 of file debug.hh.

References _name.

Referenced by Flag(), and pybind_init_debug().

◆ operator bool()

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

Definition at line 75 of file debug.hh.

References status().

◆ operator!()

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

Definition at line 76 of file debug.hh.

References status().

◆ status()

virtual bool Debug::Flag::status ( ) const
pure virtual

◆ sync()

virtual void Debug::Flag::sync ( )
inlineprotectedvirtual

Reimplemented in Debug::SimpleFlag.

Definition at line 62 of file debug.hh.

Member Data Documentation

◆ _desc

const char* Debug::Flag::_desc
protected

Definition at line 60 of file debug.hh.

Referenced by desc().

◆ _globalEnable

bool Debug::Flag::_globalEnable = false
staticprotected

Definition at line 57 of file debug.hh.

Referenced by globalDisable(), globalEnable(), and Debug::SimpleFlag::sync().

◆ _name

const char* Debug::Flag::_name
protected

Definition at line 59 of file debug.hh.

Referenced by name().


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

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