The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::Audience Class Reference

Class used maintain a list of sparta::Scheduleable objects; used by observation-type classes. More...

#include <Audience.hpp>

Public Member Functions

void setName (const std::string &name)
 
void release ()
 
const std::string & getName () const
 
void enroll (ScheduleableHandle ev_hand)
 
void enroll (ScheduleableHandle ev_hand, const Clock::Cycle &delay)
 
void withdraw (ScheduleableHandle ev_hand)
 
void notify ()
 
void delayedNotify (const Clock::Cycle &delay)
 

Protected Attributes

std::string name_
 
ScheduleableHandleList registry_
 

Detailed Description

Class used maintain a list of sparta::Scheduleable objects; used by observation-type classes.

Definition at line 19 of file Audience.hpp.

Member Function Documentation

◆ delayedNotify()

void sparta::Audience::delayedNotify ( const Clock::Cycle &  delay)
inline

Definition at line 71 of file Audience.hpp.

◆ enroll() [1/2]

void sparta::Audience::enroll ( ScheduleableHandle  ev_hand)
inline

Definition at line 43 of file Audience.hpp.

◆ enroll() [2/2]

void sparta::Audience::enroll ( ScheduleableHandle  ev_hand,
const Clock::Cycle &  delay 
)
inline

Definition at line 48 of file Audience.hpp.

◆ getName()

const std::string & sparta::Audience::getName ( ) const
inline

Definition at line 38 of file Audience.hpp.

◆ notify()

void sparta::Audience::notify ( )
inline

Definition at line 62 of file Audience.hpp.

◆ release()

void sparta::Audience::release ( )
inline

Definition at line 29 of file Audience.hpp.

◆ setName()

void sparta::Audience::setName ( const std::string &  name)
inline

Definition at line 25 of file Audience.hpp.

◆ withdraw()

void sparta::Audience::withdraw ( ScheduleableHandle  ev_hand)
inline

Definition at line 54 of file Audience.hpp.

Member Data Documentation

◆ name_

std::string sparta::Audience::name_
protected

Definition at line 82 of file Audience.hpp.

◆ registry_

ScheduleableHandleList sparta::Audience::registry_
protected

Definition at line 83 of file Audience.hpp.


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