Collapse the dimensions higher than @p first if possible. * * A dimension is collapsable if it starts from 0 and matches the corresponding dimension in the full_window * * @param[in] full_window Full window @p window has been created from. * @param[in] first Start dimension into which the following are collapsed. * @param[out] has_collapsed (Optional) Whet
| 392 | * @return Collapsed window. |
| 393 | */ |
| 394 | Window collapse_if_possible(const Window &full_window, size_t first, bool *has_collapsed = nullptr) const |
| 395 | { |
| 396 | return collapse_if_possible(full_window, first, Coordinates::num_max_dimensions, has_collapsed); |
| 397 | } |
| 398 | |
| 399 | /** Collapse the dimensions between @p first and @p last. |
| 400 | * |
no outgoing calls
no test coverage detected