23 #ifndef AFW_TABLE_aggregates_h_INCLUDED 24 #define AFW_TABLE_aggregates_h_INCLUDED 71 ~
PointKey() noexcept
override =
default;
96 bool isValid() const noexcept {
return _x.isValid() && _y.isValid(); }
117 template <
typename Box>
140 BoxKey() noexcept = default;
159 ~
BoxKey() noexcept
override =
default;
162 Box
get(
BaseRecord const& record)
const override;
165 void set(
BaseRecord& record, Box
const& value)
const override;
168 bool operator==(
BoxKey const&
other)
const noexcept {
return _min == other._min && _max == other._max; }
213 : _ra(ra), _dec(
dec) {}
229 ~
CoordKey() noexcept
override =
default;
289 : _ixx(ixx), _iyy(iyy), _ixy(ixy) {}
316 return _ixx == other._ixx && _iyy == other._iyy && _ixy == other._ixy;
322 bool isValid() const noexcept {
return _ixx.
isValid() && _iyy.isValid() && _ixy.isValid(); }
325 Key<double> getIxx()
const noexcept {
return _ixx; }
386 return _qKey == other._qKey && _pKey == other._pKey;
405 template <
typename T,
int N>
426 std::string const& unit,
bool diagonalOnly =
false);
443 NameArray
const& units,
bool diagonalOnly =
false);
467 CovarianceKeyArray
const& cov = CovarianceKeyArray());
489 Eigen::Matrix<T, N, N> get(
BaseRecord const& record) const override;
492 void set(
BaseRecord& record, Eigen::Matrix<T, N, N> const& value) const override;
495 T getElement(
BaseRecord const& record,
int i,
int j) const;
498 void setElement(
BaseRecord& record,
int i,
int j, T value) const;
516 CovarianceKeyArray _cov;
522 #endif // !AFW_TABLE_aggregates_h_INCLUDED An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
A proxy type for name lookups in a Schema.
QuadrupoleKey(SubSchema const &s)
Construct from a subschema with appropriate subfields.
std::vector< std::string > NameArray
Key< T > getX() const noexcept
Return the underlying x Key.
bool isValid() const noexcept
Return True if both the min and max PointKeys are valid.
CoordKey() noexcept
Default constructor; instance will not be usable unless subsequently assigned to. ...
bool isValid() const noexcept
Return True if all the constituent Keys are valid.
PointKey< Element > getMin() const noexcept
Return the underlying min PointKey.
std::vector< Key< T > > CovarianceKeyArray
EllipseKey(SubSchema const &s)
Construct from a subschema, assuming (xx, yy, xy, x, y) subfields.
bool operator!=(PointKey< T > const &other) const noexcept
Compare the FunctorKey for equality with another, using the underlying x and y Keys.
PointKey< Element > getMax() const noexcept
Return the underlying max PointKey.
bool operator!=(QuadrupoleKey const &other) const noexcept
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
PointKey< int > Point2IKey
bool operator!=(CoordKey const &lhs, CoordKey const &rhs)
Compare CoordKeys for equality using the constituent Keys.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
Compare CoordKeys for equality using the constituent Keys.
Key< lsst::geom::Angle > getDec() const noexcept
Return a constituent Key.
PointKey() noexcept
Default constructor; instance will not be usable unless subsequently assigned to. ...
bool operator!=(BoxKey const &other) const noexcept
Compare the FunctorKey for equality with another, using the underlying x and y Keys.
PointKey< double > Point2DKey
ItemVariant const * other
A FunctorKey used to get or set a lsst::geom::Box2I or Box2D from a (min, max) pair of PointKeys...
std::vector< Key< T > > ErrKeyArray
EllipseKey(QuadrupoleKey const &qKey, PointKey< double > const &pKey) noexcept
Construct from individual Keys.
typename lsst::geom::Box2I ::Element Element
Type of coordinate elements (i.e. int or double).
A base class for image defects.
A FunctorKey used to get or set a lsst::geom::Point from an (x,y) pair of int or double Keys...
PointKey(Key< T > const &x, Key< T > const &y) noexcept
Construct from a pair of Keys.
bool isValid() const noexcept
bool isValid() const noexcept
Return True if both the x and y Keys are valid.
An ellipse defined by an arbitrary BaseCore and a center point.
CoordKey(Key< lsst::geom::Angle > const &ra, Key< lsst::geom::Angle > const &dec) noexcept
Construct from a pair of Keys.
PointKey< double > getCenter() const noexcept
Return constituent FunctorKeys.
Key< double > getIxy() const noexcept
Return a constituent Key.
bool operator!=(EllipseKey const &other) const noexcept
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
BoxKey(SubSchema const &s)
Construct from a subschema, assuming _min_x, _max_x, _min_y, _max_y subfields.
Key< double > getIyy() const noexcept
Return a constituent Key.
CoordinateType
Enum used to set units for geometric FunctorKeys.
QuadrupoleKey() noexcept
Default constructor; instance will not be usable unless subsequently assigned to. ...
Base class for all records.
A class used as a handle to a particular field in a table.
bool operator!=(CoordKey const &other) const noexcept
Compare CoordKeys for equality using the constituent ra and dec Keys.
PointKey(SubSchema const &s)
Construct from a subschema, assuming x and y subfields.
EllipseKey() noexcept
Default constructor; instance will not be usable unless subsequently assigned to. ...
CoordKey(SubSchema const &s)
Construct from a subschema, assuming ra and dec subfields.
bool isValid() const noexcept
Return True if all the constituent Keys are valid.
A FunctorKey used to get or set a geom::ellipses::Ellipse from an (xx,yy,xy,x,y) tuple of Keys...
Convenience base class that combines the OutputFunctorKey and InputFunctorKey.
QuadrupoleKey(Key< double > const &ixx, Key< double > const &iyy, Key< double > const &ixy) noexcept
Construct from individual Keys.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
Key< T > getY() const noexcept
Return the underlying y Key.
A FunctorKey used to get or set celestial coordinates from a pair of lsst::geom::Angle keys...
daf::base::PropertySet * set