Mantid
Loading...
Searching...
No Matches
ExtractSubtrees.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
11#pragma once
17#include <boost/optional.hpp>
18#include <string>
19#include <vector>
20namespace MantidQt {
21namespace MantidWidgets {
22namespace Batch {
23
25public:
26 using RandomAccessRowIterator = std::vector<Row>::iterator;
27 using RandomAccessConstRowIterator = std::vector<Row>::const_iterator;
28 boost::optional<std::vector<Subtree>> operator()(std::vector<Row> region) const;
29
30private:
32 RandomAccessConstRowIterator regionEnd, int subtreeRootDepth) const;
33
34 Subtree makeSubtreeFromRows(RowLocation subtreeRootLocation, RandomAccessConstRowIterator subtreeBegin,
35 RandomAccessConstRowIterator subtreeEnd) const;
36
37 std::vector<Subtree> makeSubtreesFromRows(std::vector<Row> const &rows, int subtreeRootDepth) const;
38};
39
40} // namespace Batch
41} // namespace MantidWidgets
42} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
std::vector< Row >::iterator RandomAccessRowIterator
std::vector< Row >::const_iterator RandomAccessConstRowIterator
std::vector< Row > Subtree
Definition: Subtree.h:18
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...