16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_DEVICE_DETECTOR_SIMULATIONAREAITERATOR_H
21 #define BORNAGAIN_DEVICE_DETECTOR_SIMULATIONAREAITERATOR_H
81 return !(*
this == right);
Abstract detector interface.
An iterator for SimulationArea.
size_t detectorIndex() const
SimulationAreaIterator createEnd() const
Convenience function to create an end-iterator matching to this iterator.
Mode
Mode how the points shall be traversed.
@ notMasked
iterate over all points in "region of interest" and not masked
@ regionOfInterest
iterate over all points in "region of interest", no matter whether masked
size_t nextIndex(size_t currentIndex)
size_t m_maxIndex
ROI related maximum index.
bool isMasked(size_t index) const
Check whether masked according to the actual mode (always false if mode is regionOfInterest)....
const IDetector * m_detector
SimulationAreaIterator(const IDetector *detector, Mode mode, size_t start_at_index)
SimulationAreaIterator & operator++()
prefix increment
size_t m_index
ROI related index.
bool operator==(const SimulationAreaIterator &other) const
static SimulationAreaIterator createBegin(const IDetector *detector, Mode mode)
Create begin-iterator to iterate over all points according to the given mode.
bool operator!=(const SimulationAreaIterator &right) const