| 150 | |
| 151 | |
| 152 | void ABstats::PrintStatsPosition( |
| 153 | ofstream& fout, |
| 154 | const int no, |
| 155 | const string& text, |
| 156 | const ABtracker& abt, |
| 157 | const ABtracker& divisor) const |
| 158 | { |
| 159 | if (! abt.sumCum) |
| 160 | return; |
| 161 | |
| 162 | fout << setw(2) << (no == -1 ? "" : to_string(no)) << " " << |
| 163 | setw(20) << left << text << |
| 164 | setw(9) << right << abt.sum << |
| 165 | setw(6) << setprecision(1) << fixed << |
| 166 | 100. * abt.sum / static_cast<double>(divisor.sum); |
| 167 | |
| 168 | if (abt.sum) |
| 169 | fout << setw(6) << setprecision(1) << fixed << |
| 170 | abt.sumWeighted / static_cast<double>(abt.sum); |
| 171 | else |
| 172 | fout << setw(6) << ""; |
| 173 | |
| 174 | fout << setw(9) << abt.sumCum << |
| 175 | setw(6) << setprecision(1) << fixed << |
| 176 | 100. * abt.sumCum / static_cast<double>(divisor.sumCum) << |
| 177 | setw(6) << setprecision(1) << fixed << |
| 178 | abt.sumCumWeighted / static_cast<double>(abt.sumCum) << "\n"; |
| 179 | } |
| 180 | |
| 181 | |
| 182 | void ABstats::PrintHeaderDepth(ofstream& fout) const |
nothing calls this directly
no outgoing calls
no test coverage detected