Mantid
Loading...
Searching...
No Matches
DataBlockGenerator.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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 +
7#pragma once
8
10#include <optional>
11#include <vector>
12
13namespace Mantid {
14namespace DataHandling {
15
16class DataBlock;
17
22class MANTID_DATAHANDLING_DLL DataBlockGenerator {
23public:
24 DataBlockGenerator(std::vector<SpectrumPair> intervals);
25 class DataBlock;
26 DataBlockGenerator &operator++();
27 DataBlockGenerator operator++(int);
28 bool isDone();
29 specnum_t getValue();
30 void next();
31
32public:
33 std::vector<SpectrumPair> m_intervals;
35
36 std::optional<size_t> m_currentIntervalIndex;
37};
38
39} // namespace DataHandling
40} // namespace Mantid
DataBlockGenerator: The DataBlockGenerator class provides increasing int64_t numbers from a collectio...
DataBlock: The DataBlock class holds information about a contiguous block of spectrum numbers.
Definition DataBlock.h:28
Helper class which provides the Collimation Length for SANS instruments.
int32_t specnum_t
Typedef for a spectrum Number.
Definition IDTypes.h:14