analysisBLT.h
Go to the documentation of this file.
1 /*
2  @copyright Russell Standish 2000-2013
3  @author Russell Standish
4  This file is part of EcoLab
5 
6  Open source licensed under the MIT license. See LICENSE for details.
7 */
8 
12 #ifndef ANALYSISBLT_H
13 #define ANALYSISBLT_H
14 #include "arrays.h"
15 
16 namespace ecolab
17 {
18 
19 #ifdef BLT
20 #if BLT_MAJOR_VERSION >= 3
21 #include <bltVector.h>
22 #endif
23 
24 class histogram_data
25 {
26  Blt_Vector *x, *y;
27  string name; //store namespace name here for later reference
28  CLASSDESC_ACCESS(histogram_data);
29 public:
30  HistoStats data;
32  unsigned& nbins;
33  bool& xlogison;
34  float &min, &max;
35  histogram_data(): nbins(data.nbins), xlogison(data.logbins),
36  min(data.min), max(data.max) {}
37  void init_BLT_vects(TCL_args args);
38  void add_data(TCL_args args);
39  void clear();
40  void reread();
41  void outputdat(TCL_args args);
42 };
43 
44 #ifdef _CLASSDESC
45 #pragma omit pack histogram_data
46 #pragma omit unpack histogram_data
47 #endif
48 
49 #endif
50 
51 }
52 
53 #include "analysisBLT.cd"
54 #endif
enable_if< one_is_expression< E1, E2 >, binop< E1, E2, Max< E1, E2 > > >::T max(const E1 &e1, const E2 &e2)
Definition: arrays.h:1079
enable_if< one_is_expression< E1, E2 >, binop< E1, E2, Min< E1, E2 > > >::T min(const E1 &e1, const E2 &e2)
Definition: arrays.h:1099
dynamic array class
#define CLASSDESC_ACCESS(type)
add friend statements for each accessor function
Definition: classdesc_access.h:36
_OPENMP
Definition: accessor.h:16