17namespace MantidWidgets {
22template <
typename RowLocationConstIterator>
24 RowLocationConstIterator sortedRegionEnd) {
25 auto firstLocationAtMinimumDepth =
29 return firstLocationAtMinimumDepth != sortedRegionBegin;
32template <
typename RowLocationConstIterator>
34 RowLocationConstIterator sortedRegionEnd) {
35 auto firstRootParent = (*sortedRegionBegin).parent();
36 return std::all_of(sortedRegionBegin + 1, sortedRegionEnd, [&firstRootParent](
RowLocation const &location) ->
bool {
41template <
typename RowLocationConstIterator>
43 return std::adjacent_find(sortedRegionBegin, sortedRegionEnd,
45 return (previous.
depth() - current.
depth()) < -1;
46 }) == sortedRegionEnd;
49template <
typename RowLocationConstIterator>
51 RowLocationConstIterator sortedRegionEnd) {
52 return std::adjacent_find(sortedRegionBegin, sortedRegionEnd,
54 return current.
depth() > firstSubtreeRootDepth &&
56 }) != sortedRegionEnd;
59template <
typename RowLocationConstIterator>
61 RowLocationConstIterator sortedRegionBegin,
62 RowLocationConstIterator sortedRegionEnd) {
const std::vector< double > & rhs
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...