File Simple.h¶
-
namespace
lsst
Class for a simple mapping implementing a generic AstrometryTransform.
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.
A base class for image defects
Numeric constants used by the Integrate.h integrator routines.
Compute Image Statistics
- Note
Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.
- Note
The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.
-
namespace
afw
-
namespace
table
-
class
SimpleRecord
: public lsst::afw::table::BaseRecord - #include <Simple.h>
Record class that must contain a unique ID field and a celestial coordinate field.
SimpleTable / SimpleRecord are intended to be the base class for records representing astronomical objects. In additional to the minimal schema and the convenience accessors it allows, a SimpleTable may hold an IdFactory object that is used to assign unique IDs to new records.
Subclassed by lsst::afw::table::SourceRecord
Unnamed Group
-
RecordId
getId
() const Convenience accessors for the keys in the minimal reference schema.
-
void
setId
(RecordId id)
-
lsst::geom::SpherePoint
getCoord
() const
-
void
setCoord
(lsst::geom::SpherePoint const &coord)
-
lsst::geom::Angle
getRa
() const
-
void
setRa
(lsst::geom::Angle ra)
-
lsst::geom::Angle
getDec
() const
-
void
setDec
(lsst::geom::Angle dec)
Public Types
-
typedef SimpleTable
Table
-
typedef ColumnViewT<SimpleRecord>
ColumnView
-
typedef SortedCatalogT<SimpleRecord>
Catalog
-
typedef SortedCatalogT<SimpleRecord const>
ConstCatalog
Public Functions
-
SimpleRecord
(ConstructionToken const &token, detail::RecordData &&data) Constructor used by SimpleTable.
While formally public, this constructor is conceptually and effectively protected, due to the (protected) ConstructionToken argument.
This is to allow make_shared to be used, as that cannot be used on a truly protected or private constructor.
-
std::shared_ptr<SimpleTable const>
getTable
() const
-
SimpleRecord
(const SimpleRecord&)
-
SimpleRecord &
operator=
(const SimpleRecord&)
-
SimpleRecord
(SimpleRecord&&)
-
SimpleRecord &
operator=
(SimpleRecord&&)
-
~SimpleRecord
()
Friends
-
friend
lsst::afw::table::SimpleTable
-
RecordId
-
class
SimpleTable
: public lsst::afw::table::BaseTable - #include <Simple.h>
Table class that must contain a unique ID field and a celestial coordinate field.
Record class that must contain a unique ID field and a celestial coordinate field.
SimpleTable / SimpleRecord are intended to be the base class for records representing astronomical objects. In additional to the minimal schema and the convenience accessors it allows, a SimpleTable may hold an IdFactory object that is used to assign unique IDs to new records.
Subclassed by lsst::afw::table::SourceTable
Unnamed Group
-
static Key<RecordId>
getIdKey
() Key for the unique ID.
Get keys for standard fields shared by all references.
These keys are used to implement getters and setters on SimpleRecord.
Public Types
-
typedef SimpleRecord
Record
-
typedef ColumnViewT<SimpleRecord>
ColumnView
-
typedef SortedCatalogT<Record>
Catalog
-
typedef SortedCatalogT<Record const>
ConstCatalog
Public Functions
-
std::shared_ptr<IdFactory>
getIdFactory
() Return the object that generates IDs for the table (may be null).
-
std::shared_ptr<IdFactory const>
getIdFactory
() const Return the object that generates IDs for the table (may be null).
Switch to a new IdFactory object that generates IDs for the table (may be null).
-
std::shared_ptr<SimpleTable>
clone
() const Return a polymorphic deep copy of the table.
Derived classes should reimplement by static-casting the output of _clone to a pointer-to-derived to simulate covariant return types.
Cloning a table does not clone its associated records; the new table produced by clone() does not have any associated records.
-
std::shared_ptr<SimpleRecord>
makeRecord
() Default-construct an associated record.
Derived classes should reimplement by static-casting the output of _makeRecord to the appropriate BaseRecord subclass to simulate covariant return types.
-
std::shared_ptr<SimpleRecord>
copyRecord
(BaseRecord const &other) Deep-copy a record, requiring that it have the same schema as this table.
Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.
Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn’t anything new.
Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.
This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.
-
std::shared_ptr<SimpleRecord>
copyRecord
(BaseRecord const &other, SchemaMapper const &mapper) Deep-copy a record, requiring that it have the same schema as this table.
Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.
Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn’t anything new.
Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.
This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.
-
SimpleTable &
operator=
(SimpleTable const&)
-
SimpleTable &
operator=
(SimpleTable&&)
-
~SimpleTable
()
Public Static Functions
Construct a new table.
Note that not passing an
IdFactory at all will call the other override of make(), which will set the ID factory to IdFactory::makeSimple().- Parameters
[in] schema
: Schema that defines the fields, offsets, and record size for the table.[in] idFactory
: Factory class to generate record IDs when they are not explicitly given. If null, record IDs will default to zero.
-
static std::shared_ptr<SimpleTable>
make
(Schema const &schema) Construct a new table.
This overload sets the ID factory to
IdFactory::makeSimple().- Parameters
[in] schema
: Schema that defines the fields, offsets, and record size for the table.
-
static Schema
makeMinimalSchema
() Return a minimal schema for Simple tables and records.
The returned schema can and generally should be modified further, but many operations on SimpleRecords will assume that at least the fields provided by this routine are present.
-
static bool
checkSchema
(Schema const &other) Return true if the given schema is a valid SimpleTable schema.
This will always be true if the given schema was originally constructed using makeMinimalSchema(), and will rarely be true otherwise.
Protected Functions
-
SimpleTable
(SimpleTable const &other)
-
SimpleTable
(SimpleTable &&other)
-
std::shared_ptr<BaseRecord>
_makeRecord
() Default-construct an associated record (protected implementation).
Private Functions
Private Static Functions
-
static MinimalSchema &
getMinimalSchema
()¶
Friends
-
friend
lsst::afw::table::io::FitsWriter
-
static Key<RecordId>
-
class
-
namespace