24 : m_iterator(ws->createIterator()), m_startIndex(start), m_currentIndex(0), m_justReset(true), m_workspace(ws) {
const IMDIterator * getNextIterator() const
Next iterator.
~FunctionDomainMD() override
Destructor.
FunctionDomainMD(const IMDWorkspace_const_sptr &ws, size_t start=0, size_t length=0)
Constructor.
IMDWorkspace_const_sptr getWorkspace() const
Returns the pointer to the original workspace.
std::unique_ptr< IMDIterator > m_iterator
IMDIterator.
size_t m_currentIndex
track the iterator's index, 0 <= m_currentIndex < m_size.
const size_t m_startIndex
start of the domain, 0 <= m_startIndex < m_iterator->getDataSize()
IMDWorkspace_const_sptr m_workspace
A pointer to the workspace.
void reset() const override
Reset the iterator to point to the start of the domain.