Class ExposureTable

Nested Relationships

Inheritance Relationships

Base Type

Class Documentation

class ExposureTable : public lsst::afw::table::BaseTable

Table class used to store exposure metadata.

Record class used to store exposure metadata.

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 ExposureRecord.

static PointKey<int> getBBoxMinKey()

Key for the minimum point of the bbox.

static PointKey<int> getBBoxMaxKey()

Key for the maximum point of the bbox.

static Box2IKey getBBoxKey()

Key for the full bbox.

Public Types

typedef ExposureRecord Record
typedef ColumnViewT<ExposureRecord> ColumnView
typedef ExposureCatalogT<Record> Catalog
typedef ExposureCatalogT<Record const> ConstCatalog

Public Functions

std::shared_ptr<ExposureTable> 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<ExposureRecord> 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<ExposureRecord> 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<ExposureRecord> 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.

ExposureTable &operator=(ExposureTable const&)
ExposureTable &operator=(ExposureTable&&)
~ExposureTable()

Public Static Functions

static std::shared_ptr<ExposureTable> make(Schema const &schema)

Construct a new table.

Parameters
  • [in] schema: Schema that defines the fields, offsets, and record size for the table.

static Schema makeMinimalSchema()

Return a minimal schema for Exposure tables and records.

The returned schema can and generally should be modified further, but many operations on ExposureRecords 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 ExposureTable schema.

This will always be true if the given schema was originally constructed using makeMinimalSchema(), and will rarely be true otherwise.

Protected Functions

ExposureTable(Schema const &schema)
ExposureTable(ExposureTable const &other)
ExposureTable(ExposureTable &&other)
std::shared_ptr<BaseTable> _clone() const

Clone implementation with noncovariant return types.

std::shared_ptr<BaseRecord> _makeRecord()

Default-construct an associated record (protected implementation).

Friends

friend lsst::afw::table::ExposureTable::io::FitsWriter