CodingRules
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
ExampleClass::~ExampleClass
virtual ~ExampleClass()
Virtual Destructor.
Definition:
ExampleClass.cc:29
ExampleClass::theCount
int theCount
Definition:
ExampleClass.h:48
ExampleClass::count
int count() const
A simple getter.
Definition:
ExampleClass.cc:41
ExampleClass::setValues
void setValues(const std::vector< float > &entries)
Another setter.
Definition:
ExampleClass.cc:48
ExampleClass::theAlgo
SomeAlgorithm * theAlgo
Definition:
ExampleClass.h:50
SomeAlgorithm
Definition:
ExampleClass.cc:16
ExampleClass::theValues
std::vector< float > theValues
Definition:
ExampleClass.h:49
ExampleClass::values
const std::vector< float > & values() const
A getter returning a const reference.
Definition:
ExampleClass.cc:54
ExampleClass::ExampleClass
ExampleClass()
Constructor.
Definition:
ExampleClass.cc:23
ExampleClass::setCount
void setCount(int ticks)
A simple setter.
Definition:
ExampleClass.cc:35
ExampleClass::computeMean
float computeMean() const
A member function.
Definition:
ExampleClass.cc:61
ExampleClass
Definition:
ExampleClass.h:22
Generated for CMSSW Reference Manual by
1.8.16