#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 | |
HduIterator (MefFile &f, long index, HduFilter filter=HduCategory::Any) | |
Constructor. | |
const THdu & | operator* () const |
Dereference operator. | |
const THdu * | operator-> () const |
Arrow operator. | |
const THdu & | operator++ () |
Increment operator. | |
const THdu * | operator++ (int) |
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.) | |
HduIterator | begin (MefFile &f) |
Beginning of an iterator to loop over all HDUs as Hdu s. | |
HduIterator | end (MefFile &f) |
End of an iterator to loop over all HDUs as Hdu s. | |
template<typename THdu = Hdu> | |
HduIterator< THdu > | begin (HduSelector< THdu > &selector) |
Beginning of an iterator to loop over selected HDUs. More... | |
template<typename THdu = Hdu> | |
HduIterator< THdu > | end (HduSelector< THdu > &selector) |
End of an iterator to loop over selected HDUs. | |