gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private 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
 
 operator bool () const
 
bool operator! () const
 
void enable ()
 
void disable ()
 
void sync ()
 
- Public Member Functions inherited from Debug::Flag
 Flag (const char *name, const char *desc)
 
virtual ~Flag ()
 
std::string name () const
 
std::string desc () const
 
virtual std::vector< Flag * > kids ()
 

Static Public Member Functions

static void enableAll ()
 
static void disableAll ()
 

Protected Attributes

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

Static Private Attributes

static bool _active = false
 

Detailed Description

Definition at line 62 of file debug.hh.

Constructor & Destructor Documentation

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

Definition at line 70 of file debug.hh.

Member Function Documentation

void Debug::SimpleFlag::disable ( )
inlinevirtual

Implements Debug::Flag.

Definition at line 79 of file debug.hh.

References _status, and sync().

void Debug::SimpleFlag::disableAll ( )
static

Definition at line 109 of file debug.cc.

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

Referenced by Trace::disable().

void Debug::SimpleFlag::enable ( )
inlinevirtual

Implements Debug::Flag.

Definition at line 78 of file debug.hh.

References _status, and sync().

void Debug::SimpleFlag::enableAll ( )
static

Definition at line 101 of file debug.cc.

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

Referenced by Trace::enable().

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

Definition at line 75 of file debug.hh.

References _tracing.

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

Definition at line 76 of file debug.hh.

References _tracing.

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

Definition at line 74 of file debug.hh.

References _tracing.

Referenced by dumpDebugFlags().

void Debug::SimpleFlag::sync ( )
inlinevirtual

Reimplemented from Debug::Flag.

Definition at line 81 of file debug.hh.

References _active, _status, and _tracing.

Referenced by disable(), and enable().

Member Data Documentation

bool Debug::SimpleFlag::_active = false
staticprivate

Definition at line 64 of file debug.hh.

Referenced by disableAll(), enableAll(), and sync().

bool Debug::SimpleFlag::_status
protected

Definition at line 67 of file debug.hh.

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

bool Debug::SimpleFlag::_tracing
protected

Definition at line 66 of file debug.hh.

Referenced by operator bool(), operator!(), status(), and sync().


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

Generated on Fri Jun 9 2017 13:04:30 for gem5 by doxygen 1.8.6