BICO 1.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Pages
attributecalculator.h
Go to the documentation of this file.
1 #ifndef ATTRIBUTECALCULATOR_H
2 #define ATTRIBUTECALCULATOR_H
3
4 namespace CluE
5 {
6
12 template<typename T> class AttributeCalculator
13 {
14 public:
15 virtual ~AttributeCalculator()
16 {
17 }
18
19 virtual AttributeCalculator<T>* clone() const = 0;
20
24 virtual double calculate(T const&) const = 0;
25 };
26
27 }
28
29 #endif
CluE::AttributeCalculator
Abstract base class for attribute calculation (e.g. diameter).
Definition: attributecalculator.h:12
CluE::AttributeCalculator::~AttributeCalculator
virtual ~AttributeCalculator()
Definition: attributecalculator.h:15
CluE::AttributeCalculator::calculate
virtual double calculate(T const &) const =0
Computes a characteristic attribute of a given object.
CluE::AttributeCalculator::clone
virtual AttributeCalculator< T > * clone() const =0