LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Protected Member Functions | 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
 
- Public Types inherited from lsst::afw::table::BaseRecord
typedef BaseTable Table
 The associated table class. More...
 
typedef BaseColumnView ColumnView
 The associated ColumnView class. More...
 
typedef CatalogT< BaseRecordCatalog
 Template of CatalogT used to hold records of this type. More...
 
typedef CatalogT< BaseRecord
const > 
ConstCatalog
 Template of CatalogT used to hold const records of this type. More...
 
- Public Types inherited from lsst::daf::base::Citizen
enum  { magicSentinel = 0xdeadbeef }
 
typedef unsigned long memId
 Type of the block's ID. More...
 
typedef memId(* memNewCallback )(const memId cid)
 A function used to register a callback. More...
 
typedef memId(* memCallback )(const Citizen *ptr)
 

Public Member Functions

boost::shared_ptr< PeakTable
const > 
getTable () const
 
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...
 
afw::geom::Point2I getI () const
 Convenience accessors for the keys in the minimal schema. More...
 
afw::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...
 
afw::geom::Point2D getF () const
 Convenience accessors for the keys in the minimal schema. More...
 
afw::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...
 
- Public Member Functions inherited from lsst::afw::table::BaseRecord
Schema getSchema () const
 Return the Schema that holds this record's fields and keys. More...
 
boost::shared_ptr< BaseTable
const > 
getTable () const
 Return the table this record is associated with. 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 T >
Field< T >::Value get (Key< T > const &key) const
 Return the value of a field for the given key. 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 >
get (OutputFunctorKey< T > const &key) const
 Compute a calculated or aggregate field. More...
 
template<typename T , typename U >
void set (InputFunctorKey< T > const &key, U const &value)
 Set a calculated or aggregate field. More...
 
template<typename Ref >
Ref operator[] (ReferenceFunctorKey< Ref > const &key)
 
template<typename ConstRef >
ConstRef operator[] (ConstReferenceFunctorKey< ConstRef > const &key) const
 
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
 
virtual ~BaseRecord ()
 
- Public Member Functions inherited from lsst::daf::base::Citizen
 Citizen (const std::type_info &)
 
 Citizen (Citizen const &)
 
 ~Citizen ()
 
Citizenoperator= (Citizen const &)
 
std::string repr () const
 Return a string representation of a Citizen. More...
 
void markPersistent (void)
 Mark a Citizen as persistent and not destroyed until process end. More...
 
memId getId () const
 Return the Citizen's ID. More...
 

Protected Member Functions

 PeakRecord (boost::shared_ptr< PeakTable > const &table)
 
- Protected Member Functions inherited from lsst::afw::table::BaseRecord
virtual void _assign (BaseRecord const &other)
 Called by assign() after transferring fields to allow subclass data members to be copied. More...
 
 BaseRecord (boost::shared_ptr< BaseTable > const &table)
 Construct a record with uninitialized data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from lsst::daf::base::Citizen
static bool hasBeenCorrupted ()
 Check all allocated blocks for corruption. More...
 
static memId getNextMemId ()
 Return the memId of the next object to be allocated. More...
 
static int init ()
 Called once when the memory system is being initialised. More...
 
static int census (int, memId startingMemId=0)
 How many active Citizens are there? More...
 
static void census (std::ostream &stream, memId startingMemId=0)
 Print a list of all active Citizens to stream, sorted by ID. More...
 
static const std::vector
< const Citizen * > * 
census ()
 Return a (newly allocated) std::vector of active Citizens sorted by ID. More...
 
static memId setNewCallbackId (memId id)
 Call the NewCallback when block is allocated. More...
 
static memId setDeleteCallbackId (memId id)
 Call the current DeleteCallback when block is deleted. More...
 
static memNewCallback setNewCallback (memNewCallback func)
 Set the NewCallback function. More...
 
static memCallback setDeleteCallback (memCallback func)
 Set the DeleteCallback function. More...
 
static memCallback setCorruptionCallback (memCallback func)
 Set the CorruptionCallback function. More...
 

Detailed Description

Record class that represents a peak in a Footprint.

Definition at line 40 of file Peak.h.

Member Typedef Documentation

Definition at line 45 of file Peak.h.

Definition at line 44 of file Peak.h.

Definition at line 46 of file Peak.h.

Definition at line 43 of file Peak.h.

Constructor & Destructor Documentation

lsst::afw::detection::PeakRecord::PeakRecord ( boost::shared_ptr< PeakTable > const &  table)
protected

Definition at line 145 of file Peak.cc.

145 : BaseRecord(table) {}
std::map< Citizen const *, CitizenInfo > table
Definition: Citizen.h:93
BaseRecord(boost::shared_ptr< BaseTable > const &table)
Construct a record with uninitialized data.
Definition: BaseRecord.h:186

Member Function Documentation

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

Convenience accessors for the keys in the minimal schema.

Definition at line 62 of file Peak.h.

