Mantid
|
DataBlock: The DataBlock class holds information about a contiguous block of spectrum numbers. More...
#include <DataBlock.h>
Public Member Functions | |
DataBlock () | |
DataBlock (const Mantid::NeXus::NXInt &data) | |
DataBlock (int numberOfperiods, size_t numberOfSpectra, size_t numberOfChannels) | |
virtual std::unique_ptr< DataBlockGenerator > | getGenerator () const |
virtual specnum_t | getMaxSpectrumID () const |
virtual specnum_t | getMinSpectrumID () const |
virtual size_t | getNumberOfChannels () const |
virtual int | getNumberOfPeriods () const |
virtual size_t | getNumberOfSpectra () const |
bool | operator== (const DataBlock &other) const |
virtual void | setMaxSpectrumID (specnum_t minSpecID) |
virtual void | setMinSpectrumID (specnum_t minSpecID) |
virtual | ~DataBlock ()=default |
Protected Attributes | |
specnum_t | m_maxSpectraID |
specnum_t | m_minSpectraID |
size_t | m_numberOfChannels |
int | m_numberOfPeriods |
size_t | m_numberOfSpectra |
DataBlock: The DataBlock class holds information about a contiguous block of spectrum numbers.
It contains information about the min and max number of that range as well as the number of channels and periods that are associated with the spectra in the nexus file.
Definition at line 26 of file DataBlock.h.
Mantid::DataHandling::DataBlock::DataBlock | ( | ) |
Definition at line 17 of file DataBlock.cpp.
Mantid::DataHandling::DataBlock::DataBlock | ( | const Mantid::NeXus::NXInt & | data | ) |
Definition at line 21 of file DataBlock.cpp.
Mantid::DataHandling::DataBlock::DataBlock | ( | int | numberOfperiods, |
size_t | numberOfSpectra, | ||
size_t | numberOfChannels | ||
) |
Definition at line 25 of file DataBlock.cpp.
|
virtualdefault |
References std::operator==().
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 43 of file DataBlock.cpp.
References m_maxSpectraID, and m_minSpectraID.
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 33 of file DataBlock.cpp.
References m_maxSpectraID.
Referenced by Mantid::DataHandling::DataBlockComposite::truncate().
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 29 of file DataBlock.cpp.
References m_minSpectraID.
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 41 of file DataBlock.cpp.
References m_numberOfChannels.
Referenced by Mantid::DataHandling::DataBlockComposite::addDataBlock().
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 39 of file DataBlock.cpp.
References m_numberOfPeriods.
Referenced by Mantid::DataHandling::DataBlockComposite::addDataBlock().
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 37 of file DataBlock.cpp.
References m_numberOfSpectra.
Referenced by Mantid::DataHandling::DataBlockComposite::addDataBlock().
bool Mantid::DataHandling::DataBlock::operator== | ( | const DataBlock & | other | ) | const |
Definition at line 48 of file DataBlock.cpp.
References m_maxSpectraID, m_minSpectraID, m_numberOfChannels, m_numberOfPeriods, and m_numberOfSpectra.
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 35 of file DataBlock.cpp.
References m_maxSpectraID.
Referenced by Mantid::DataHandling::populateDataBlockCompositeWithContainer(), Mantid::DataHandling::DataBlockComposite::removeSpectra(), and Mantid::DataHandling::DataBlockComposite::truncate().
|
virtual |
Reimplemented in Mantid::DataHandling::DataBlockComposite.
Definition at line 31 of file DataBlock.cpp.
References m_minSpectraID.
Referenced by Mantid::DataHandling::populateDataBlockCompositeWithContainer(), Mantid::DataHandling::DataBlockComposite::removeSpectra(), and Mantid::DataHandling::DataBlockComposite::truncate().
|
protected |
Definition at line 58 of file DataBlock.h.
Referenced by getGenerator(), getMaxSpectrumID(), operator==(), and setMaxSpectrumID().
|
protected |
Definition at line 56 of file DataBlock.h.
Referenced by getGenerator(), getMinSpectrumID(), operator==(), and setMinSpectrumID().
|
protected |
Definition at line 53 of file DataBlock.h.
Referenced by Mantid::DataHandling::DataBlockComposite::addDataBlock(), getNumberOfChannels(), and operator==().
|
protected |
Definition at line 49 of file DataBlock.h.
Referenced by Mantid::DataHandling::DataBlockComposite::addDataBlock(), getNumberOfPeriods(), and operator==().
|
protected |
Definition at line 51 of file DataBlock.h.
Referenced by Mantid::DataHandling::DataBlockComposite::addDataBlock(), getNumberOfSpectra(), and operator==().