ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/brains/Stats.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/brains/Stats.hpp (file contents):
Revision 1726 by tim, Wed Nov 10 22:50:03 2004 UTC vs.
Revision 1804 by tim, Tue Nov 30 19:58:25 2004 UTC

# Line 36 | Line 36 | namespace oopse {
36  
37   #include <string>
38  
39 + #include "math/SquareMatrix3.hpp"
40   namespace oopse {
41  
42   /**
# Line 67 | Line 68 | class Stats{
68              ENDINDEX  //internal use
69          };
70  
71 +        Stats();
72          const double& operator [](StatsIndex index) const {
73              return data_[static_cast<int>(index)];
74          }
# Line 82 | Line 84 | class Stats{
84          static std::string getUnits(StatsIndex index) {
85              return units_[static_cast<int>(index)];
86          }
87 +
88 +        Mat3x3d getTau() {
89 +            return tau_;
90 +        }
91          
92 <    private:
92 >        void setTau(const Mat3x3d& tau) {
93 >            tau_ = tau;
94 >        }
95          
96 +    private:
97 +        static void init();
98 +        static bool isInit_;
99          double data_[ENDINDEX - BEGININDEX];
100          static std::string title_[ENDINDEX - BEGININDEX];
101          static std::string units_[ENDINDEX - BEGININDEX];
102 +        Mat3x3d tau_;
103   };
104  
105   } //end namespace oopse

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines