Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
Batch
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
12
#include "
MantidQtWidgets/Common/Batch/AssertOrThrow.h
"
13
#include "
MantidQtWidgets/Common/Batch/Row.h
"
14
#include "
MantidQtWidgets/Common/Batch/RowLocation.h
"
15
#include "
MantidQtWidgets/Common/Batch/Subtree.h
"
16
#include "
MantidQtWidgets/Common/DllOption.h
"
17
#include <optional>
18
#include <string>
19
#include <vector>
20
namespace
MantidQt
{
21
namespace
MantidWidgets {
22
namespace
Batch {
23
24
class
EXPORT_OPT_MANTIDQT_COMMON
ExtractSubtrees
{
25
public
:
26
using
RandomAccessRowIterator
= std::vector<Row>::iterator;
27
using
RandomAccessConstRowIterator
= std::vector<Row>::const_iterator;
28
std::optional<std::vector<Subtree>> operator()(std::vector<Row> region)
const
;
29
30
private
:
31
RandomAccessConstRowIterator
findEndOfSubtree(
RandomAccessConstRowIterator
subtreeBegin,
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
AssertOrThrow.h
DllOption.h
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
RowLocation.h
Row.h
Subtree.h
MantidQt::MantidWidgets::Batch::ExtractSubtrees
Definition
ExtractSubtrees.h:24
MantidQt::MantidWidgets::Batch::ExtractSubtrees::RandomAccessRowIterator
std::vector< Row >::iterator RandomAccessRowIterator
Definition
ExtractSubtrees.h:26
MantidQt::MantidWidgets::Batch::ExtractSubtrees::RandomAccessConstRowIterator
std::vector< Row >::const_iterator RandomAccessConstRowIterator
Definition
ExtractSubtrees.h:27
MantidQt::MantidWidgets::Batch::RowLocation
Definition
RowLocation.h:22
MantidQt::MantidWidgets::Batch::Subtree
std::vector< Row > Subtree
Definition
Subtree.h:20
MantidQt
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
Definition
AddWorkspaceDialog.h:18
Generated by
1.9.8