15namespace MantidWidgets {
20template <
typename RowLocationConstIterator>
22 RowLocationConstIterator sortedRegionEnd) {
23 auto firstLocationAtMinimumDepth =
27 return firstLocationAtMinimumDepth != sortedRegionBegin;
30template <
typename RowLocationConstIterator>
32 RowLocationConstIterator sortedRegionEnd) {
33 auto firstRootParent = (*sortedRegionBegin).parent();
34 return std::all_of(sortedRegionBegin + 1, sortedRegionEnd, [&firstRootParent](
RowLocation const &location) ->
bool {
39template <
typename RowLocationConstIterator>
41 return std::adjacent_find(sortedRegionBegin, sortedRegionEnd,
43 return (previous.
depth() - current.
depth()) < -1;
44 }) == sortedRegionEnd;
47template <
typename RowLocationConstIterator>
49 RowLocationConstIterator sortedRegionEnd) {
50 return std::adjacent_find(sortedRegionBegin, sortedRegionEnd,
52 return current.
depth() > firstSubtreeRootDepth &&
54 }) != sortedRegionEnd;
57template <
typename RowLocationConstIterator>
59 RowLocationConstIterator sortedRegionBegin,
60 RowLocationConstIterator sortedRegionEnd) {
const std::vector< double > & rhs
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...