CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Documentation/CodingRules/ExampleClass.h

Go to the documentation of this file.
00001 #ifndef ExampleClass_H
00002 #define ExampleClass_H
00003 
00017 #include <vector>
00018 
00019 class SomeAlgorithm;
00020 
00021 
00022 class ExampleClass {
00023  public:
00025   ExampleClass();
00026 
00028   virtual ~ExampleClass();
00029 
00031   void setCount(int ticks);
00032 
00034   int count() const;
00035 
00037   void setValues(const std::vector<float>& entries);
00038 
00040   const std::vector<float>& values() const;
00041 
00043   float computeMean() const;
00044 
00045  protected:  
00046 
00047  private:
00048   int   theCount;          //< An int data member 
00049   std::vector<float> theValues; //< A vector data member
00050   SomeAlgorithm * theAlgo; //< A pointer data member
00051 
00052 };
00053 #endif // ExampleClass_H