| 5340 | |
| 5341 | |
| 5342 | static void insertPerLayoutStatistics(XL::Tree *tree, |
| 5343 | PerLayoutStatisticsQ &queue) |
| 5344 | // ---------------------------------------------------------------------------- |
| 5345 | // Insert the per-layout statistics in the queue |
| 5346 | // ---------------------------------------------------------------------------- |
| 5347 | { |
| 5348 | PerLayoutStatistics *info = tree->GetInfo<PerLayoutStatistics>(); |
| 5349 | if (info) |
| 5350 | queue.push(PerLayoutStatisticsWrapper(tree, info)); |
| 5351 | if (Infix *infix = tree->AsInfix()) |
| 5352 | { |
| 5353 | insertPerLayoutStatistics(infix->left, queue); |
| 5354 | insertPerLayoutStatistics(infix->right, queue); |
| 5355 | } |
| 5356 | else if (Prefix *prefix = tree->AsPrefix()) |
| 5357 | { |
| 5358 | insertPerLayoutStatistics(prefix->left, queue); |
| 5359 | insertPerLayoutStatistics(prefix->right, queue); |
| 5360 | } |
| 5361 | else if (Postfix *postfix = tree->AsPostfix()) |
| 5362 | { |
| 5363 | insertPerLayoutStatistics(postfix->left, queue); |
| 5364 | insertPerLayoutStatistics(postfix->right, queue); |
| 5365 | } |
| 5366 | else if (Block *block = tree->AsBlock()) |
| 5367 | { |
| 5368 | insertPerLayoutStatistics(block->child, queue); |
| 5369 | } |
| 5370 | } |
| 5371 | |
| 5372 | |
| 5373 | void Widget::printPerLayoutStatistics() |
no test coverage detected