SST/macro
stat_local_int.h
Go to the documentation of this file.
1 #ifndef STAT_LOCAL_INT_H
2 #define STAT_LOCAL_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 {
42  stat_local_int* cln = new stat_local_int;
43  clone_into(cln);
44  cln->set_id(id);
45  return cln;
46  }
47 
49  clone() const {
50  return clone_me(-1);
51  }
52 
53  protected:
54  void
55  dump(const std::string& froot);
56 
57  void
58  clone_into(stat_local_int* cln) const;
59 
60  protected:
61  int size_;
62  int value_;
63  std::vector<int> values_;
64 };
65 
66 }
67 
68 #endif // STAT_LOCAL_INT_H
stat_collector * clone() const
void dump_local_data()
After post-processing, this notifies the collector to dump data to a file.
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 reduce(stat_collector *coll)
void dump_global_data()
After post-processing, this notifies the collector to dump data to a file.
void dump(const std::string &froot)
void clone_into(stat_local_int *cln) const
std::vector< int > values_
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_local_int * clone_me(int id) const
void simulation_finished(timestamp end)
This is to notify that the statistics collector is done.
void collect(int value)
void init_factory_params(sprockit::sim_parameters *params)
void global_reduce(parallel_runtime *rt)