lsst.afw  14.0-22-gc76603d1b
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | 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 std::enable_shared_from_this< BaseTable > lsst::daf::base::Citizen

Public Types

typedef SourceRecord Record
 
typedef SourceColumnViewT< SourceRecord > ColumnView
 
typedef SortedCatalogT< Record > Catalog
 
typedef SortedCatalogT< Record const > ConstCatalog
 
typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

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...
 
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< 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...
 
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...
 
T shared_from_this (T... args)
 
std::string repr () const
 
void markPersistent (void)
 
memId getId () const
 

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 bool hasBeenCorrupted ()
 
static memId getNextMemId ()
 
static int init ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static int census (int, memId startingMemId=0)
 
static void census (std::ostream &stream, memId startingMemId=0)
 
static const std::vector< const Citizen *> * census ()
 
static memId setNewCallbackId (memId id)
 
static memId setNewCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memId setDeleteCallbackId (memId id)
 
static memNewCallback setNewCallback (memNewCallback func)
 
static memCallback setDeleteCallback (memCallback func)
 
static memCallback setCorruptionCallback (memCallback func)
 
static Key< RecordId > getIdKey ()
 Get keys for standard fields shared by all references. More...
 
static CoordKey getCoordKey ()
 Key for the celestial coordinates. More...
 

Public Attributes

 magicSentinel
 

Static Public Attributes

static int nRecordsPerBlock
 Number of records in each memory block. 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...
 
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...
 

Friends

class io::FitsWriter
 
class SourceRecord
 

Detailed Description

Table class that contains measurements made on a single exposure.

Definition at line 205 of file Source.h.

Member Typedef Documentation

◆ Catalog

Definition at line 210 of file Source.h.

◆ ColumnView

Definition at line 209 of file Source.h.

◆ ConstCatalog

Definition at line 211 of file Source.h.

◆ Record

Definition at line 208 of file Source.h.

Constructor & Destructor Documentation

◆ SourceTable() [1/2]

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

◆ SourceTable() [2/2]

lsst::afw::table::SourceTable::SourceTable ( SourceTable const &  other)
protected

Member Function Documentation

◆ _clone()

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

Clone implementation with noncovariant return types.

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

◆ _makeRecord()

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

Default-construct an associated record (protected implementation).

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

◆ checkSchema()

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.

◆ clone()

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.

◆ copyRecord() [1/2]

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.

◆ copyRecord() [2/2]

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.

◆ defineApFlux()

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.

◆ defineCalibFlux()

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.

◆ defineCentroid()

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.

◆ defineInstFlux()

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.

◆ defineModelFlux()

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.

◆ definePsfFlux()

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.

◆ defineShape()

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.

◆ getApFluxDefinition()

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.

◆ getApFluxErrKey()

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.

◆ getApFluxFlagKey()

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.

◆ getApFluxKey()

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.

◆ getApFluxSlot()

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

Definition at line 406 of file Source.h.

◆ getBufferSize()

std::size_t lsst::afw::table::BaseTable::getBufferSize ( ) const
inherited

Return the number of additional records space has been already been allocated for.

Unlike std::vector::capacity, this does not factor in existing records in any way.

◆ getCalibFluxDefinition()

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.

◆ getCalibFluxErrKey()

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.

◆ getCalibFluxFlagKey()

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.

◆ getCalibFluxKey()

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.

◆ getCalibFluxSlot()

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

Definition at line 532 of file Source.h.

◆ getCentroidDefinition()

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.

◆ getCentroidErrKey()

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.

◆ getCentroidFlagKey()

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.

◆ getCentroidKey()

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.

◆ getCentroidSlot()

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

Definition at line 595 of file Source.h.

◆ getCoordKey()

static CoordKey lsst::afw::table::SimpleTable::getCoordKey ( )
inlinestaticinherited

Key for the celestial coordinates.

Definition at line 156 of file Simple.h.

◆ getIdFactory() [1/2]

std::shared_ptr<IdFactory> lsst::afw::table::SimpleTable::getIdFactory ( )
inlineinherited

Return the object that generates IDs for the table (may be null).

Definition at line 139 of file Simple.h.

◆ getIdFactory() [2/2]

std::shared_ptr<IdFactory const> lsst::afw::table::SimpleTable::getIdFactory ( ) const
inlineinherited

Return the object that generates IDs for the table (may be null).

Definition at line 142 of file Simple.h.

◆ getIdKey()

static Key<RecordId> lsst::afw::table::SimpleTable::getIdKey ( )
inlinestaticinherited

Get keys for standard fields shared by all references.

These keys are used to implement getters and setters on SimpleRecord.Key for the unique ID.

Definition at line 154 of file Simple.h.

◆ getInstFluxDefinition()

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.

◆ getInstFluxErrKey()

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.

◆ getInstFluxFlagKey()

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.

◆ getInstFluxKey()

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.

◆ getInstFluxSlot()

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

Definition at line 469 of file Source.h.

◆ getMetadata()

std::shared_ptr<daf::base::PropertyList> lsst::afw::table::BaseTable::getMetadata ( ) const
inlineinherited

Return the flexible metadata associated with the table. May be null.

Definition at line 62 of file BaseTable.h.

◆ getModelFluxDefinition()

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.

◆ getModelFluxErrKey()

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.

◆ getModelFluxFlagKey()

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.

◆ getModelFluxKey()

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.

◆ getModelFluxSlot()

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

Definition at line 343 of file Source.h.

◆ getParentKey()

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

Key for the parent ID.

Definition at line 261 of file Source.h.

◆ getPsfFluxDefinition()

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.

◆ getPsfFluxErrKey()

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.

◆ getPsfFluxFlagKey()

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.

◆ getPsfFluxKey()

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.

◆ getPsfFluxSlot()

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

Definition at line 280 of file Source.h.

◆ getSchema()

Schema lsst::afw::table::BaseTable::getSchema ( ) const
inlineinherited

Return the table's schema.

Definition at line 120 of file BaseTable.h.

◆ getSelf() [1/2]

template<typename Derived >
std::shared_ptr<Derived> lsst::afw::table::BaseTable::getSelf ( )
inlineprotectedinherited

Convenience function for static-casting shared_from_this for use by derived classes.

Definition at line 162 of file BaseTable.h.

◆ getSelf() [2/2]

template<typename Derived >
std::shared_ptr<Derived const> lsst::afw::table::BaseTable::getSelf ( ) const
inlineprotectedinherited

Convenience function for static-casting shared_from_this for use by derived classes.

Definition at line 168 of file BaseTable.h.

◆ getShapeDefinition()

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.

◆ getShapeErrKey()

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.

◆ getShapeFlagKey()

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.

◆ getShapeKey()

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.

◆ getShapeSlot()

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

Definition at line 658 of file Source.h.

◆ handleAliasChange()

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

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

◆ hasApFluxSlot()

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.

◆ hasCalibFluxSlot()

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.

◆ hasCentroidSlot()

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.

◆ hasInstFluxSlot()

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.

◆ hasModelFluxSlot()

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.

◆ hasPsfFluxSlot()

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.

◆ hasShapeSlot()

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.

◆ make() [1/2]

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

◆ make() [2/2]

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.

◆ makeMinimalSchema()

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.

◆ makeRecord()

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.

◆ popMetadata()

std::shared_ptr<daf::base::PropertyList> lsst::afw::table::BaseTable::popMetadata ( )
inlineinherited

Return the metadata and set the internal metadata to a null pointer.

Definition at line 68 of file BaseTable.h.

◆ preallocate()

void lsst::afw::table::BaseTable::preallocate ( std::size_t  nRecords)
inherited

Allocate contiguous space for new records in advance.

If a contiguous memory block for at least n additional records has already been allocated, this is a no-op. If not, a new block will be allocated, and any remaining space on the old block will go to waste; this ensures the new records will be allocated contiguously. Note that "wasted" memory is not leaked; it will be deallocated along with any records created from that block when those records go out of scope.

Note that unlike std::vector::reserve, this does not factor in existing records in any way; nRecords refers to a number of new records to reserve space for.

◆ setIdFactory()

void lsst::afw::table::SimpleTable::setIdFactory ( std::shared_ptr< IdFactory >  f)
inlineinherited

Switch to a new IdFactory – object that generates IDs for the table (may be null).

Definition at line 145 of file Simple.h.

◆ setMetadata()

void lsst::afw::table::BaseTable::setMetadata ( std::shared_ptr< daf::base::PropertyList > const &  metadata)
inlineinherited

Set the flexible metadata associated with the table. May be null.

Definition at line 65 of file BaseTable.h.

Friends And Related Function Documentation

◆ io::FitsWriter

friend class io::FitsWriter
friend

Definition at line 746 of file Source.h.

◆ SourceRecord

friend class SourceRecord
friend

Definition at line 747 of file Source.h.

Member Data Documentation

◆ nRecordsPerBlock

int lsst::afw::table::BaseTable::nRecordsPerBlock
staticinherited

Number of records in each memory block.

Definition at line 59 of file BaseTable.h.


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