lsst.afw  13.0-73-gb2a4e38
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
lsst::afw::table::SourceTable Class Reference

Table class that contains measurements made on a single exposure. More...

#include <Source.h>

Inheritance diagram for lsst::afw::table::SourceTable:
lsst::afw::table::SimpleTable lsst::afw::table::BaseTable

Public Types

typedef SourceRecord Record
 
typedef SourceColumnViewT
< SourceRecord > 
ColumnView
 
typedef SortedCatalogT< Record > Catalog
 
typedef SortedCatalogT< Record
const > 
ConstCatalog
 
- Public Types inherited from lsst::afw::table::SimpleTable
typedef SimpleRecord Record
 
typedef ColumnViewT< SimpleRecord > ColumnView
 
typedef SortedCatalogT< Record > Catalog
 
typedef SortedCatalogT< Record
const > 
ConstCatalog
 
- Public Types inherited from lsst::afw::table::BaseTable
typedef BaseRecord Record
 The associated record class. More...
 
typedef BaseColumnView ColumnView
 The associated ColumnView class. More...
 
typedef CatalogT< Record > Catalog
 Template of CatalogT used to hold records of the associated type. More...
 
typedef CatalogT< Record const > ConstCatalog
 Template of CatalogT used to hold const records of the associated type. More...
 

Public Member Functions

std::shared_ptr< SourceTable > clone () const
 Return a polymorphic deep copy of the table. More...
 
std::shared_ptr< SourceRecord > makeRecord ()
 Default-construct an associated record. More...
 
std::shared_ptr< SourceRecord > copyRecord (BaseRecord const &other)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
std::shared_ptr< SourceRecord > copyRecord (BaseRecord const &other, SchemaMapper const &mapper)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
FluxSlotDefinition const & getPsfFluxSlot () const
 
void definePsfFlux (std::string const &name)
 Set the measurement used for the PsfFlux slot. More...
 
std::string getPsfFluxDefinition () const
 Return the name of the field used for the PsfFlux slot. More...
 
bool hasPsfFluxSlot () const
 Return true if the PsfFlux slot corresponds to a valid field. More...
 
FluxSlotDefinition::MeasKey getPsfFluxKey () const
 Return the key used for the PsfFlux slot measurement value. More...
 
FluxSlotDefinition::ErrKey getPsfFluxErrKey () const
 Return the key used for the PsfFlux slot uncertainty. More...
 
Key< Flag > getPsfFluxFlagKey () const
 Return the key used for the PsfFlux slot failure flag. More...
 
FluxSlotDefinition const & getModelFluxSlot () const
 
void defineModelFlux (std::string const &name)
 Set the measurement used for the ModelFlux slot. More...
 
std::string getModelFluxDefinition () const
 Return the name of the field used for the ModelFlux slot. More...
 
bool hasModelFluxSlot () const
 Return true if the ModelFlux slot corresponds to a valid field. More...
 
FluxSlotDefinition::MeasKey getModelFluxKey () const
 Return the key used for the ModelFlux slot measurement value. More...
 
FluxSlotDefinition::ErrKey getModelFluxErrKey () const
 Return the key used for the ModelFlux slot uncertainty. More...
 
Key< Flag > getModelFluxFlagKey () const
 Return the key used for the ModelFlux slot failure flag. More...
 
FluxSlotDefinition const & getApFluxSlot () const
 
void defineApFlux (std::string const &name)
 Set the measurement used for the ApFlux slot. More...
 
std::string getApFluxDefinition () const
 Return the name of the field used for the ApFlux slot. More...
 
bool hasApFluxSlot () const
 Return true if the ApFlux slot corresponds to a valid field. More...
 
FluxSlotDefinition::MeasKey getApFluxKey () const
 Return the key used for the ApFlux slot measurement value. More...
 
FluxSlotDefinition::ErrKey getApFluxErrKey () const
 Return the key used for the ApFlux slot uncertainty. More...
 
