Mantid
|
DataBlockComposite: The DataBlockComposite handles a collection of DataBlocks. More...
#include <DataBlockComposite.h>
Public Member Functions | |
void | addDataBlock (const DataBlock &dataBlock) |
std::vector< specnum_t > | getAllSpectrumNumbers () |
Provides a container with all spectrum numbers. More... | |
std::vector< DataBlock > | getDataBlocks () |
std::unique_ptr< DataBlockGenerator > | getGenerator () const override |
specnum_t | getMaxSpectrumID () const override |
specnum_t | getMinSpectrumID () const override |
size_t | getNumberOfChannels () const override |
int | getNumberOfPeriods () const override |
size_t | getNumberOfSpectra () const override |
bool | isEmpty () |
DataBlockComposite | operator+ (const DataBlockComposite &other) |
bool | operator== (const DataBlockComposite &other) const |
void | removeSpectra (DataBlockComposite &toRemove) |
Removes the input data blocks from the current list of data blocks. More... | |
void | setMaxSpectrumID (specnum_t) override |
void | setMinSpectrumID (specnum_t) override |
void | truncate (specnum_t specMin, specnum_t specMax) |
Public Member Functions inherited from Mantid::DataHandling::DataBlock | |
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 |
Private Attributes | |
std::vector< DataBlock > | m_dataBlocks |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::DataHandling::DataBlock | |
specnum_t | m_maxSpectraID |
specnum_t | m_minSpectraID |
size_t | m_numberOfChannels |
int | m_numberOfPeriods |
size_t | m_numberOfSpectra |
DataBlockComposite: The DataBlockComposite handles a collection of DataBlocks.
It represents a set of contiguous spectrum numbers which are to be consumed elsewhere.
Definition at line 19 of file DataBlockComposite.h.
void Mantid::DataHandling::DataBlockComposite::addDataBlock | ( | const DataBlock & | dataBlock | ) |
Definition at line 229 of file DataBlockComposite.cpp.
References Mantid::DataHandling::DataBlock::getNumberOfChannels(), Mantid::DataHandling::DataBlock::getNumberOfPeriods(), Mantid::DataHandling::DataBlock::getNumberOfSpectra(), m_dataBlocks, Mantid::DataHandling::DataBlock::m_numberOfChannels, Mantid::DataHandling::DataBlock::m_numberOfPeriods, and Mantid::DataHandling::DataBlock::m_numberOfSpectra.
Referenced by Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile(), and Mantid::DataHandling::populateDataBlockCompositeWithContainer().
std::vector< specnum_t > Mantid::DataHandling::DataBlockComposite::getAllSpectrumNumbers | ( | ) |
Provides a container with all spectrum numbers.
Definition at line 409 of file DataBlockComposite.cpp.
References getGenerator().
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties(), and Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile().
std::vector< DataBlock > Mantid::DataHandling::DataBlockComposite::getDataBlocks | ( | ) |
Definition at line 260 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::prepareSpectraBlocks(), and removeSpectra().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 224 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::buildSpectraInd2SpectraNumMap(), and getAllSpectrumNumbers().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 209 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties(), Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile(), and truncate().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 194 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties(), Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile(), and truncate().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 244 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties(), Mantid::DataHandling::LoadISISNexus2::exec(), Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile(), Mantid::DataHandling::LoadISISNexus2::loadBlock(), Mantid::DataHandling::LoadISISNexus2::loadPeriodData(), Mantid::DataHandling::LoadISISNexus2::loadRunDetails(), and truncate().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 248 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties(), Mantid::DataHandling::LoadISISNexus2::exec(), Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile(), Mantid::DataHandling::LoadISISNexus2::loadRunDetails(), and truncate().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 239 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::exec(), Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile(), and Mantid::DataHandling::LoadISISNexus2::loadRunDetails().
bool Mantid::DataHandling::DataBlockComposite::isEmpty | ( | ) |
Definition at line 420 of file DataBlockComposite.cpp.
References m_dataBlocks.
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties().
DataBlockComposite Mantid::DataHandling::DataBlockComposite::operator+ | ( | const DataBlockComposite & | other | ) |
Definition at line 252 of file DataBlockComposite.cpp.
References m_dataBlocks.
bool Mantid::DataHandling::DataBlockComposite::operator== | ( | const DataBlockComposite & | other | ) | const |
Definition at line 342 of file DataBlockComposite.cpp.
References m_dataBlocks.
void Mantid::DataHandling::DataBlockComposite::removeSpectra | ( | DataBlockComposite & | toRemove | ) |
Removes the input data blocks from the current list of data blocks.
toRemove | data block composite to remove |
original: |--—| |----—| |-—| toRemove: |---—| |–| result: |—| |---—| |-—|
Definition at line 372 of file DataBlockComposite.cpp.
References getDataBlocks(), m_dataBlocks, Mantid::DataHandling::DataBlock::setMaxSpectrumID(), and Mantid::DataHandling::DataBlock::setMinSpectrumID().
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties(), and Mantid::DataHandling::LoadISISNexus2::findSpectraDetRangeInFile().
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 220 of file DataBlockComposite.cpp.
|
overridevirtual |
Reimplemented from Mantid::DataHandling::DataBlock.
Definition at line 205 of file DataBlockComposite.cpp.
Definition at line 266 of file DataBlockComposite.cpp.
References Mantid::DataHandling::DataBlock::getMaxSpectrumID(), getMaxSpectrumID(), getMinSpectrumID(), getNumberOfChannels(), getNumberOfPeriods(), m_dataBlocks, Mantid::DataHandling::DataBlock::setMaxSpectrumID(), and Mantid::DataHandling::DataBlock::setMinSpectrumID().
Referenced by Mantid::DataHandling::LoadISISNexus2::checkOptionalProperties().
|
private |
Definition at line 45 of file DataBlockComposite.h.
Referenced by addDataBlock(), getDataBlocks(), getGenerator(), getMaxSpectrumID(), getMinSpectrumID(), getNumberOfChannels(), getNumberOfPeriods(), getNumberOfSpectra(), isEmpty(), operator+(), operator==(), removeSpectra(), and truncate().