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