Elements
6.2
A C++ base framework for the Euclid Software.
|
This class has been created to demonstrate unit testing. It manipulate an object representing a DataSource using template to achieve polymorphism. More...
#include <TemplatedDataSourceUser.h>
Public Member Functions | |
template<typename T > | |
double | sumRecords (const T &data_source) |
Compute the sum of the values of the records stored into the provided DataSource. More... | |
This class has been created to demonstrate unit testing. It manipulate an object representing a DataSource using template to achieve polymorphism.
Definition at line 39 of file TemplatedDataSourceUser.h.
double Elements::Examples::TemplatedDataSourceUser::sumRecords | ( | const T & | data_source | ) |
Compute the sum of the values of the records stored into the provided DataSource.
T | A type representing a DataSource. The type must declare the methods
|
data_source | A reference to a DataSource object. |