Mantid
|
DataBlockGenerator: The DataBlockGenerator class provides increasing int64_t numbers from a collection of intervals which are being input into the generator at construction. More...
#include <DataBlockGenerator.h>
Public Member Functions | |
DataBlockGenerator (std::vector< SpectrumPair > intervals) | |
specnum_t | getValue () |
bool | isDone () |
void | next () |
Convenience method for incrementing. More... | |
DataBlockGenerator & | operator++ () |
We need to increment through a series of intervals and need to make sure that we skip the gaps. More... | |
DataBlockGenerator | operator++ (int) |
Public Attributes | |
boost::optional< size_t > | m_currentIntervalIndex |
specnum_t | m_currentSpectrum |
std::vector< SpectrumPair > | m_intervals |
DataBlockGenerator: The DataBlockGenerator class provides increasing int64_t numbers from a collection of intervals which are being input into the generator at construction.
Definition at line 21 of file DataBlockGenerator.h.
Mantid::DataHandling::DataBlockGenerator::DataBlockGenerator | ( | std::vector< SpectrumPair > | intervals | ) |
Definition at line 17 of file DataBlockGenerator.cpp.
References m_currentIntervalIndex, m_currentSpectrum, and m_intervals.
specnum_t Mantid::DataHandling::DataBlockGenerator::getValue | ( | ) |
Definition at line 80 of file DataBlockGenerator.cpp.
References m_currentSpectrum.
bool Mantid::DataHandling::DataBlockGenerator::isDone | ( | ) |
Definition at line 78 of file DataBlockGenerator.cpp.
References m_currentIntervalIndex.
void Mantid::DataHandling::DataBlockGenerator::next | ( | ) |
Convenience method for incrementing.
Definition at line 76 of file DataBlockGenerator.cpp.
DataBlockGenerator & Mantid::DataHandling::DataBlockGenerator::operator++ | ( | ) |
We need to increment through a series of intervals and need to make sure that we skip the gaps.
This does assume that the intervals are ordered.
Definition at line 39 of file DataBlockGenerator.cpp.
References m_currentIntervalIndex, m_currentSpectrum, and m_intervals.
DataBlockGenerator Mantid::DataHandling::DataBlockGenerator::operator++ | ( | int | ) |
Definition at line 67 of file DataBlockGenerator.cpp.
References m_intervals.
boost::optional<size_t> Mantid::DataHandling::DataBlockGenerator::m_currentIntervalIndex |
Definition at line 35 of file DataBlockGenerator.h.
Referenced by DataBlockGenerator(), isDone(), and operator++().
specnum_t Mantid::DataHandling::DataBlockGenerator::m_currentSpectrum |
Definition at line 33 of file DataBlockGenerator.h.
Referenced by DataBlockGenerator(), getValue(), and operator++().
std::vector<SpectrumPair> Mantid::DataHandling::DataBlockGenerator::m_intervals |
Definition at line 32 of file DataBlockGenerator.h.
Referenced by DataBlockGenerator(), and operator++().