SST/macro
stat_global_int.h
Go to the documentation of this file.
1 #ifndef STAT_GLOBAL_INT_H
2 #define STAT_GLOBAL_INT_H
3 
5 #include <vector>
6 
7 namespace sstmac
8 {
9 
11  public stat_collector
12 {
13  public:
15 
16  void
17  collect(int value);
18 
19  void
21 
22  void
24 
25  void
27 
28  void
30 
31  void
32  clear();
33 
34  void
35  reduce(stat_collector *coll);
36 
37  void
38  init_factory_params(sprockit::sim_parameters *params);
39 
41  clone_me(int id) const {
43  clone_into(cln);
44  cln->set_id(id);
45  cln->set_label(label_);
46  return cln;
47  }
48 
50  clone() const {
51  return clone_me(-1);
52  }
53 
54  void
55  set_label(std::string label) {
56  label_ = label;
57  }
58 
59  protected:
60  void
61  dump(const std::string& froot);
62 
63  void
64  clone_into(stat_global_int* cln) const;
65 
66  protected:
67  int value_;
68  std::string label_;
69 };
70 
71 }
72 
73 #endif // STAT_GLOBAL_INT_H
void simulation_finished(timestamp end)
This is to notify that the statistics collector is done.
void global_reduce(parallel_runtime *rt)
void reduce(stat_collector *coll)
A type of logger that collects some kind of statistic and outputs to a file during or at the end of a...
virtual void set_id(int id)
void dump_global_data()
After post-processing, this notifies the collector to dump data to a file.
stat_collector * clone() const
A basic container for time (subject to future transplant).
Definition: timestamp.h:29
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
stat_global_int * clone_me(int id) const
void dump_local_data()
After post-processing, this notifies the collector to dump data to a file.
void init_factory_params(sprockit::sim_parameters *params)
void collect(int value)
void dump(const std::string &froot)
void clone_into(stat_global_int *cln) const
void set_label(std::string label)