#include <HduIterator.h>
Iterator for MefFile's HDUs.
| TCategories | The categories to be filtered |
| THdu | The type of HDU class (iterator elements), can generally be unspecified (see details below) |
If THdu is not specified, the following deduction rules are applied:
If this default value is not adequate, THdu can be specified.
Public Member Functions | |
Construction | |
| HduIterator (MefFile &f, long index, HduFilter filter=HduCategory::Any) | |
| Constructor. | |
Operations | |
| const THdu & | operator* () const |
| Dereference operator. | |
| const THdu * | operator-> () const |
| Arrow operator. | |
| HduIterator & | operator++ () |
| Increment operator. | |
| HduIterator | operator++ (int) const |
| New instance increment operator. | |
| bool | operator== (const HduIterator< THdu > &rhs) const |
| Equality operator. | |
| bool | operator!= (const HduIterator< THdu > &rhs) const |
| Non-equality operator. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename THdu = Hdu> | |
| HduIterator< THdu > | begin (HduSelector< THdu > &selector) |
| Beginning of an iterator to loop over selected HDUs. More... | |
| HduIterator | begin (MefFile &f) |
Beginning of an iterator to loop over all HDUs as Hdus. | |
| template<typename THdu = Hdu> | |
| HduIterator< THdu > | end (HduSelector< THdu > &selector) |
| End of an iterator to loop over selected HDUs. | |
| HduIterator | end (MefFile &f) |
End of an iterator to loop over all HDUs as Hdus. | |