Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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::setValues
void setValues(const std::vector< float > &entries)
Another setter.
Definition:
ExampleClass.cc:48
ExampleClass::computeMean
float computeMean() const
A member function.
Definition:
ExampleClass.cc:61
ExampleClass::theValues
std::vector< float > theValues
Definition:
ExampleClass.h:49
ExampleClass::count
int count() const
A simple getter.
Definition:
ExampleClass.cc:41
ExampleClass::theCount
int theCount
Definition:
ExampleClass.h:48
python.tagInventory.entries
list entries
Definition:
tagInventory.py:532
ExampleClass::ExampleClass
ExampleClass()
Constructor.
Definition:
ExampleClass.cc:23
ExampleClass::values
const std::vector< float > & values() const
A getter returning a const reference.
Definition:
ExampleClass.cc:54
ExampleClass::theAlgo
SomeAlgorithm * theAlgo
Definition:
ExampleClass.h:50
prof2calltree.ticks
tuple ticks
Definition:
prof2calltree.py:120
ExampleClass::setCount
void setCount(int ticks)
A simple setter.
Definition:
ExampleClass.cc:35
ExampleClass::~ExampleClass
virtual ~ExampleClass()
Virtual Destructor.
Definition:
ExampleClass.cc:29
SomeAlgorithm
Definition:
ExampleClass.cc:16
ExampleClass
Definition:
ExampleClass.h:22
Generated for CMSSW Reference Manual by
1.8.5