test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ExampleClass Class Reference

#include <ExampleClass.h>

Public Member Functions

float computeMean () const
 A member function. More...
 
int count () const
 A simple getter. More...
 
 ExampleClass ()
 Constructor. More...
 
void setCount (int ticks)
 A simple setter. More...
 
void setValues (const std::vector< float > &entries)
 Another setter. More...
 
const std::vector< float > & values () const
 A getter returning a const reference. More...
 
virtual ~ExampleClass ()
 Virtual Destructor. More...
 

Private Attributes

SomeAlgorithmtheAlgo
 
int theCount
 
std::vector< float > theValues
 

Detailed Description

An example of doxygen-documented class conforming to the CMS style rules.

Features:
-doxygen-style header (note the

Definition at line 22 of file ExampleClass.h.

Constructor & Destructor Documentation

ExampleClass::ExampleClass ( )

Constructor.

Definition at line 23 of file ExampleClass.cc.

23  :
24  theCount(0),
25  theAlgo(new SomeAlgorithm())
26 {}
SomeAlgorithm * theAlgo
Definition: ExampleClass.h:50
ExampleClass::~ExampleClass ( )
virtual

Virtual Destructor.

Definition at line 29 of file ExampleClass.cc.

References theAlgo.

29  {
30  delete theAlgo;
31 }
SomeAlgorithm * theAlgo
Definition: ExampleClass.h:50

Member Function Documentation

float ExampleClass::computeMean ( ) const

A member function.

Definition at line 61 of file ExampleClass.cc.

References mps_fire::result.

61  {
62  float result = 1.;
63  //... do all necessary computations...
64  return result;
65 }
tuple result
Definition: mps_fire.py:84
int ExampleClass::count ( void  ) const

A simple getter.

Definition at line 41 of file ExampleClass.cc.

References theCount.

41  {
42  return theCount;
43 }
void ExampleClass::setCount ( int  ticks)

A simple setter.

Definition at line 35 of file ExampleClass.cc.

References theCount.

35  {
36  theCount = ticks;
37 }
void ExampleClass::setValues ( const std::vector< float > &  entries)

Another setter.

Definition at line 48 of file ExampleClass.cc.

References theValues.

48  {
49  theValues = entries;
50 }
std::vector< float > theValues
Definition: ExampleClass.h:49
const vector< float > & ExampleClass::values ( ) const

A getter returning a const reference.

Definition at line 54 of file ExampleClass.cc.

References theValues.

54  {
55  return theValues;
56 }
std::vector< float > theValues
Definition: ExampleClass.h:49

Member Data Documentation

SomeAlgorithm* ExampleClass::theAlgo
private

Definition at line 50 of file ExampleClass.h.

Referenced by ~ExampleClass().

int ExampleClass::theCount
private

Definition at line 48 of file ExampleClass.h.

Referenced by twikiExport.Constituent::__str__(), count(), and setCount().

std::vector<float> ExampleClass::theValues
private

Definition at line 49 of file ExampleClass.h.

Referenced by setValues(), and values().