SST/macro
stat_local_double.h
Go to the documentation of this file.
1 #ifndef STAT_LOCAL_DOUBLE_H
2 #define STAT_LOCAL_DOUBLE_H
3 
5 #include <vector>
6 
7 namespace sstmac
8 {
9 
11  public stat_collector
12 {
13  public:
15 
16  void
17  collect(double 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  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_double* cln) const;
59 
60  protected:
61  int size_;
62  double value_;
63  std::vector<double> values_;
64 };
65 
66 }
67 
68 #endif // STAT_LOCAL_DOUBLE_H
void reduce(stat_collector *coll)
void dump(const std::string &froot)
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 init_factory_params(sprockit::sim_parameters *params)
void dump_global_data()
After post-processing, this notifies the collector to dump data to a file.
void dump_local_data()
After post-processing, this notifies the collector to dump data to a file.
stat_local_double * clone_me(int id) const
void simulation_finished(timestamp end)
This is to notify that the statistics collector is done.
A basic container for time (subject to future transplant).
Definition: timestamp.h:29
std::vector< double > values_
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
void global_reduce(parallel_runtime *rt)
void collect(double value)
stat_collector * clone() const
void clone_into(stat_local_double *cln) const