• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

MLAPI_CompObject.h

Go to the documentation of this file.
00001 #ifndef MLAPI_COMPOBJECT_H
00002 #define MLAPI_COMPOBJECT_H
00003 
00013 /* ******************************************************************** */
00014 /* See the file COPYRIGHT for a complete copyright notice, contact      */
00015 /* person and disclaimer.                                               */        
00016 /* ******************************************************************** */
00017 
00018 namespace MLAPI {
00019 
00031 class CompObject {
00032 
00033 public:
00034 
00036   CompObject()
00037   {
00038     Flops_ = 0.0;
00039   }
00040 
00042   ~CompObject() {};
00043 
00045   inline double GetFlops() const
00046   {
00047     return(Flops_);
00048   }
00049 
00051   inline void SetFlops(double Flops) const
00052   {
00053     Flops_ = Flops;
00054   }
00055 
00057   inline void UpdateFlops(double Flops) const
00058   {
00059     Flops_ += Flops;
00060   }
00061 
00062 private:
00063 
00064   mutable double Flops_;
00065 
00066 }; // class CompObject
00067 
00068 } // namespace MLPI
00069 
00070 #endif // MLAPI_COMPOBJECT_H