gem5  v20.1.0.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sc_gem5::Event Class Reference

#include <event.hh>

Public Member Functions

 Event (sc_core::sc_event *_sc_event, bool internal=false)
 
 Event (sc_core::sc_event *_sc_event, const char *_basename, bool internal=false)
 
 ~Event ()
 
sc_core::sc_eventsc_event ()
 
const std::string & name () const
 
const std::string & basename () const
 
bool inHierarchy () const
 
sc_core::sc_objectgetParentObject () const
 
void notify (StaticSensitivities &senses)
 
void notify (DynamicSensitivities &senses)
 
void notify ()
 
void notify (const sc_core::sc_time &t)
 
void notify (double d, sc_core::sc_time_unit &u)
 
void notifyDelayed (const sc_core::sc_time &t)
 
void cancel ()
 
bool triggered () const
 
uint64_t triggeredStamp () const
 
void addSensitivity (StaticSensitivity *s) const
 
void delSensitivity (StaticSensitivity *s) const
 
void addSensitivity (DynamicSensitivity *s) const
 
void delSensitivity (DynamicSensitivity *s) const
 
void clearParent ()
 

Static Public Member Functions

static EventgetFromScEvent (sc_core::sc_event *e)
 
static const EventgetFromScEvent (const sc_core::sc_event *e)
 

Private Attributes

sc_core::sc_event_sc_event
 
std::string _basename
 
std::string _name
 
bool _inHierarchy
 
sc_core::sc_objectparent
 
ScEvent delayedNotify
 
uint64_t _triggeredStamp
 
StaticSensitivities staticSenseMethod
 
StaticSensitivities staticSenseThread
 
DynamicSensitivities dynamicSenseMethod
 
DynamicSensitivities dynamicSenseThread
 

Detailed Description

Definition at line 58 of file event.hh.

Constructor & Destructor Documentation

◆ Event() [1/2]

Event::Event ( sc_core::sc_event _sc_event,
bool  internal = false 
)

Definition at line 44 of file event.cc.

◆ Event() [2/2]

Event::Event ( sc_core::sc_event _sc_event,
const char *  _basename,
bool  internal = false 
)

Definition at line 48 of file event.cc.

References notify().

◆ ~Event()

Event::~Event ( )

Member Function Documentation

◆ addSensitivity() [1/2]

void sc_gem5::Event::addSensitivity ( DynamicSensitivity s) const
inline

Definition at line 123 of file event.hh.

References dynamicSenseMethod, dynamicSenseThread, and ArmISA::s.

◆ addSensitivity() [2/2]

void sc_gem5::Event::addSensitivity ( StaticSensitivity s) const
inline

◆ basename()

const std::string & Event::basename ( ) const

Definition at line 120 of file event.cc.

References _basename.

Referenced by sc_core::sc_event::basename().

◆ cancel()

void Event::cancel ( )

◆ clearParent()

void Event::clearParent ( )

◆ delSensitivity() [1/2]

void sc_gem5::Event::delSensitivity ( DynamicSensitivity s) const
inline

Definition at line 129 of file event.hh.

References dynamicSenseMethod, dynamicSenseThread, ArmISA::s, and ArmISA::t.

◆ delSensitivity() [2/2]

void sc_gem5::Event::delSensitivity ( StaticSensitivity s) const
inline

◆ getFromScEvent() [1/2]

static const Event* sc_gem5::Event::getFromScEvent ( const sc_core::sc_event e)
inlinestatic

Definition at line 97 of file event.hh.

References ArmISA::e.

◆ getFromScEvent() [2/2]

static Event* sc_gem5::Event::getFromScEvent ( sc_core::sc_event e)
inlinestatic

◆ getParentObject()

sc_core::sc_object * Event::getParentObject ( ) const

Definition at line 132 of file event.cc.

References parent.

Referenced by sc_core::sc_event::get_parent_object().

◆ inHierarchy()

bool Event::inHierarchy ( ) const

Definition at line 126 of file event.cc.

References _inHierarchy.

Referenced by sc_core::sc_event::in_hierarchy(), and ~Event().

◆ name()

const std::string & Event::name ( ) const

Definition at line 114 of file event.cc.

References _name.

Referenced by sc_core::sc_event::name().

◆ notify() [1/5]

void Event::notify ( )

◆ notify() [2/5]

void Event::notify ( const sc_core::sc_time t)

◆ notify() [3/5]

void sc_gem5::Event::notify ( double  d,
sc_core::sc_time_unit u 
)
inline

Definition at line 80 of file event.hh.

References ArmISA::d, notify(), and ArmISA::u.

◆ notify() [4/5]

void Event::notify ( DynamicSensitivities senses)

Definition at line 145 of file event.cc.

References notify().

◆ notify() [5/5]

void Event::notify ( StaticSensitivities senses)

Definition at line 138 of file event.cc.

References ArmISA::s.

Referenced by sc_core::sc_event::notify().

◆ notifyDelayed()

void Event::notifyDelayed ( const sc_core::sc_time t)

◆ sc_event()

sc_core::sc_event* sc_gem5::Event::sc_event ( )
inline

Definition at line 67 of file event.hh.

References _sc_event.

Referenced by clearParent().

◆ triggered()

bool Event::triggered ( ) const

◆ triggeredStamp()

uint64_t sc_gem5::Event::triggeredStamp ( ) const
inline

Definition at line 88 of file event.hh.

References _triggeredStamp.

Member Data Documentation

◆ _basename

std::string sc_gem5::Event::_basename
private

Definition at line 146 of file event.hh.

Referenced by basename().

◆ _inHierarchy

bool sc_gem5::Event::_inHierarchy
private

Definition at line 148 of file event.hh.

Referenced by inHierarchy().

◆ _name

std::string sc_gem5::Event::_name
private

Definition at line 147 of file event.hh.

Referenced by name(), and ~Event().

◆ _sc_event

sc_core::sc_event* sc_gem5::Event::_sc_event
private

Definition at line 144 of file event.hh.

Referenced by sc_event(), and ~Event().

◆ _triggeredStamp

uint64_t sc_gem5::Event::_triggeredStamp
mutableprivate

Definition at line 153 of file event.hh.

Referenced by notify(), triggered(), and triggeredStamp().

◆ delayedNotify

ScEvent sc_gem5::Event::delayedNotify
private

Definition at line 152 of file event.hh.

Referenced by cancel(), notify(), notifyDelayed(), and ~Event().

◆ dynamicSenseMethod

DynamicSensitivities sc_gem5::Event::dynamicSenseMethod
mutableprivate

Definition at line 157 of file event.hh.

Referenced by addSensitivity(), delSensitivity(), and notify().

◆ dynamicSenseThread

DynamicSensitivities sc_gem5::Event::dynamicSenseThread
mutableprivate

Definition at line 158 of file event.hh.

Referenced by addSensitivity(), delSensitivity(), and notify().

◆ parent

sc_core::sc_object* sc_gem5::Event::parent
private

Definition at line 150 of file event.hh.

Referenced by clearParent(), getParentObject(), and ~Event().

◆ staticSenseMethod

StaticSensitivities sc_gem5::Event::staticSenseMethod
mutableprivate

Definition at line 155 of file event.hh.

Referenced by addSensitivity(), delSensitivity(), and notify().

◆ staticSenseThread

StaticSensitivities sc_gem5::Event::staticSenseThread
mutableprivate

Definition at line 156 of file event.hh.

Referenced by addSensitivity(), delSensitivity(), and notify().


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

Generated on Wed Sep 30 2020 14:03:10 for gem5 by doxygen 1.8.17