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

#include <debug.hh>

Inheritance diagram for Debug::Flag:
Debug::AllFlags 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 std::vector< Flag * > kids ()
 
virtual void enable ()=0
 
virtual void disable ()=0
 
virtual void sync ()
 

Protected Attributes

const char * _name
 
const char * _desc
 

Detailed Description

Definition at line 41 of file debug.hh.

Constructor & Destructor Documentation

◆ Flag()

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

Definition at line 81 of file debug.cc.

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

◆ ~Flag()

Debug::Flag::~Flag ( )
virtual

Definition at line 93 of file debug.cc.

Member Function Documentation

◆ desc()

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

Definition at line 52 of file debug.hh.

References _desc.

Referenced by pybind_init_debug().

◆ disable()

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

◆ enable()

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

◆ kids()

virtual std::vector<Flag *> Debug::Flag::kids ( )
inlinevirtual

Reimplemented in Debug::CompoundFlag.

Definition at line 53 of file debug.hh.

References disable(), and enable().

Referenced by pybind_init_debug().

◆ name()

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

Definition at line 51 of file debug.hh.

References _name.

Referenced by dumpDebugFlags(), and pybind_init_debug().

◆ sync()

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

Reimplemented in Debug::SimpleFlag.

Definition at line 57 of file debug.hh.

Referenced by Debug::SimpleFlag::disable(), Debug::SimpleFlag::enable(), and pybind_init_debug().

Member Data Documentation

◆ _desc

const char* Debug::Flag::_desc
protected

Definition at line 45 of file debug.hh.

Referenced by desc().

◆ _name

const char* Debug::Flag::_name
protected

Definition at line 44 of file debug.hh.

Referenced by name().


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

Generated on Fri Jul 3 2020 15:53:26 for gem5 by doxygen 1.8.13