/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Documentation/CodingRules/ExampleClass.h
53 строки
1 KB
Maya Stavrianakou
added templates
26 июл 2005, 14:13
26 июл 2005, 14:13
5e61e69
Код
Авторство
О чём код?
#ifndef ExampleClass_H #define ExampleClass_H /** \class ExampleClass * An example of doxygen-documented class conforming to the CMS style rules. * * Features:<br> * -doxygen-style header (note the \class directive)<br> * -doxygen-like member function documentation<br> * -Few setters and getters * * $Date: $ * $Revision: $ * \author W. Woodpecker - CERN */ #include <vector> class SomeAlgorithm; class ExampleClass { public: /// Constructor ExampleClass(); /// Virtual Destructor virtual ~ExampleClass(); /// A simple setter void setCount(int ticks); /// A simple getter int count() const; /// Another setter void setValues(const std::vector<float>& entries); /// A getter returning a const reference const std::vector<float>& values() const; /// A member function float computeMean() const; protected: private: int theCount; //< An int data member std::vector<float> theValues; //< A vector data member SomeAlgorithm * theAlgo; //< A pointer data member }; #endif // ExampleClass_H