HepPDT Reference Documentation

HepPDT

Measurement.hh

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------
00002 //
00003 // Measurement.hh
00004 // author:  Mark Fischler
00005 // ----------------------------------------------------------------------
00006 #ifndef MEASUREMENT_HH
00007 #define MEASUREMENT_HH
00008 
00009 namespace HepPDT {
00010 
00012 
00020 class Measurement {
00021 public:
00022   inline Measurement ();  
00023   inline Measurement ( double value, double sigma );
00024 
00025   inline Measurement ( const Measurement &m );
00026   inline void swap( Measurement & other );
00027   inline Measurement& operator = ( Measurement const & rhs );
00028 
00030   inline bool  operator <  ( Measurement const & other ) const;
00032   inline bool  operator == ( Measurement const & other ) const;
00033 
00034   inline double   value()  const;
00035   inline double   sigma()  const;
00036   inline operator double() const;
00037 
00038 private:  
00039   double val;
00040   double sig;
00041 
00042 };      // Measurement
00043 
00044 inline
00045 void swap( Measurement & first, Measurement & second ) { first.swap( second ); }
00046 
00047 }      // end of namespace HepPDT
00048 
00049 #include "HepPDT/Measurement.icc"
00050 
00051 #endif // end of codeguard MEASUREMENT_HH

Generated on Fri Dec 4 14:05:23 2009 for HepPDT by  doxygen 1.4.7