Class SimpleRecord

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class SimpleRecord : public lsst::afw::table::BaseRecord

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()