90 |
|
}; |
91 |
|
|
92 |
|
Stats(); |
93 |
< |
const double& operator [](int index) const { |
93 |
> |
const RealType& operator [](int index) const { |
94 |
|
assert(index >=0 && index < ENDINDEX); |
95 |
|
return data_[index]; |
96 |
|
} |
97 |
|
|
98 |
< |
double& operator [](int index){ |
98 |
> |
RealType& operator [](int index){ |
99 |
|
assert(index >=0 && index < ENDINDEX); |
100 |
|
return data_[index]; |
101 |
|
} |
124 |
|
private: |
125 |
|
static void init(); |
126 |
|
static bool isInit_; |
127 |
< |
double data_[ENDINDEX - BEGININDEX]; |
127 |
> |
RealType data_[ENDINDEX - BEGININDEX]; |
128 |
|
static std::string title_[ENDINDEX - BEGININDEX]; |
129 |
|
static std::string units_[ENDINDEX - BEGININDEX]; |
130 |
|
Mat3x3d tau_; |