Key< Flag > getApFluxFlagKey () const
 Return the key used for the ApFlux slot failure flag. More...
 
FluxSlotDefinition const & getInstFluxSlot () const
 
void defineInstFlux (std::string const &name)
 Set the measurement used for the InstFlux slot. More...
 
std::string getInstFluxDefinition () const
 Return the name of the field used for the InstFlux slot. More...
 
bool hasInstFluxSlot () const
 Return true if the InstFlux slot corresponds to a valid field. More...
 
FluxSlotDefinition::MeasKey getInstFluxKey () const
 Return the key used for the InstFlux slot measurement value. More...
 
FluxSlotDefinition::ErrKey getInstFluxErrKey () const
 Return the key used for the InstFlux slot uncertainty. More...
 
Key< Flag > getInstFluxFlagKey () const
 Return the key used for the InstFlux slot failure flag. More...
 
FluxSlotDefinition const & getCalibFluxSlot () const
 
void defineCalibFlux (std::string const &name)
 Set the measurement used for the CalibFlux slot. More...
 
std::string getCalibFluxDefinition () const
 Return the name of the field used for the CalibFlux slot. More...
 
bool hasCalibFluxSlot () const
 Return true if the CalibFlux slot corresponds to a valid field. More...
 
FluxSlotDefinition::MeasKey getCalibFluxKey () const
 Return the key used for the CalibFlux slot measurement value. More...
 
FluxSlotDefinition::ErrKey getCalibFluxErrKey () const
 Return the key used for the CalibFlux slot uncertainty. More...
 
Key< Flag > getCalibFluxFlagKey () const
 Return the key used for the CalibFlux slot failure flag. More...
 
CentroidSlotDefinition const & getCentroidSlot () const
 
void defineCentroid (std::string const &name)
 Set the measurement used for the Centroid slot. More...
 
std::string getCentroidDefinition () const
 Return the name of the field used for the Centroid slot. More...
 
bool hasCentroidSlot () const
 Return true if the Centroid slot corresponds to a valid field. More...
 
CentroidSlotDefinition::MeasKey getCentroidKey () const
 Return the key used for the Centroid slot measurement value. More...
 
CentroidSlotDefinition::ErrKey getCentroidErrKey () const
 Return the key used for the Centroid slot uncertainty. More...
 
Key< Flag > getCentroidFlagKey () const
 Return the key used for the Centroid slot failure flag. More...
 
ShapeSlotDefinition const & getShapeSlot () const
 
void defineShape (std::string const &name)
 Set the measurement used for the Shape slot. More...
 
std::string getShapeDefinition () const
 Return the name of the field used for the Shape slot. More...
 
bool hasShapeSlot () const
 Return true if the Shape slot corresponds to a valid field. More...
 
ShapeSlotDefinition::MeasKey getShapeKey () const
 Return the key used for the Shape slot measurement value. More...
 
ShapeSlotDefinition::ErrKey getShapeErrKey () const
 Return the key used for the Shape slot uncertainty. More...
 
Key< Flag > getShapeFlagKey () const
 Return the key used for the Shape slot failure flag. More...
 
- Public Member Functions inherited from lsst::afw::table::SimpleTable
std::shared_ptr< IdFactory > getIdFactory ()
 Return the object that generates IDs for the table (may be null). More...
 
std::shared_ptr< IdFactory const > getIdFactory () const
 Return the object that generates IDs for the table (may be null). More...
 
void setIdFactory (std::shared_ptr< IdFactory > f)
 Switch to a new IdFactory – object that generates IDs for the table (may be null). More...
 
std::shared_ptr< SimpleTable > clone () const
 Return a polymorphic deep copy of the table. More...
 
std::shared_ptr< SimpleRecord > makeRecord ()
 Default-construct an associated record. More...
 
