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 <boost/optional.hpp>
11
12namespace Mantid {
13namespace DataHandling {
14
15class DataBlock;
16
21class MANTID_DATAHANDLING_DLL DataBlockGenerator {
22public:
23 DataBlockGenerator(std::vector<SpectrumPair> intervals);
24 class DataBlock;
25 DataBlockGenerator &operator++();
26 DataBlockGenerator operator++(int);
27 bool isDone();
28 specnum_t getValue();
29 void next();
30
31public:
32 std::vector<SpectrumPair> m_intervals;
34
35 boost::optional<size_t> m_currentIntervalIndex;
36};
37
38} // namespace DataHandling
39} // namespace Mantid
DataBlockGenerator: The DataBlockGenerator class provides increasing int64_t numbers from a collectio...
boost::optional< size_t > m_currentIntervalIndex
std::vector< SpectrumPair > m_intervals
DataBlock: The DataBlock class holds information about a contiguous block of spectrum numbers.
Definition: DataBlock.h:26
Helper class which provides the Collimation Length for SANS instruments.
int32_t specnum_t
Typedef for a spectrum Number.
Definition: IDTypes.h:16