lsst.afw  17.0.1-19-gee9b810f8+2
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
lsst::afw::detection::PeakRecord Class Reference

Record class that represents a peak in a Footprint. More...

#include <Peak.h>

Inheritance diagram for lsst::afw::detection::PeakRecord:
lsst::afw::table::BaseRecord lsst::daf::base::Citizen

Public Types

typedef PeakTable Table
 
typedef afw::table::ColumnViewT< PeakRecord > ColumnView
 
typedef afw::table::CatalogT< PeakRecord > Catalog
 
typedef afw::table::CatalogT< PeakRecord const > ConstCatalog
 
typedef unsigned long memId
 
typedef memId(* memNewCallback) (const memId cid)
 
typedef memId(* memCallback) (const Citizen *ptr)
 

Public Member Functions

 ~PeakRecord () override=default
 
 PeakRecord (PeakRecord const &)=delete
 
 PeakRecord (PeakRecord &&)=delete
 
PeakRecord & operator= (PeakRecord const &)=delete
 
PeakRecord & operator= (PeakRecord &&)=delete
 
std::shared_ptr< PeakTable const > getTable () const
 
Schema getSchema () const
 Return the Schema that holds this record's fields and keys. More...
 
template<typename T >
Field< T >::Element * getElement (Key< T > const &key)
 Return a pointer to the underlying elements of a field (non-const). More...
 
template<typename T >
Field< T >::Element const * getElement (Key< T > const &key) const
 Return a pointer to the underlying elements of a field (const). More...
 
template<typename T >
Field< T >::Reference operator[] (Key< T > const &key)
 Return a reference (or reference-like type) to the field's value. More...
 
template<typename T >
Field< T >::ConstReference operator[] (Key< T > const &key) const
 Return a const reference (or const-reference-like type) to the field's value. More...
 
template<typename Ref >
Ref operator[] (ReferenceFunctorKey< Ref > const &key)
 
template<typename ConstRef >
ConstRef operator[] (ConstReferenceFunctorKey< ConstRef > const &key) const
 
template<typename T >
Field< T >::Value get (Key< T > const &key) const
 Return the value of a field for the given key. More...
 
template<typename T >
T get (OutputFunctorKey< T > const &key) const
 Compute a calculated or aggregate field. More...
 
template<typename T , typename U >
void set (Key< T > const &key, U const &value)
 Set value of a field for the given key. More...
 
template<typename T , typename U >
void set (InputFunctorKey< T > const &key, U const &value)
 Set a calculated or aggregate field. More...
 
void assign (BaseRecord const &other)
 Copy all field values from other to this, requiring that they have equal schemas. More...
 
void assign (BaseRecord const &other, SchemaMapper const &mapper)
 Copy field values from other to this, using a mapper. More...
 
ndarray::Manager::Ptr getManager () const
 
std::string repr () const
 
void markPersistent (void)
 
afw::table::RecordId getId () const
 Convenience accessors for the keys in the minimal schema. More...
 
void setId (afw::table::RecordId id)
 Convenience accessors for the keys in the minimal schema. More...
 
int getIx () const
 Convenience accessors for the keys in the minimal schema. More...
 
int getIy () const
 Convenience accessors for the keys in the minimal schema. More...
 
void setIx (int ix)
 Convenience accessors for the keys in the minimal schema. More...
 
void setIy (int iy)
 Convenience accessors for the keys in the minimal schema. More...
 
lsst::geom::Point2I getI () const
 Convenience accessors for the keys in the minimal schema. More...
 
lsst::geom::Point2I getCentroid (bool) const
 Convenience accessors for the keys in the minimal schema. More...
 
float getFx () const
 Convenience accessors for the keys in the minimal schema. More...
 
float getFy () const
 Convenience accessors for the keys in the minimal schema. More...
 
void setFx (float fx)
 Convenience accessors for the keys in the minimal schema. More...
 
void setFy (float fy)
 Convenience accessors for the keys in the minimal schema. More...
 
lsst::geom::Point2D getF () const
 Convenience accessors for the keys in the minimal schema. More...
 
lsst::geom::Point2D getCentroid () const
 Convenience accessors for the keys in the minimal schema. More...
 
float getPeakValue () const
 Convenience accessors for the keys in the minimal schema. More...
 
void setPeakValue (float peakValue)
 Convenience accessors for the keys in the minimal schema. More...
 

Static Public Member Functions

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)
 

Public Attributes

 magicSentinel
 

Protected Member Functions

 PeakRecord (std::shared_ptr< PeakTable > const &table)
 
virtual void _assign (BaseRecord const &other)
 Called by assign() after transferring fields to allow subclass data members to be copied. More...
 
virtual void _stream (std::ostream &os) const
 Called by operator<<. More...
 

Friends

class PeakTable
 

Detailed Description

Record class that represents a peak in a Footprint.

Definition at line 42 of file Peak.h.

Member Typedef Documentation

◆ Catalog

Definition at line 46 of file Peak.h.

◆ ColumnView

Definition at line 45 of file Peak.h.

◆ ConstCatalog

Definition at line 47 of file Peak.h.

◆ Table

Definition at line 44 of file Peak.h.

Constructor & Destructor Documentation

◆ ~PeakRecord()

lsst::afw::detection::PeakRecord::~PeakRecord ( )
overridedefault

◆ PeakRecord() [1/3]

lsst::afw::detection::PeakRecord::PeakRecord ( PeakRecord const &  )
delete

◆ PeakRecord() [2/3]

lsst::afw::detection::PeakRecord::PeakRecord ( PeakRecord &&  )
delete

◆ PeakRecord() [3/3]

lsst::afw::detection::PeakRecord::PeakRecord ( std::shared_ptr< PeakTable > const &  table)
explicitprotected

Definition at line 93 of file Peak.cc.

Member Function Documentation

◆ _assign()

virtual void lsst::afw::table::BaseRecord::_assign ( BaseRecord const &  other)
inlineprotectedvirtualinherited

Called by assign() after transferring fields to allow subclass data members to be copied.

Reimplemented in lsst::afw::table::SourceRecord, and lsst::afw::table::ExposureRecord.

Definition at line 183 of file BaseRecord.h.

◆ _stream()

void lsst::afw::table::BaseRecord::_stream ( std::ostream &  os) const
protectedvirtualinherited

Called by operator<<.

Overrides should call the base class implementation and append additional fields on new lines, with the syntax "%(name)s: %(value)s".

Definition at line 95 of file BaseRecord.cc.

◆ assign() [1/2]

void lsst::afw::table::BaseRecord::assign ( BaseRecord const &  other)
inherited

Copy all field values from other to this, requiring that they have equal schemas.

Definition at line 74 of file BaseRecord.cc.

◆ assign() [2/2]

void lsst::afw::table::BaseRecord::assign ( BaseRecord const &  other,
SchemaMapper const &  mapper 
)
inherited

Copy field values from other to this, using a mapper.

Definition at line 82 of file BaseRecord.cc.

◆ get() [1/2]

template<typename T >
Field<T>::Value lsst::afw::table::BaseRecord::get ( Key< T > const &  key) const
inlineinherited

Return the value of a field for the given key.

No checking is done to ensure the Key belongs to the correct schema.

Definition at line 125 of file BaseRecord.h.

◆ get() [2/2]

template<typename T >
T lsst::afw::table::BaseRecord::get ( OutputFunctorKey< T > const &  key) const
inlineinherited

Compute a calculated or aggregate field.

Definition at line 146 of file BaseRecord.h.

◆ getCentroid() [1/2]

lsst::geom::Point2I lsst::afw::detection::PeakRecord::getCentroid ( bool  ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 69 of file Peak.h.

◆ getCentroid() [2/2]

lsst::geom::Point2D lsst::afw::detection::PeakRecord::getCentroid ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 76 of file Peak.h.

◆ getElement() [1/2]

template<typename T >
Field<T>::Element* lsst::afw::table::BaseRecord::getElement ( Key< T > const &  key)
inlineinherited

Return a pointer to the underlying elements of a field (non-const).

This low-level access is intended mostly for use with serialization; users should generally prefer the safer get(), set() and operator[] member functions.

Definition at line 67 of file BaseRecord.h.

◆ getElement() [2/2]

template<typename T >
Field<T>::Element const* lsst::afw::table::BaseRecord::getElement ( Key< T > const &  key) const
inlineinherited

Return a pointer to the underlying elements of a field (const).

This low-level access is intended mostly for use with serialization; users should generally prefer the safer get(), set() and operator[] member functions.

Definition at line 85 of file BaseRecord.h.

◆ getF()

lsst::geom::Point2D lsst::afw::detection::PeakRecord::getF ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 75 of file Peak.h.

◆ getFx()

float lsst::afw::detection::PeakRecord::getFx ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 225 of file Peak.h.

◆ getFy()

float lsst::afw::detection::PeakRecord::getFy ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 226 of file Peak.h.

◆ getI()

lsst::geom::Point2I lsst::afw::detection::PeakRecord::getI ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 68 of file Peak.h.

◆ getId()

afw::table::RecordId lsst::afw::detection::PeakRecord::getId ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 217 of file Peak.h.

◆ getIx()

int lsst::afw::detection::PeakRecord::getIx ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 220 of file Peak.h.

◆ getIy()

int lsst::afw::detection::PeakRecord::getIy ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 221 of file Peak.h.

◆ getManager()

ndarray::Manager::Ptr lsst::afw::table::BaseRecord::getManager ( ) const
inlineinherited

Definition at line 174 of file BaseRecord.h.

◆ getPeakValue()

float lsst::afw::detection::PeakRecord::getPeakValue ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 230 of file Peak.h.

◆ getSchema()

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

Return the Schema that holds this record's fields and keys.

Definition at line 54 of file BaseRecord.h.

◆ getTable()

std::shared_ptr<PeakTable const> lsst::afw::detection::PeakRecord::getTable ( ) const
inline

Definition at line 55 of file Peak.h.

◆ operator=() [1/2]

PeakRecord& lsst::afw::detection::PeakRecord::operator= ( PeakRecord const &  )
delete

◆ operator=() [2/2]

PeakRecord& lsst::afw::detection::PeakRecord::operator= ( PeakRecord &&  )
delete

◆ operator[]() [1/4]

template<typename T >
Field<T>::Reference lsst::afw::table::BaseRecord::operator[] ( Key< T > const &  key)
inlineinherited

Return a reference (or reference-like type) to the field's value.

Some field types (Point, Moments, Flag, Covariance, and SpherePoint) do not support reference access.

No checking is done to ensure the Key belongs to the correct schema.

Definition at line 103 of file BaseRecord.h.

◆ operator[]() [2/4]

template<typename T >
Field<T>::ConstReference lsst::afw::table::BaseRecord::operator[] ( Key< T > const &  key) const
inlineinherited

Return a const reference (or const-reference-like type) to the field's value.

Some field types (Point, Moments, Flag, Covariance, and SpherePoint) do not support reference access.

No checking is done to ensure the Key belongs to the correct schema.

Definition at line 115 of file BaseRecord.h.

◆ operator[]() [3/4]

template<typename Ref >
Ref lsst::afw::table::BaseRecord::operator[] ( ReferenceFunctorKey< Ref > const &  key)
inlineinherited

Definition at line 159 of file BaseRecord.h.

◆ operator[]() [4/4]

template<typename ConstRef >
ConstRef lsst::afw::table::BaseRecord::operator[] ( ConstReferenceFunctorKey< ConstRef > const &  key) const
inlineinherited

Definition at line 164 of file BaseRecord.h.

◆ set() [1/2]

template<typename T , typename U >
void lsst::afw::table::BaseRecord::set ( Key< T > const &  key,
U const &  value 
)
inlineinherited

Set value of a field for the given key.

This method has an additional template parameter because some fields accept and convert different types to the stored field type.

No checking is done to ensure the Key belongs to the correct schema.

Definition at line 138 of file BaseRecord.h.

◆ set() [2/2]

template<typename T , typename U >
void lsst::afw::table::BaseRecord::set ( InputFunctorKey< T > const &  key,
U const &  value 
)
inlineinherited

Set a calculated or aggregate field.

Definition at line 154 of file BaseRecord.h.

◆ setFx()

void lsst::afw::detection::PeakRecord::setFx ( float  fx)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 227 of file Peak.h.

◆ setFy()

void lsst::afw::detection::PeakRecord::setFy ( float  fy)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 228 of file Peak.h.

◆ setId()

void lsst::afw::detection::PeakRecord::setId ( afw::table::RecordId  id)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 218 of file Peak.h.

◆ setIx()

void lsst::afw::detection::PeakRecord::setIx ( int  ix)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 222 of file Peak.h.

◆ setIy()

void lsst::afw::detection::PeakRecord::setIy ( int  iy)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 223 of file Peak.h.

◆ setPeakValue()

void lsst::afw::detection::PeakRecord::setPeakValue ( float  peakValue)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 231 of file Peak.h.

Friends And Related Function Documentation

◆ PeakTable

friend class PeakTable
friend

Definition at line 86 of file Peak.h.


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