10#include <boost/iterator/iterator_facade.hpp>
30 boost::random_access_traversal_tag> {
41 m_item.m_index = delta < 0 ? std::max(static_cast<uint64_t>(0),
static_cast<uint64_t
>(
m_item.m_index) +
delta)
42 : std::min(
m_item.m_spectrumInfo->size(),
m_item.m_index +
static_cast<size_t>(
delta));
66 return static_cast<uint64_t
>(other.getIndex()) -
static_cast<uint64_t
>(
getIndex());
std::map< DeltaEMode::Type, std::string > index
uint64_t distance_to(const SpectrumInfoIterator< T > &other) const
SpectrumInfoIterator(T &spectrumInfo, const size_t index)
void advance(int64_t delta)
bool equal(const SpectrumInfoIterator< T > &other) const
SpectrumInfoItem< T > & dereference() const
void setIndex(const size_t index)
SpectrumInfoItem< T > m_item
friend class boost::iterator_core_access
Helper class which provides the Collimation Length for SANS instruments.