CARMA C++
ScratchAverages.h
1 #ifndef CARMA_MONIOR_SCRATCHAVERAGES_H
2 #define CARMA_MONIOR_SCRATCHAVERAGES_H
3 
6 
7 
8 namespace carma {
9 namespace monitor {
10 
11 
12 struct ScratchAverages {
13  MonitorPointAverageNumeric numericAccum;
14  MonitorPointAverageBool boolAccum;
15  MonitorPointAverageComplex complexAccum;
16  MonitorPointAverageEnum enumAccum;
17 
18  ScratchAverages( );
19 };
20 
21 
22 } // namespace carma::util
23 } // namespace carma
24 
25 
26 inline
27 carma::monitor::ScratchAverages::ScratchAverages( ) :
28 numericAccum( 0.0, -(HUGE_VAL), (HUGE_VAL) ),
29 boolAccum( 1, 0, 1 ),
30 complexAccum( ::std::complex< float >( 0.0, 0.0 ),
31  ::std::complex< float >( NAN, NAN ),
32  ::std::complex< float >( 0.0, 0.0 ) ),
33 enumAccum( 0, 0, 0 )
34 {
35 }
36 
37 
38 #endif
Classes that provide the pecializations of monitor points and sense poiints for different datatypes...
Abstract base class for all monitor points that can be represented as a number.