|
NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
Summing iterator. More...
#include <SumIterator.hpp>
Public Types | |
| typedef T | value_type |
| typedef ptrdiff_t | difference_type |
| typedef T * | pointer |
| typedef T & | reference |
| typedef std::input_iterator_tag | iterator_category |
Public Member Functions | |
| SumIterator (const TrRange< T > &range) | |
| SumIterator (const SumIterator &that) | |
| SumIterator & | operator= (const SumIterator &that) |
| bool | operator== (const SumIterator &that) const |
| bool | operator!= (const SumIterator &that) const |
| virtual bool | operator< (const TrIterator< T > &it) const |
| Comparison operator. More... | |
| bool | operator< (const SumIterator &that) const |
| bool | operator> (const SumIterator &that) const |
| bool | operator<= (const SumIterator &that) const |
| bool | operator>= (const SumIterator &that) const |
| virtual SumIterator & | operator++ () |
| Prefixed incrementation Supports ++x style incrementing. Default implementation does nothing. More... | |
| SumIterator | operator++ (int) |
| virtual double | operator* () const |
| Dereference operator. More... | |
| virtual TrIterator< T > | min_extent () const |
| Min extent To implement the minimum iterator extent for the range This default implementation returns an iterator to address 0x0. More... | |
| virtual TrIterator< T > | max_extent () const |
| Max extent To implement the maximum iterator extent for the range This default implementation returns an iterator to address 0x0. More... | |
Public Member Functions inherited from TrAnal::AlgoIterator< T > | |
| AlgoIterator () | |
| Default constructor. | |
| AlgoIterator (const AlgoIterator &) | |
| Copy constructor. | |
| AlgoIterator & | operator= (const AlgoIterator &) |
| Assignment operator. | |
Summing iterator.
Implements the AlgoIterator interface but extends the functionality to provide richer comparisons.
The summing region is semi-inclusive, i.e. [low,high) . As a result, out-of-bounds can be reliable checked before attempting to access an invalid memory location.
|
inlinevirtual |
Max extent To implement the maximum iterator extent for the range This default implementation returns an iterator to address 0x0.
Reimplemented from TrAnal::AlgoIterator< T >.
|
inlinevirtual |
Min extent To implement the minimum iterator extent for the range This default implementation returns an iterator to address 0x0.
Reimplemented from TrAnal::AlgoIterator< T >.
|
inlinevirtual |
Dereference operator.
Reimplemented from TrAnal::AlgoIterator< T >.
|
inlinevirtual |
Prefixed incrementation Supports ++x style incrementing. Default implementation does nothing.
Reimplemented from TrAnal::AlgoIterator< T >.
|
inlinevirtual |
Comparison operator.
Compares whether max_extent is less than the the argument.
| it | the iterator to compare to |
Reimplemented from TrAnal::AlgoIterator< T >.
1.8.8