Elements 6.1.2
A C++ base framework for the Euclid Software.
Loading...
Searching...
No Matches
TemplatedDataSourceUser.h
Go to the documentation of this file.
1
27#ifndef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_H_
28#define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_H_
29
30namespace Elements {
31namespace Examples {
32
40public:
55 template <typename T>
56 double sumRecords(const T& data_source);
57};
58
59} // namespace Examples
60} // namespace Elements
61
62#define ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_IMPL_
64#undef ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_IMPL_
65
66#endif // ELEMENTSEXAMPLES_ELEMENTSEXAMPLES_TEMPLATEDDATASOURCEUSER_H_
67
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.