gem5 v24.0.0.0
Loading...
Searching...
No Matches
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]

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

Definition at line 43 of file event.cc.

◆ Event() [2/2]

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

Definition at line 47 of file event.cc.

References notify().

◆ ~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, and dynamicSenseThread.

◆ addSensitivity() [2/2]

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

◆ basename()

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

Definition at line 119 of file event.cc.

References _basename.

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

◆ cancel()

void sc_gem5::Event::cancel ( )

◆ clearParent()

void sc_gem5::Event::clearParent ( )

◆ delSensitivity() [1/2]

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

Definition at line 129 of file event.hh.

References dynamicSenseMethod, and dynamicSenseThread.

◆ 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.

◆ getFromScEvent() [2/2]

◆ getParentObject()

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

Definition at line 131 of file event.cc.

References parent.

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

◆ inHierarchy()

bool sc_gem5::Event::inHierarchy ( ) const

Definition at line 125 of file event.cc.

References _inHierarchy.

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

◆ name()

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

Definition at line 113 of file event.cc.

References _name.

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

◆ notify() [1/5]

◆ notify() [2/5]

◆ 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 notify().

◆ notify() [4/5]

void sc_gem5::Event::notify ( DynamicSensitivities & senses)

Definition at line 144 of file event.cc.

References notify().

◆ notify() [5/5]

void sc_gem5::Event::notify ( StaticSensitivities & senses)

◆ notifyDelayed()

◆ 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 sc_gem5::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(), 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 Tue Jun 18 2024 16:24:55 for gem5 by doxygen 1.11.0