SST/macro
Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
sstmac::sw::ftq_calendar Class Reference

#include <ftq.h>

Inheritance diagram for sstmac::sw::ftq_calendar:
Inheritance graph
Collaboration diagram for sstmac::sw::ftq_calendar:
Collaboration graph

Public Member Functions

 ftq_calendar ()
 
void init (long nticks_per_epoch)
 
virtual ~ftq_calendar ()
 
void collect (int event_typeid, int aid, int tid, long ticks_begin, long num_ticks)
 
app_ftq_calendarget_calendar (int aid) const
 
void register_app (int aid, const std::string &appname)
 
void simulation_finished (timestamp end)
 This is to notify that the statistics collector is done. More...
 
void dump_local_data ()
 After post-processing, this notifies the collector to dump data to a file. More...
 
void dump_global_data ()
 After post-processing, this notifies the collector to dump data to a file. More...
 
void clear ()
 
void reduce (stat_collector *coll)
 
void global_reduce (parallel_runtime *rt)
 
virtual void init_factory_params (sprockit::sim_parameters *params)
 
ftq_calendarclone_me (int id) const
 
stat_collectorclone () const
 
virtual std::string to_string () const
 
- Public Member Functions inherited from sstmac::stat_collector
virtual ~stat_collector ()
 
bool registered () const
 
virtual void set_id (int id)
 
int id () const
 
void set_registered (bool reg)
 
void add_suffix (const std::string &suffix)
 
std::string fileroot () const
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 
virtual void finalize_init ()
 

Protected Member Functions

void clone_into (ftq_calendar *cln) const
 
- Protected Member Functions inherited from sstmac::stat_collector
 stat_collector ()
 
void clone_into (stat_collector *cln) const
 

Private Attributes

long num_ticks_epoch_
 

Static Private Attributes

static spkt_unordered_map< int, app_ftq_calendar * > calendars_
 

Additional Inherited Members

- Static Public Member Functions inherited from sstmac::stat_collector
static stat_collectoroptional_build (sprockit::sim_parameters *params, const std::string &ns, const std::string &deflt, const char *suffix)
 
- Static Protected Member Functions inherited from sstmac::stat_collector
static bool check_open (std::fstream &myfile, const std::string &fname, std::ios::openmode flags=std::ios::out)
 Check to see if the file is open. More...
 
- Protected Attributes inherited from sstmac::stat_collector
bool registered_
 
int id_
 
std::string fileroot_
 

Detailed Description

Definition at line 154 of file ftq.h.

Constructor & Destructor Documentation

sstmac::sw::ftq_calendar::ftq_calendar ( )
virtual sstmac::sw::ftq_calendar::~ftq_calendar ( )
virtual

Member Function Documentation

void sstmac::sw::ftq_calendar::clear ( )
virtual
stat_collector* sstmac::sw::ftq_calendar::clone ( ) const
inlinevirtual

Implements sstmac::stat_collector.

Definition at line 198 of file ftq.h.

void sstmac::sw::ftq_calendar::clone_into ( ftq_calendar cln) const
protected
ftq_calendar* sstmac::sw::ftq_calendar::clone_me ( int  id) const
inline

Definition at line 190 of file ftq.h.

References sstmac::stat_collector::set_id().

Here is the call graph for this function:

void sstmac::sw::ftq_calendar::collect ( int  event_typeid,
int  aid,
int  tid,
long  ticks_begin,
long  num_ticks 
)
void sstmac::sw::ftq_calendar::dump_global_data ( )
virtual

After post-processing, this notifies the collector to dump data to a file.

Parameters
nameThe root of the filename to dump to

Implements sstmac::stat_collector.

void sstmac::sw::ftq_calendar::dump_local_data ( )
virtual

After post-processing, this notifies the collector to dump data to a file.

Parameters
nameThe root of the filename to dump to

Implements sstmac::stat_collector.

app_ftq_calendar* sstmac::sw::ftq_calendar::get_calendar ( int  aid) const
void sstmac::sw::ftq_calendar::global_reduce ( parallel_runtime rt)
virtual
void sstmac::sw::ftq_calendar::init ( long  nticks_per_epoch)
virtual void sstmac::sw::ftq_calendar::init_factory_params ( sprockit::sim_parameters *  params)
virtual

Reimplemented from sstmac::stat_collector.

void sstmac::sw::ftq_calendar::reduce ( stat_collector coll)
virtual
void sstmac::sw::ftq_calendar::register_app ( int  aid,
const std::string &  appname 
)
void sstmac::sw::ftq_calendar::simulation_finished ( timestamp  end)
virtual

This is to notify that the statistics collector is done.

Do any necessary data post-processing, but do NOT dump to file

Implements sstmac::stat_collector.

virtual std::string sstmac::sw::ftq_calendar::to_string ( ) const
inlinevirtual

Reimplemented from sstmac::stat_collector.

Definition at line 203 of file ftq.h.

Member Data Documentation

spkt_unordered_map<int, app_ftq_calendar*> sstmac::sw::ftq_calendar::calendars_
staticprivate

Definition at line 212 of file ftq.h.

long sstmac::sw::ftq_calendar::num_ticks_epoch_
private

Definition at line 214 of file ftq.h.


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