Elements  6.2
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:
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 
TemplatedDataSourceUser.tpp
Elements::Examples::TemplatedDataSourceUser::sumRecords
double sumRecords(const T &data_source)
Compute the sum of the values of the records stored into the provided DataSource.
Elements::Examples::TemplatedDataSourceUser
This class has been created to demonstrate unit testing. It manipulate an object representing a DataS...
Definition: TemplatedDataSourceUser.h:39
Elements
Definition: callBackExample.h:35