EleFits
4.0.0
A modern C++ API on top of CFitsIO
|
#include <HduCategory.h>
HDU filter built from HDU categories.
The class defines two lists of categories: accepted and rejected categories. They are used in method accepts to check whether an HDU is of at least one accepted categories, and of no rejected categories.
Public Member Functions | |
HduFilter (const HduCategory &category) | |
Casting constructor to make a HduFilter from a HduCategory. | |
HduFilter (const std::vector< HduCategory > &accept, const std::vector< HduCategory > &reject) | |
Constructor. | |
HduFilter & | operator+= (const HduCategory &accept) |
Add an accepted category. | |
HduFilter | operator+ (const HduCategory &accept) const |
Add an accepted category. More... | |
HduFilter & | operator*= (const HduCategory &constraint) |
Add a constraint to all accepted categories. More... | |
HduFilter | operator* (const HduCategory &constraint) const |
Add a constraint to all accepted categories. More... | |
HduFilter & | operator+ () |
Identity: provided for completeness only. | |
HduFilter & | operator-= (const HduCategory &reject) |
Add a rejected category in place. | |
HduFilter | operator- (const HduCategory &reject) const |
Add a rejected category. | |
HduFilter & | operator- () |
Negation operator: swap accepted and rejected categories. | |
HduFilter & | operator/= (const HduCategory &constraint) |
Add a constraint to all rejected categories. More... | |
HduFilter | operator/ (const HduCategory &constraint) const |
Add a constraint to all rejected categories. More... | |
bool | accepts (const HduCategory &input) const |
Check whether the filter accepts a given input. More... | |