SST/macro
|
#include <driver.h>
Public Member Functions | |
Simulation () | |
~Simulation () | |
double | wallTime () const |
double | simulatedTime () const |
sim_stats * | stats () |
void | finalize () |
void | waitFork () |
pid_t | pid () const |
void | setResults (double *results, int numResults) |
void | allocateResults (int nresults) |
void | setStats (const sim_stats &stats) |
double * | results () const |
bool | complete () const |
void | setComplete (bool flag) |
int | numResults () const |
void | setLabel (int idx) |
int | label () const |
void | waitMPIScan () |
Private Member Functions | |
void | setPid (pid_t pid) |
void | setPipe (pipe_t p) |
int | readPipe () const |
int | writePipe () const |
void | setParameters (sprockit::sim_parameters *params) |
Private Attributes | |
sprockit::sim_parameters | params_ |
sim_stats | stats_ |
char | label_ [256] |
int | label_offset_ |
pid_t | pid_ |
pipe_t | pfd_ |
double * | results_ |
bool | complete_ |
int | idx_ |
bool | allocated_results_ |
Friends | |
class | SimulationQueue |
|
inline |
Definition at line 25 of file driver.h.
References ~Simulation().
sstmac::Simulation::~Simulation | ( | ) |
Referenced by Simulation().
|
inline |
Definition at line 69 of file driver.h.
References allocated_results_, sim_stats::numResults, results_, and stats_.
Referenced by sstmac::SimulationQueue::buildUp(), and sstmac::SimulationQueue::workerID().
|
inline |
void sstmac::Simulation::finalize | ( | ) |
Referenced by sstmac::SimulationQueue::buildUp(), and stats().
|
inline |
|
inline |
Definition at line 101 of file driver.h.
References sim_stats::numResults, and stats_.
Referenced by setResults().
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
private |
Referenced by writePipe().
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 59 of file driver.h.
References allocated_results_, sim_stats::numResults, numResults(), results(), results_, and stats_.
|
inline |
|
inline |
Definition at line 40 of file driver.h.
References sim_stats::simulatedTime, and stats_.
|
inline |
Definition at line 45 of file driver.h.
References finalize(), stats_, and waitFork().
Referenced by sstmac::SimulationQueue::buildUp(), and setStats().
void sstmac::Simulation::waitFork | ( | ) |
Referenced by stats().
void sstmac::Simulation::waitMPIScan | ( | ) |
|
inline |
Definition at line 35 of file driver.h.
References stats_, and sim_stats::wallTime.
|
inlineprivate |
Definition at line 133 of file driver.h.
References pfd_, and setParameters().
|
friend |
|
private |
Definition at line 149 of file driver.h.
Referenced by allocateResults(), and setResults().
|
private |
Definition at line 147 of file driver.h.
Referenced by complete(), and setComplete().
|
private |
Definition at line 148 of file driver.h.
Referenced by label(), and setLabel().
|
private |
|
private |
Definition at line 145 of file driver.h.
Referenced by readPipe(), setPipe(), and writePipe().
|
private |
|
private |
Definition at line 146 of file driver.h.
Referenced by allocateResults(), results(), and setResults().
|
private |
Definition at line 141 of file driver.h.
Referenced by allocateResults(), numResults(), setResults(), setStats(), simulatedTime(), stats(), and wallTime().