|
lsst.afw gba399f52f3+9b61cfce8e
|
A group of labels for a filter in an exposure or coadd. More...
#include <FilterLabel.h>
Classes | |
| class | Factory |
Public Member Functions | |
| FilterLabel (FilterLabel const &) | |
| FilterLabel (FilterLabel &&) noexcept | |
| FilterLabel & | operator= (FilterLabel const &) |
| FilterLabel & | operator= (FilterLabel &&) noexcept |
| ~FilterLabel () noexcept | |
| bool | hasBandLabel () const noexcept |
| Return whether the filter label names a band. | |
| std::string | getBandLabel () const |
| Return the band label. | |
| bool | hasPhysicalLabel () const noexcept |
| Return whether the filter label names a physical filter. | |
| std::string | getPhysicalLabel () const |
| Return the physical filter label. | |
| std::size_t | hash_value () const noexcept override |
| Return a hash of this object. | |
| std::string | toString () const override |
| Return a string representation of this object. | |
| std::shared_ptr< Storable > | cloneStorable () const override |
| Create a new object that is a copy of this one. | |
| bool | equals (Storable const &other) const noexcept override |
| bool | isPersistable () const noexcept override |
| All filter labels are always persistable. | |
| bool | operator== (FilterLabel const &rhs) const noexcept |
| Filter labels compare equal if their components are equal. | |
| bool | operator!= (FilterLabel const &rhs) const noexcept |
| Filter labels compare equal if their components are equal. | |
Static Public Member Functions | |
| static std::shared_ptr< FilterLabel > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. | |
| static std::shared_ptr< FilterLabel > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
| Dynamically cast a shared_ptr. | |
| static FilterLabel | fromBandPhysical (std::string const &band, std::string const &physical) |
| Construct a FilterLabel from specific inputs. | |
| static FilterLabel | fromBand (std::string const &band) |
| Construct a FilterLabel from specific inputs. | |
| static FilterLabel | fromPhysical (std::string const &physical) |
| Construct a FilterLabel from specific inputs. | |
Protected Member Functions | |
| std::string | getPersistenceName () const noexcept override |
| std::string | getPythonModule () const noexcept override |
| void | write (table::io::OutputArchiveHandle &handle) const override |
A group of labels for a filter in an exposure or coadd.
This class provides only identifiers for filters. Other filter information can be retrieved from an Exposure object or a Butler repository.
FilterLabel does not expose a public constructor in C++, except for copy and move constructors. You can create a FilterLabel by calling one of the from* factory methods, or (in Python) through a keyword-only constructor.
Not all of a FilterLabel object's labels need be defined, but at least one is guaranteed to be present.
Definition at line 58 of file FilterLabel.h.
|
default |
|
defaultnoexcept |
|
defaultnoexcept |
|
override |
Create a new object that is a copy of this one.
Definition at line 156 of file FilterLabel.cc.
|
staticinherited |
Dynamically cast a shared_ptr.
Dynamically cast a shared pointer and raise on failure.
You must provide an explicit template instantiation in the .cc file for each class that inherits from PersistableFacade. Designed to work around RTTI issues on macOS with hidden symbols;
| lsst::pex::exceptions::LogicError | if the cast fails |
param[in] ptr The pointer to be cast.
| lsst::pex::exceptions::TypeError | If the dynamic cast fails. |
Definition at line 218 of file Persistable.cc.
|
inlineoverridenoexcept |
Definition at line 123 of file FilterLabel.h.
|
static |
Construct a FilterLabel from specific inputs.
Definition at line 72 of file FilterLabel.cc.
|
static |
Construct a FilterLabel from specific inputs.
Definition at line 68 of file FilterLabel.cc.
|
static |
Construct a FilterLabel from specific inputs.
Definition at line 74 of file FilterLabel.cc.
| std::string lsst::afw::image::FilterLabel::getBandLabel | ( | ) | const |
Return the band label.
In Python, this is replaced by the band read-only property.
| lsst::pex::exceptions::LogicError | Thrown if hasBandLabel() is false. |
Definition at line 87 of file FilterLabel.cc.
|
overrideprotectednoexcept |
Definition at line 232 of file FilterLabel.cc.
| std::string lsst::afw::image::FilterLabel::getPhysicalLabel | ( | ) | const |
Return the physical filter label.
In Python, this is replaced by the physicalLabel read-only property.
| lsst::pex::exceptions::LogicError | Thrown if hasPhysicalLabel() is false. |
Definition at line 98 of file FilterLabel.cc.
|
overrideprotectednoexcept |
Definition at line 233 of file FilterLabel.cc.
|
noexcept |
Return whether the filter label names a band.
Definition at line 85 of file FilterLabel.cc.
|
overridenoexcept |
Return a hash of this object.
Definition at line 126 of file FilterLabel.cc.
|
noexcept |
Return whether the filter label names a physical filter.
Definition at line 96 of file FilterLabel.cc.
|
inlineoverridenoexcept |
All filter labels are always persistable.
Definition at line 128 of file FilterLabel.h.
|
inlinenoexcept |
Filter labels compare equal if their components are equal.
Definition at line 112 of file FilterLabel.h.
|
defaultnoexcept |
|
default |
|
noexcept |
Filter labels compare equal if their components are equal.
Definition at line 107 of file FilterLabel.cc.
|
inlinestaticinherited |
Read an object from an already open FITS object.
| [in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
Definition at line 183 of file Persistable.h.
|
override |
Return a string representation of this object.
Definition at line 137 of file FilterLabel.cc.
|
overrideprotected |
Definition at line 235 of file FilterLabel.cc.