std::shared_ptr< SimpleRecord > copyRecord (BaseRecord const &other)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
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. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseTable
std::shared_ptr
< daf::base::PropertyList > 
getMetadata () const
 Return the flexible metadata associated with the table. May be null. More...
 
void setMetadata (std::shared_ptr< daf::base::PropertyList > const &metadata)
 Set the flexible metadata associated with the table. May be null. More...
 
std::shared_ptr
< daf::base::PropertyList > 
popMetadata ()
 Return the metadata and set the internal metadata to a null pointer. More...
 
std::shared_ptr< BaseTable > clone () const
 Return a polymorphic deep copy of the table. More...
 
std::shared_ptr< BaseRecord > makeRecord ()
 Default-construct an associated record. More...
 
std::shared_ptr< BaseRecord > copyRecord (BaseRecord const &input)
 Deep-copy a record, requiring that it have the same schema as this table. More...
 
std::shared_ptr< BaseRecord > copyRecord (BaseRecord const &input, SchemaMapper const &mapper)
 Deep-copy a record, using a mapper to relate two schemas. More...
 
Schema getSchema () const
 Return the table's schema. More...
 
void preallocate (std::size_t nRecords)
 Allocate contiguous space for new records in advance. More...
 
std::size_t getBufferSize () const
 Return the number of additional records space has been already been allocated for. More...
 
virtual ~BaseTable ()
 

Static Public Member Functions

