lsst.afw  14.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
lsst::afw::table::SimpleRecord Class Reference

Record class that must contain a unique ID field and a celestial coordinate field. More...

#include <Simple.h>

Inheritance diagram for lsst::afw::table::SimpleRecord:
lsst::afw::table::BaseRecord lsst::afw::table::SourceRecord

Public Types

typedef SimpleTable Table
 
typedef ColumnViewT< SimpleRecord > ColumnView
 
typedef SortedCatalogT
< SimpleRecord > 
Catalog
 
typedef SortedCatalogT
< SimpleRecord 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< BaseRecord > Catalog
 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 Member Functions

std::shared_ptr< SimpleTable
const > 
getTable () const
 
RecordId getId () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setId (RecordId id)
 Convenience accessors for the keys in the minimal reference schema. More...
 
IcrsCoord getCoord () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setCoord (IcrsCoord const &coord)
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setCoord (Coord const &coord)
 Convenience accessors for the keys in the minimal reference schema. More...
 
Angle getRa () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setRa (Angle ra)
 Convenience accessors for the keys in the minimal reference schema. More...
 
Angle getDec () const
 Convenience accessors for the keys in the minimal reference schema. More...
 
void setDec (Angle dec)
 Convenience accessors for the keys in the minimal reference schema. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseRecord
 BaseRecord (const BaseRecord &)=delete
 
BaseRecord & operator= (const BaseRecord &)=delete
 
 BaseRecord (BaseRecord &&)=delete
 
BaseRecord & operator= (BaseRecord &&)=delete
 
Schema getSchema () const
 Return the Schema that holds this record's fields and keys. More...
 
std::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 >
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 ()
 

Protected Member Functions

 SimpleRecord (std::shared_ptr< SimpleTable > 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 (std::shared_ptr< BaseTable > const &table)
 Construct a record with uninitialized data. More...
 

Friends

class SimpleTable
 

Detailed Description

Record class that must contain a unique ID field and a celestial coordinate field.

SimpleTable / SimpleRecord are intended to be the base class for records representing astronomical objects. In additional to the minimal schema and the convenience accessors it allows, a SimpleTable may hold an IdFactory object that is used to assign unique IDs to new records.

Definition at line 48 of file Simple.h.

Member Typedef Documentation

Definition at line 52 of file Simple.h.

Definition at line 51 of file Simple.h.

Definition at line 53 of file Simple.h.

Definition at line 50 of file Simple.h.

Constructor & Destructor Documentation

lsst::afw::table::SimpleRecord::SimpleRecord ( std::shared_ptr< SimpleTable > const &  table)
explicitprotected

Member Function Documentation

IcrsCoord lsst::afw::table::SimpleRecord::getCoord ( ) const
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 210 of file Simple.h.

Angle lsst::afw::table::SimpleRecord::getDec ( ) const
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 217 of file Simple.h.

RecordId lsst::afw::table::SimpleRecord::getId ( ) const
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 207 of file Simple.h.

Angle lsst::afw::table::SimpleRecord::getRa ( ) const
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 214 of file Simple.h.

std::shared_ptr<SimpleTable const> lsst::afw::table::SimpleRecord::getTable ( ) const
inline

Definition at line 55 of file Simple.h.

void lsst::afw::table::SimpleRecord::setCoord ( IcrsCoord const &  coord)
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 211 of file Simple.h.

void lsst::afw::table::SimpleRecord::setCoord ( Coord const &  coord)
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 212 of file Simple.h.

void lsst::afw::table::SimpleRecord::setDec ( Angle  dec)
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 218 of file Simple.h.

void lsst::afw::table::SimpleRecord::setId ( RecordId  id)
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 208 of file Simple.h.

void lsst::afw::table::SimpleRecord::setRa ( Angle  ra)
inline

Convenience accessors for the keys in the minimal reference schema.

Definition at line 215 of file Simple.h.

Friends And Related Function Documentation

friend class SimpleTable
friend

Definition at line 76 of file Simple.h.


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