* This function will call a given method on every control measure that * this point has. * * @param statFunc The function to use for data collection * * @returns The gathered statistic * * @history 2011-03-08 Debbie A. Cook - Changed to get statistics for all * point types and not just Candidate. */
| 1834 | * point types and not just Candidate. |
| 1835 | */ |
| 1836 | Statistics ControlPoint::GetStatistic( |
| 1837 | double(ControlMeasure::*statFunc)() const) const { |
| 1838 | Statistics stats; |
| 1839 | foreach(ControlMeasure * cm, *measures) { |
| 1840 | if (!cm->IsIgnored()) { |
| 1841 | stats.AddData((cm->*statFunc)()); |
| 1842 | } |
| 1843 | } |
| 1844 | |
| 1845 | return stats; |
| 1846 | } |
| 1847 | |
| 1848 | |
| 1849 | Statistics ControlPoint::GetStatistic(long dataType) const { |
no test coverage detected