62 { return getI(); }
afw::geom::Point2I getI() const
Convenience accessors for the keys in the minimal schema.
Definition: Peak.h:61
afw::geom::Point2D lsst::afw::detection::PeakRecord::getCentroid ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 69 of file Peak.h.

69 { return getF(); }
afw::geom::Point2D getF() const
Convenience accessors for the keys in the minimal schema.
Definition: Peak.h:68
afw::geom::Point2D lsst::afw::detection::PeakRecord::getF ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 68 of file Peak.h.

68 { return afw::geom::Point2D(getFx(), getFy()); }
Point< double, 2 > Point2D
Definition: Point.h:286
float getFy() const
Convenience accessors for the keys in the minimal schema.
Definition: Peak.h:215
float getFx() const
Convenience accessors for the keys in the minimal schema.
Definition: Peak.h:214
float lsst::afw::detection::PeakRecord::getFx ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 214 of file Peak.h.

214 { return get(PeakTable::getFxKey()); }
static afw::table::Key< float > getFxKey()
Definition: Peak.h:146
float lsst::afw::detection::PeakRecord::getFy ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 215 of file Peak.h.

215 { return get(PeakTable::getFyKey()); }
static afw::table::Key< float > getFyKey()
Definition: Peak.h:147
afw::geom::Point2I lsst::afw::detection::PeakRecord::getI ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 61 of file Peak.h.

61 { return afw::geom::Point2I(getIx(), getIy()); }
Point< int, 2 > Point2I
Definition: Point.h:283
int getIy() const
Convenience accessors for the keys in the minimal schema.
Definition: Peak.h:210
int getIx() const
Convenience accessors for the keys in the minimal schema.
Definition: Peak.h:209
afw::table::RecordId lsst::afw::detection::PeakRecord::getId ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 206 of file Peak.h.

206 { return get(PeakTable::getIdKey()); }
static afw::table::Key< afw::table::RecordId > getIdKey()
Definition: Peak.h:143
int lsst::afw::detection::PeakRecord::getIx ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 209 of file Peak.h.

209 { return get(PeakTable::getIxKey()); }
static afw::table::Key< int > getIxKey()
Definition: Peak.h:144
int lsst::afw::detection::PeakRecord::getIy ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 210 of file Peak.h.

210 { return get(PeakTable::getIyKey()); }
static afw::table::Key< int > getIyKey()
Definition: Peak.h:145
float lsst::afw::detection::PeakRecord::getPeakValue ( ) const
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 219 of file Peak.h.

219 { return get(PeakTable::getPeakValueKey()); }
static afw::table::Key< float > getPeakValueKey()
Definition: Peak.h:148
boost::shared_ptr< PeakTable const> lsst::afw::detection::PeakRecord::getTable ( ) const
inline

Definition at line 48 of file Peak.h.

48  {
49  return boost::static_pointer_cast<PeakTable const>(afw::table::BaseRecord::getTable());
50  }
boost::shared_ptr< BaseTable const > getTable() const
Return the table this record is associated with.
Definition: BaseRecord.h:51
void lsst::afw::detection::PeakRecord::setFx ( float  fx)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 216 of file Peak.h.

216 { set(PeakTable::getFxKey(), fx); }
static afw::table::Key< float > getFxKey()
Definition: Peak.h:146
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Definition: BaseRecord.h:136
void lsst::afw::detection::PeakRecord::setFy ( float  fy)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 217 of file Peak.h.

217 { set(PeakTable::getFyKey(), fy); }
static afw::table::Key< float > getFyKey()
Definition: Peak.h:147
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Definition: BaseRecord.h:136
void lsst::afw::detection::PeakRecord::setId ( afw::table::RecordId  id)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 207 of file Peak.h.

207 { set(PeakTable::getIdKey(), id); }
static afw::table::Key< afw::table::RecordId > getIdKey()
Definition: Peak.h:143
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Definition: BaseRecord.h:136
void lsst::afw::detection::PeakRecord::setIx ( int  ix)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 211 of file Peak.h.

211 { set(PeakTable::getIxKey(), ix); }
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Definition: BaseRecord.h:136
static afw::table::Key< int > getIxKey()
Definition: Peak.h:144
void lsst::afw::detection::PeakRecord::setIy ( int  iy)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 212 of file Peak.h.

212 { set(PeakTable::getIyKey(), iy); }
static afw::table::Key< int > getIyKey()
Definition: Peak.h:145
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Definition: BaseRecord.h:136
void lsst::afw::detection::PeakRecord::setPeakValue ( float  peakValue)
inline

Convenience accessors for the keys in the minimal schema.

Definition at line 220 of file Peak.h.

220 { set(PeakTable::getPeakValueKey(), peakValue); }
static afw::table::Key< float > getPeakValueKey()
Definition: Peak.h:148
void set(Key< T > const &key, U const &value)
Set value of a field for the given key.
Definition: BaseRecord.h:136

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