23 #ifndef AFW_TABLE_Simple_h_INCLUDED
24 #define AFW_TABLE_Simple_h_INCLUDED
141 Schema r = getMinimalSchema().schema;
180 return std::static_pointer_cast<SimpleRecord>(
_makeRecord());
209 struct MinimalSchema {
218 static MinimalSchema& getMinimalSchema();
ItemVariant const * other
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Base class for all records.
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Field< T >::Value get(Key< T > const &key) const
Return the value of a field for the given key.
std::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
Base class for all tables.
std::shared_ptr< BaseRecord > copyRecord(BaseRecord const &input)
Deep-copy a record, requiring that it have the same schema as this table.
A FunctorKey used to get or set celestial coordinates from a pair of lsst::geom::Angle keys.
static std::shared_ptr< IdFactory > makeSimple()
Return a simple IdFactory that simply counts from 1.
A class used as a handle to a particular field in a table.
Defines the fields and offsets for a table.
void disconnectAliases()
Sever the connection between this schema and any others with which it shares aliases.
A mapping between the keys of two Schemas, used to copy data between them.
Record class that must contain a unique ID field and a celestial coordinate field.
lsst::geom::Angle getRa() const
ColumnViewT< SimpleRecord > ColumnView
void setCoord(lsst::geom::SpherePoint const &coord)
std::shared_ptr< SimpleTable const > getTable() const
SimpleRecord(SimpleRecord &&)=delete
RecordId getId() const
Convenience accessors for the keys in the minimal reference schema.
lsst::geom::SpherePoint getCoord() const
SimpleRecord(const SimpleRecord &)=delete
void setRa(lsst::geom::Angle ra)
void setDec(lsst::geom::Angle dec)
SimpleRecord(ConstructionToken const &token, detail::RecordData &&data)
Constructor used by SimpleTable.
SimpleRecord & operator=(const SimpleRecord &)=delete
SimpleRecord & operator=(SimpleRecord &&)=delete
SortedCatalogT< SimpleRecord const > ConstCatalog
SortedCatalogT< SimpleRecord > Catalog
lsst::geom::Angle getDec() const
Table class that must contain a unique ID field and a celestial coordinate field.
SortedCatalogT< Record const > ConstCatalog
std::shared_ptr< SimpleRecord > makeRecord()
Default-construct an associated record.
static std::shared_ptr< SimpleTable > make(Schema const &schema)
Construct a new table.
ColumnViewT< SimpleRecord > ColumnView
SimpleTable & operator=(SimpleTable &&)=delete
std::shared_ptr< IdFactory > getIdFactory()
Return the object that generates IDs for the table (may be null).
SortedCatalogT< Record > Catalog
static bool checkSchema(Schema const &other)
Return true if the given schema is a valid SimpleTable schema.
std::shared_ptr< BaseTable > _clone() const override
Clone implementation with noncovariant return types.
static Schema makeMinimalSchema()
Return a minimal schema for Simple tables and records.
std::shared_ptr< IdFactory const > getIdFactory() const
Return the object that generates IDs for the table (may be null).
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.
std::shared_ptr< BaseRecord > _makeRecord() override
Default-construct an associated record (protected implementation).
static CoordKey getCoordKey()
Key for the celestial coordinates.
void setIdFactory(std::shared_ptr< IdFactory > f)
Switch to a new IdFactory – object that generates IDs for the table (may be null).
static std::shared_ptr< SimpleTable > make(Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
Construct a new table.
static Key< RecordId > getIdKey()
Get keys for standard fields shared by all references.
std::shared_ptr< SimpleTable > clone() const
Return a polymorphic deep copy of the table.
SimpleTable(Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
std::shared_ptr< SimpleRecord > copyRecord(BaseRecord const &other)
Deep-copy a record, requiring that it have the same schema as this table.
SimpleTable & operator=(SimpleTable const &)=delete
Custom catalog class for record/table subclasses that are guaranteed to have an ID,...
Writer object for FITS binary tables.
A class representing an angle.
Point in an unspecified spherical coordinate system.
A base class for image defects.
Helper struct that contains the information passed from BaseTable to BaseRecord at construction.