CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ExampleClass.h
Go to the documentation of this file.
1 #ifndef ExampleClass_H
2 #define ExampleClass_H
3 
17 #include <vector>
18 
19 class SomeAlgorithm;
20 
21 
22 class ExampleClass {
23  public:
25  ExampleClass();
26 
28  virtual ~ExampleClass();
29 
31  void setCount(int ticks);
32 
34  int count() const;
35 
37  void setValues(const std::vector<float>& entries);
38 
40  const std::vector<float>& values() const;
41 
43  float computeMean() const;
44 
45  protected:
46 
47  private:
48  int theCount; //< An int data member
49  std::vector<float> theValues; //< A vector data member
50  SomeAlgorithm * theAlgo; //< A pointer data member
51 
52 };
53 #endif // ExampleClass_H
void setValues(const std::vector< float > &entries)
Another setter.
Definition: ExampleClass.cc:48
float computeMean() const
A member function.
Definition: ExampleClass.cc:61
std::vector< float > theValues
Definition: ExampleClass.h:49
int count() const
A simple getter.
Definition: ExampleClass.cc:41
ExampleClass()
Constructor.
Definition: ExampleClass.cc:23
const std::vector< float > & values() const
A getter returning a const reference.
Definition: ExampleClass.cc:54
SomeAlgorithm * theAlgo
Definition: ExampleClass.h:50
void setCount(int ticks)
A simple setter.
Definition: ExampleClass.cc:35
virtual ~ExampleClass()
Virtual Destructor.
Definition: ExampleClass.cc:29