Elements  5.10
A C++ base framework for the Euclid Software.
TemplatedDataSourceUser.h
Go to the documentation of this file.
1 
27 #ifndef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_H_
28 #define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_H_
29 
30 namespace Elements {
31 namespace Examples {
32 
40 public:
41 
56  template <typename T>
57  double sumRecords(const T& data_source);
58 };
59 
60 } // namespace Examples
61 } // namespace Elements
62 
64 
65 #endif // ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_H_
66 
This class has been created to demonstrate unit testing. It manipulate an object representing a DataS...
double sumRecords(const T &data_source)
Compute the sum of the values of the records stored into the provided DataSource. ...