static std::shared_ptr
< SourceTable > 
make (Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
 Construct a new table. More...
 
static std::shared_ptr
< SourceTable > 
make (Schema const &schema)
 Construct a new table. More...
 
static Schema makeMinimalSchema ()
 Return a minimal schema for Source tables and records. More...
 
static bool checkSchema (Schema const &other)
 Return true if the given schema is a valid SourceTable schema. More...
 
static Key< RecordId > getParentKey ()
 Key for the parent ID. More...
 
- Static Public Member Functions inherited from lsst::afw::table::SimpleTable
static std::shared_ptr
< SimpleTable > 
make (Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
 Construct a new table. More...
 
static std::shared_ptr
< SimpleTable > 
make (Schema const &schema)
 Construct a new table. More...
 
static Schema makeMinimalSchema ()
 Return a minimal schema for Simple tables and records. More...
 
static bool checkSchema (Schema const &other)
 Return true if the given schema is a valid SimpleTable schema. More...
 
static Key< RecordId > getIdKey ()
 Get keys for standard fields shared by all references. More...
 
static CoordKey getCoordKey ()
 Key for the celestial coordinates. More...
 
- Static Public Member Functions inherited from lsst::afw::table::BaseTable
static std::shared_ptr< BaseTable > make (Schema const &schema)
 Construct a new table. More...
 

Protected Member Functions

 SourceTable (Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
 
 SourceTable (SourceTable const &other)
 
void handleAliasChange (std::string const &alias) override
 
std::shared_ptr< BaseTable > _clone () const override
 Clone implementation with noncovariant return types. More...
 
std::shared_ptr< BaseRecord > _makeRecord () override
 Default-construct an associated record (protected implementation). More...
 
- Protected Member Functions inherited from lsst::afw::table::SimpleTable
 SimpleTable (Schema const &schema, std::shared_ptr< IdFactory > const &idFactory)
 
 SimpleTable (SimpleTable const &other)
 
- Protected Member Functions inherited from lsst::afw::table::BaseTable
template<typename Derived >
std::shared_ptr< Derived > getSelf ()
 Convenience function for static-casting shared_from_this for use by derived classes. More...
 
template<typename Derived >
std::shared_ptr< Derived const > getSelf () const
 Convenience function for static-casting shared_from_this for use by derived classes. More...
 
 BaseTable (Schema const &schema)
 Construct from a schema. More...
 
 BaseTable (BaseTable const &other)
 Copy construct. More...
 

Friends

class io::FitsWriter
 
class SourceRecord
 

Additional Inherited Members

- Static Public Attributes inherited from lsst::afw::table::BaseTable
static int nRecordsPerBlock
 Number of records in each memory block. More...
 

Detailed Description

Table class that contains measurements made on a single exposure.

Definition at line 205 of file Source.h.

Member Typedef Documentation

Definition at line 210 of file Source.h.

Definition at line 209 of file Source.h.

Definition at line 211 of file Source.h.

Definition at line 208 of file Source.h.

Constructor & Destructor Documentation

lsst::afw::table::SourceTable::SourceTable ( Schema const &  schema,
std::shared_ptr< IdFactory > const &  idFactory 
)
protected
lsst::afw::table::SourceTable::SourceTable ( SourceTable const &  other)
protected

Member Function Documentation

std::shared_ptr<BaseTable> lsst::afw::table::SourceTable::_clone ( ) const
overrideprotectedvirtual

Clone implementation with noncovariant return types.

Reimplemented from lsst::afw::table::SimpleTable.

std::shared_ptr<BaseRecord> lsst::afw::table::SourceTable::_makeRecord ( )
overrideprotectedvirtual

Default-construct an associated record (protected implementation).

Reimplemented from lsst::afw::table::SimpleTable.

static bool lsst::afw::table::SourceTable::checkSchema ( Schema const &  other)
inlinestatic

Return true if the given schema is a valid SourceTable schema.

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

Definition at line 256 of file Source.h.

std::shared_ptr<SourceTable> lsst::afw::table::SourceTable::clone ( void  ) const
inline

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.

Definition at line 264 of file Source.h.

std::shared_ptr<SourceRecord> lsst::afw::table::SourceTable::copyRecord ( BaseRecord const &  other)
inline

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.

Definition at line 270 of file Source.h.

std::shared_ptr<SourceRecord> lsst::afw::table::SourceTable::copyRecord ( BaseRecord const &  other,
SchemaMapper const &  mapper 
)
inline

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.

Definition at line 275 of file Source.h.

void lsst::afw::table::SourceTable::defineApFlux ( std::string const &  name)
inline

Set the measurement used for the ApFlux slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_ApFlux" alias to point to the given field name prefix. See FluxSlotDefinition for more information.

Definition at line 415 of file Source.h.

void lsst::afw::table::SourceTable::defineCalibFlux ( std::string const &  name)
inline

Set the measurement used for the CalibFlux slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_CalibFlux" alias to point to the given field name prefix. See FluxSlotDefinition for more information.

Definition at line 541 of file Source.h.

void lsst::afw::table::SourceTable::defineCentroid ( std::string const &  name)
inline

Set the measurement used for the Centroid slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_Centroid" alias to point to the given field name prefix. See CentroidSlotDefinition for more information.

Definition at line 604 of file Source.h.

void lsst::afw::table::SourceTable::defineInstFlux ( std::string const &  name)
inline

Set the measurement used for the InstFlux slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_InstFlux" alias to point to the given field name prefix. See FluxSlotDefinition for more information.

Definition at line 478 of file Source.h.

void lsst::afw::table::SourceTable::defineModelFlux ( std::string const &  name)
inline

Set the measurement used for the ModelFlux slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_ModelFlux" alias to point to the given field name prefix. See FluxSlotDefinition for more information.

Definition at line 352 of file Source.h.

void lsst::afw::table::SourceTable::definePsfFlux ( std::string const &  name)
inline

Set the measurement used for the PsfFlux slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_PsfFlux" alias to point to the given field name prefix. See FluxSlotDefinition for more information.

Definition at line 289 of file Source.h.

void lsst::afw::table::SourceTable::defineShape ( std::string const &  name)
inline

Set the measurement used for the Shape slot.

The definitions for slots are actually managed by the Schema object, and its associated AliasMap, so this simply sets the "slot_Shape" alias to point to the given field name prefix. See ShapeSlotDefinition for more information.

Definition at line 667 of file Source.h.

std::string lsst::afw::table::SourceTable::getApFluxDefinition ( ) const
inline

Return the name of the field used for the ApFlux slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_ApFlux")

Definition at line 428 of file Source.h.

FluxSlotDefinition::ErrKey lsst::afw::table::SourceTable::getApFluxErrKey ( ) const
inline

Return the key used for the ApFlux slot uncertainty.

Deprecated:
in favor of getApFluxSlot().getErrKey().

Definition at line 455 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getApFluxFlagKey ( ) const
inline

Return the key used for the ApFlux slot failure flag.

Deprecated:
in favor of getApFluxSlot().getFlagKey().

Definition at line 464 of file Source.h.

FluxSlotDefinition::MeasKey lsst::afw::table::SourceTable::getApFluxKey ( ) const
inline

Return the key used for the ApFlux slot measurement value.

Deprecated:
in favor of getApFluxSlot().getMeasKey().

Definition at line 446 of file Source.h.

FluxSlotDefinition const& lsst::afw::table::SourceTable::getApFluxSlot ( ) const
inline

Definition at line 406 of file Source.h.

std::string lsst::afw::table::SourceTable::getCalibFluxDefinition ( ) const
inline

Return the name of the field used for the CalibFlux slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_CalibFlux")

Definition at line 554 of file Source.h.

FluxSlotDefinition::ErrKey lsst::afw::table::SourceTable::getCalibFluxErrKey ( ) const
inline

Return the key used for the CalibFlux slot uncertainty.

Deprecated:
in favor of getCalibFluxSlot().getErrKey().

Definition at line 581 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getCalibFluxFlagKey ( ) const
inline

Return the key used for the CalibFlux slot failure flag.

Deprecated:
in favor of getCalibFluxSlot().getFlagKey().

Definition at line 590 of file Source.h.

FluxSlotDefinition::MeasKey lsst::afw::table::SourceTable::getCalibFluxKey ( ) const
inline

Return the key used for the CalibFlux slot measurement value.

Deprecated:
in favor of getCalibFluxSlot().getMeasKey().

Definition at line 572 of file Source.h.

FluxSlotDefinition const& lsst::afw::table::SourceTable::getCalibFluxSlot ( ) const
inline

Definition at line 532 of file Source.h.

std::string lsst::afw::table::SourceTable::getCentroidDefinition ( ) const
inline

Return the name of the field used for the Centroid slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_Centroid")

Definition at line 617 of file Source.h.

CentroidSlotDefinition::ErrKey lsst::afw::table::SourceTable::getCentroidErrKey ( ) const
inline

Return the key used for the Centroid slot uncertainty.

Deprecated:
in favor of getCentroidSlot().getErrKey().

Definition at line 644 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getCentroidFlagKey ( ) const
inline

Return the key used for the Centroid slot failure flag.

Deprecated:
in favor of getCentroidSlot().getFlagKey().

Definition at line 653 of file Source.h.

CentroidSlotDefinition::MeasKey lsst::afw::table::SourceTable::getCentroidKey ( ) const
inline

Return the key used for the Centroid slot measurement value.

Deprecated:
in favor of getCentroidSlot().getMeasKey().

Definition at line 635 of file Source.h.

CentroidSlotDefinition const& lsst::afw::table::SourceTable::getCentroidSlot ( ) const
inline

Definition at line 595 of file Source.h.

std::string lsst::afw::table::SourceTable::getInstFluxDefinition ( ) const
inline

Return the name of the field used for the InstFlux slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_InstFlux")

Definition at line 491 of file Source.h.

FluxSlotDefinition::ErrKey lsst::afw::table::SourceTable::getInstFluxErrKey ( ) const
inline

Return the key used for the InstFlux slot uncertainty.

Deprecated:
in favor of getInstFluxSlot().getErrKey().

Definition at line 518 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getInstFluxFlagKey ( ) const
inline

Return the key used for the InstFlux slot failure flag.

Deprecated:
in favor of getInstFluxSlot().getFlagKey().

Definition at line 527 of file Source.h.

FluxSlotDefinition::MeasKey lsst::afw::table::SourceTable::getInstFluxKey ( ) const
inline

Return the key used for the InstFlux slot measurement value.

Deprecated:
in favor of getInstFluxSlot().getMeasKey().

Definition at line 509 of file Source.h.

FluxSlotDefinition const& lsst::afw::table::SourceTable::getInstFluxSlot ( ) const
inline

Definition at line 469 of file Source.h.

std::string lsst::afw::table::SourceTable::getModelFluxDefinition ( ) const
inline

Return the name of the field used for the ModelFlux slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_ModelFlux")

Definition at line 365 of file Source.h.

FluxSlotDefinition::ErrKey lsst::afw::table::SourceTable::getModelFluxErrKey ( ) const
inline

Return the key used for the ModelFlux slot uncertainty.

Deprecated:
in favor of getModelFluxSlot().getErrKey().

Definition at line 392 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getModelFluxFlagKey ( ) const
inline

Return the key used for the ModelFlux slot failure flag.

Deprecated:
in favor of getModelFluxSlot().getFlagKey().

Definition at line 401 of file Source.h.

FluxSlotDefinition::MeasKey lsst::afw::table::SourceTable::getModelFluxKey ( ) const
inline

Return the key used for the ModelFlux slot measurement value.

Deprecated:
in favor of getModelFluxSlot().getMeasKey().

Definition at line 383 of file Source.h.

FluxSlotDefinition const& lsst::afw::table::SourceTable::getModelFluxSlot ( ) const
inline

Definition at line 343 of file Source.h.

static Key<RecordId> lsst::afw::table::SourceTable::getParentKey ( )
inlinestatic

Key for the parent ID.

Definition at line 261 of file Source.h.

std::string lsst::afw::table::SourceTable::getPsfFluxDefinition ( ) const
inline

Return the name of the field used for the PsfFlux slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_PsfFlux")

Definition at line 302 of file Source.h.

FluxSlotDefinition::ErrKey lsst::afw::table::SourceTable::getPsfFluxErrKey ( ) const
inline

Return the key used for the PsfFlux slot uncertainty.

Deprecated:
in favor of getPsfFluxSlot().getErrKey().

Definition at line 329 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getPsfFluxFlagKey ( ) const
inline

Return the key used for the PsfFlux slot failure flag.

Deprecated:
in favor of getPsfFluxSlot().getFlagKey().

Definition at line 338 of file Source.h.

FluxSlotDefinition::MeasKey lsst::afw::table::SourceTable::getPsfFluxKey ( ) const
inline

Return the key used for the PsfFlux slot measurement value.

Deprecated:
in favor of getPsfFluxSlot().getMeasKey().

Definition at line 320 of file Source.h.

FluxSlotDefinition const& lsst::afw::table::SourceTable::getPsfFluxSlot ( ) const
inline

Definition at line 280 of file Source.h.

std::string lsst::afw::table::SourceTable::getShapeDefinition ( ) const
inline

Return the name of the field used for the Shape slot.

Exceptions
pex::exceptions::NotFoundErrorif the slot is not defined.
Deprecated:
in favor of
getSchema().getAliasMap()->get("slot_Shape")

Definition at line 680 of file Source.h.

ShapeSlotDefinition::ErrKey lsst::afw::table::SourceTable::getShapeErrKey ( ) const
inline

Return the key used for the Shape slot uncertainty.

Deprecated:
in favor of getShapeSlot().getErrKey().

Definition at line 707 of file Source.h.

Key<Flag> lsst::afw::table::SourceTable::getShapeFlagKey ( ) const
inline

Return the key used for the Shape slot failure flag.

Deprecated:
in favor of getShapeSlot().getFlagKey().

Definition at line 716 of file Source.h.

ShapeSlotDefinition::MeasKey lsst::afw::table::SourceTable::getShapeKey ( ) const
inline

Return the key used for the Shape slot measurement value.

Deprecated:
in favor of getShapeSlot().getMeasKey().

Definition at line 698 of file Source.h.

ShapeSlotDefinition const& lsst::afw::table::SourceTable::getShapeSlot ( ) const
inline

Definition at line 658 of file Source.h.

void lsst::afw::table::SourceTable::handleAliasChange ( std::string const &  alias)
overrideprotectedvirtual

Reimplemented from lsst::afw::table::BaseTable.

bool lsst::afw::table::SourceTable::hasApFluxSlot ( ) const
inline

Return true if the ApFlux slot corresponds to a valid field.

Deprecated:
in favor of getApFluxSlot().isValid().

Definition at line 437 of file Source.h.

bool lsst::afw::table::SourceTable::hasCalibFluxSlot ( ) const
inline

Return true if the CalibFlux slot corresponds to a valid field.

Deprecated:
in favor of getCalibFluxSlot().isValid().

Definition at line 563 of file Source.h.

bool lsst::afw::table::SourceTable::hasCentroidSlot ( ) const
inline

Return true if the Centroid slot corresponds to a valid field.

Deprecated:
in favor of getCentroidSlot().isValid().

Definition at line 626 of file Source.h.

bool lsst::afw::table::SourceTable::hasInstFluxSlot ( ) const
inline

Return true if the InstFlux slot corresponds to a valid field.

Deprecated:
in favor of getInstFluxSlot().isValid().

Definition at line 500 of file Source.h.

bool lsst::afw::table::SourceTable::hasModelFluxSlot ( ) const
inline

Return true if the ModelFlux slot corresponds to a valid field.

Deprecated:
in favor of getModelFluxSlot().isValid().

Definition at line 374 of file Source.h.

bool lsst::afw::table::SourceTable::hasPsfFluxSlot ( ) const
inline

Return true if the PsfFlux slot corresponds to a valid field.

Deprecated:
in favor of getPsfFluxSlot().isValid().

Definition at line 311 of file Source.h.

bool lsst::afw::table::SourceTable::hasShapeSlot ( ) const
inline

Return true if the Shape slot corresponds to a valid field.

Deprecated:
in favor of getShapeSlot().isValid().

Definition at line 689 of file Source.h.

static std::shared_ptr<SourceTable> lsst::afw::table::SourceTable::make ( Schema const &  schema,
std::shared_ptr< IdFactory > const &  idFactory 
)
static

Construct a new table.

Parameters
[in]schemaSchema that defines the fields, offsets, and record size for the table.
[in]idFactoryFactory class to generate record IDs when they are not explicitly given. If null, record IDs will default to zero.

Note that not passing an IdFactory at all will call the other override of make(), which will set the ID factory to IdFactory::makeSimple().

static std::shared_ptr<SourceTable> lsst::afw::table::SourceTable::make ( Schema const &  schema)
inlinestatic

Construct a new table.

Parameters
[in]schemaSchema that defines the fields, offsets, and record size for the table.

This overload sets the ID factory to IdFactory::makeSimple().

Definition at line 232 of file Source.h.

static Schema lsst::afw::table::SourceTable::makeMinimalSchema ( )
inlinestatic

Return a minimal schema for Source tables and records.

The returned schema can and generally should be modified further, but many operations on sources will assume that at least the fields provided by this routine are present.

Keys for the standard fields added by this routine can be obtained from other static member functions of the SourceTable class.

Definition at line 244 of file Source.h.

std::shared_ptr<SourceRecord> lsst::afw::table::SourceTable::makeRecord ( )
inline

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.

Definition at line 267 of file Source.h.

Friends And Related Function Documentation

friend class io::FitsWriter
friend

Definition at line 746 of file Source.h.

friend class SourceRecord
friend

Definition at line 747 of file Source.h.


The documentation for this class was generated from the following file: