LSST Applications
21.0.0+75b29a8a7f,21.0.0+e70536a077,21.0.0-1-ga51b5d4+62c747d40b,21.0.0-10-gbfb87ad6+1472003707,21.0.0-12-g51f5968d7+47cba9fc36,21.0.0-2-g103fe59+b7c383bd9a,21.0.0-2-g1367e85+48b67f5d39,21.0.0-2-g45278ab+e70536a077,21.0.0-2-g4bc9b9f+3fe6d1dcab,21.0.0-2-g5242d73+48b67f5d39,21.0.0-2-g54e2caa+df6b29423d,21.0.0-2-g7f82c8f+6775bdeedd,21.0.0-2-g8dde007+9e83774735,21.0.0-2-g8f08a60+9402881886,21.0.0-2-ga326454+6775bdeedd,21.0.0-2-ga63a54e+1ed2fee5f8,21.0.0-2-gde069b7+26c92b3210,21.0.0-2-gecfae73+adba745f5b,21.0.0-2-gfc62afb+48b67f5d39,21.0.0-23-ga70773b+149afabbf4,21.0.0-25-g85b8e57b+773e41f820,21.0.0-3-g357aad2+5f60c9c50d,21.0.0-3-g4be5c26+48b67f5d39,21.0.0-3-g65f322c+73694798db,21.0.0-3-g6d51c4a+ed84a54361,21.0.0-3-g7d9da8d+75b29a8a7f,21.0.0-3-gaa929c8+6a9f1b9ca4,21.0.0-3-ge02ed75+ed84a54361,21.0.0-4-g3300ddd+e70536a077,21.0.0-4-gc004bbf+542906830e,21.0.0-4-gccdca77+f94adcd104,21.0.0-4-gd1c1571+0451688df7,21.0.0-5-g7b47fff+ed84a54361,21.0.0-5-gb155db7+58d9d10622,21.0.0-5-gdf36809+637e4641ee,21.0.0-6-g722ad07+d350a29088,21.0.0-7-gfd72ab2+fa9972ccfc,21.0.0-8-gfbe0b4b+6a9f1b9ca4,w.2021.05
LSST Data Management Base Package
|
Holds an integer identifier for an LSST filter. More...
#include <Filter.h>
Public Member Functions | |
Filter (std::string const &name, bool const force=false) | |
Creates a Filter with the given name. More... | |
Filter (int id=UNKNOWN) | |
Creates a Filter with the given identifier. More... | |
Filter (std::shared_ptr< lsst::daf::base::PropertySet const > metadata, bool const force=false) | |
Create a Filter from a PropertySet (e.g. More... | |
Filter (Filter const &)=default | |
Filter (Filter &&) noexcept=default | |
Filter & | operator= (Filter const &)=default |
Filter & | operator= (Filter &&) noexcept=default |
~Filter () noexcept=default | |
bool | operator== (Filter const &rhs) const noexcept |
Are two filters identical? More... | |
bool | operator!= (Filter const &rhs) const noexcept |
std::size_t | hash_value () const noexcept override |
Return a hash of this object. More... | |
int | getId () const noexcept |
Return a Filter's integral id. More... | |
std::string const & | getName () const noexcept |
Return a Filter's name. More... | |
std::string const & | getCanonicalName () const |
Return a filter's canonical name. More... | |
std::vector< std::string > | getAliases () const |
Return all aliases by which this filter is known. More... | |
FilterProperty const & | getFilterProperty () const |
Return a Filter's FilterProperty. More... | |
std::shared_ptr< typehandling::Storable > | cloneStorable () const override |
Create a new Filter that is a copy of this one. More... | |
bool | equals (typehandling::Storable const &other) const noexcept override |
Compare this object to another Storable. More... | |
bool | isPersistable () const noexcept override |
Return true if this particular object can be persisted using afw::table::io. More... | |
virtual std::string | toString () const |
Create a string representation of this object (optional operation). More... | |
void | writeFits (std::string const &fileName, std::string const &mode="w") const |
Write the object to a regular FITS file. More... | |
void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
Write the object to a FITS image in memory. More... | |
void | writeFits (fits::Fits &fitsfile) const |
Write the object to an already-open FITS object. More... | |
Static Public Member Functions | |
static void | reset () |
Clear all definitions. More... | |
static int | define (FilterProperty const &filterProperty, int id=AUTO, bool force=false) |
Define a filter name to have the specified id. More... | |
static int | defineAlias (std::string const &oldName, std::string const &newName, bool force=false) |
Define an alias for a filter. More... | |
static std::vector< std::string > | getNames () |
Return a list of known filters. More... | |
Static Public Attributes | |
static int const | AUTO = -1 |
static int const | UNKNOWN = -1 |
Protected Types | |
typedef io::OutputArchiveHandle | OutputArchiveHandle |
Protected Member Functions | |
std::string | getPersistenceName () const override |
Return the unique name used to persist this object and look up its factory. More... | |
std::string | getPythonModule () const override |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
void | write (OutputArchiveHandle &handle) const override |
Write the object to one or more catalogs. More... | |
Static Protected Member Functions | |
template<class T > | |
static bool | singleClassEquals (T const &lhs, Storable const &rhs) |
Test if a Storable is of a particular class and equal to another object. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, Storable const &storable) |
Output operator for Storable. More... | |
|
protectedinherited |
Definition at line 108 of file Persistable.h.
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
|
default |
|
defaultnoexcept |
|
defaultnoexcept |
|
overridevirtual |
Create a new Filter that is a copy of this one.
Reimplemented from lsst::afw::typehandling::Storable.
|
static |
Define a filter name to have the specified id.
If id == Filter::AUTO a value will be chosen for you.
It is an error to attempt to change a name's id (unless you specify force)
Definition at line 256 of file Filter.cc.
|
static |
Define an alias for a filter.
oldName | old name for Filter |
newName | new name for Filter |
force | force an alias even if newName is already in use |
Definition at line 289 of file Filter.cc.
|
overridevirtualnoexcept |
Compare this object to another Storable.
*this == other
if other
is a Filter; otherwise false
. Reimplemented from lsst::afw::typehandling::Storable.
Definition at line 180 of file Filter.cc.
std::vector< std::string > lsst::afw::image::Filter::getAliases | ( | ) | const |
Return all aliases by which this filter is known.
The list excludes the canonical name
Definition at line 146 of file Filter.cc.
|
inline |
FilterProperty const & lsst::afw::image::Filter::getFilterProperty | ( | ) | const |
Return a Filter's FilterProperty.
Definition at line 355 of file Filter.cc.
|
inlinenoexcept |
|
inlinenoexcept |
|
static |
|
overrideprotectedvirtual |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented from lsst::afw::table::io::Persistable.
|
overrideprotectedvirtual |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented from lsst::afw::table::io::Persistable.
|
overridevirtualnoexcept |
Return a hash of this object.
Reimplemented from lsst::afw::typehandling::Storable.
Definition at line 234 of file Filter.cc.
|
overridevirtualnoexcept |
Return true if this particular object can be persisted using afw::table::io.
Reimplemented from lsst::afw::table::io::Persistable.
|
inlinenoexcept |
|
noexcept |
|
inlinestatic |
|
inlinestaticprotectedinherited |
Test if a Storable is of a particular class and equal to another object.
This method template simplifies implementations of equals that delegate to operator==
without supporting cross-class comparisons.
T | The class expected of the two objects to be compared. |
lhs,rhs | The objects to compare. Note that rhs need not be a T , while lhs must be. |
true
if rhs
is a T
and lhs == rhs
; false
otherwise.operator==
. Most implementations of operator==
do not throw.operator==
with both arguments of compile-time type T const&
. Its use is not recommended if there would be any ambiguity as to which operator==
gets picked by overload resolution.This method template is typically called from equals as:
bool MyType::equals(Storable const& other) const noexcept { return singleClassEquals(*this, other); }
Definition at line 151 of file Storable.h.
|
virtualinherited |
Create a string representation of this object (optional operation).
UnsupportedOperationException | Thrown if this object does not have a string representation. |
__repr__
. Reimplemented in lsst::afw::typehandling::StorableHelper< Base >, lsst::afw::image::VisitInfo, lsst::afw::image::PhotoCalib, lsst::afw::image::FilterLabel, lsst::afw::geom::SkyWcs, and lsst::afw::geom::polygon::Polygon.
Definition at line 40 of file Storable.cc.
|
overrideprotectedvirtual |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 224 of file Filter.cc.
|
inherited |
Write the object to an already-open FITS object.
[in] | fitsfile | Open FITS object to write to. |
Definition at line 18 of file Persistable.cc.
|
inherited |
Write the object to a FITS image in memory.
[in] | manager | Name of the file to write to. |
[in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Definition at line 29 of file Persistable.cc.
|
inherited |
Write the object to a regular FITS file.
[in] | fileName | Name of the file to write to. |
[in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Definition at line 24 of file Persistable.cc.
|
related |
Output operator for Storable.
os | the desired output stream |
storable | the object to print |
os
UnsupportedOperationException | Thrown if storable does not have an implementation of Storable::toString. |
Definition at line 174 of file Storable.h.