23 #ifndef AFW_TABLE_aggregates_h_INCLUDED 24 #define AFW_TABLE_aggregates_h_INCLUDED 34 template <
typename T,
int N>
93 bool isValid()
const {
return _x.isValid() && _y.isValid(); }
153 bool operator==(
CoordKey const& other)
const {
return _ra == other._ra && _dec == other._dec; }
158 bool isValid()
const {
return _ra.isValid() && _dec.isValid(); }
204 : _ixx(ixx), _iyy(iyy), _ixy(ixy) {}
225 return _ixx == other._ixx && _iyy == other._iyy && _ixy == other._ixy;
231 bool isValid()
const {
return _ixx.isValid() && _iyy.isValid() && _ixy.isValid(); }
287 bool operator==(
EllipseKey const& other)
const {
return _qKey == other._qKey && _pKey == other._pKey; }
293 bool isValid()
const {
return _qKey.isValid() && _pKey.isValid(); }
306 template <
typename T,
int N>
327 std::string const& unit,
bool diagonalOnly =
false);
344 NameArray
const& units,
bool diagonalOnly =
false);
368 CovarianceKeyArray
const& cov = CovarianceKeyArray());
384 virtual Eigen::Matrix<T, N, N>
get(
BaseRecord const& record)
const;
387 virtual void set(
BaseRecord& record, Eigen::Matrix<T, N, N>
const& value)
const;
390 T getElement(
BaseRecord const& record,
int i,
int j)
const;
393 void setElement(
BaseRecord& record,
int i,
int j, T value)
const;
401 bool isValid()
const;
410 SigmaKeyArray _sigma;
411 CovarianceKeyArray _cov;
417 #endif // !AFW_TABLE_aggregates_h_INCLUDED CoordKey()
Default constructor; instance will not be usable unless subsequently assigned to. ...
An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
A coordinate class intended to represent absolute positions (2-d specialization). ...
EllipseKey(QuadrupoleKey const &qKey, PointKey< double > const &pKey)
Construct from individual Keys.
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
table::Key< std::string > name
EllipseKey()
Default constructor; instance will not be usable unless subsequently assigned to. ...
afw::table::Schema schema
QuadrupoleKey()
Default constructor; instance will not be usable unless subsequently assigned to. ...
std::vector< Key< T > > CovarianceKeyArray
EllipseKey(SubSchema const &s)
Construct from a subschema, assuming (xx, yy, xy, x, y) subfields.
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.
PointKey< double > Point2DKey
Key< T > getX() const
Return the underlying x Key.
bool operator!=(QuadrupoleKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
Key< double > getIyy() const
Return a constituent Key.
afw::table::Key< double > sigma
A base class for image defects.
A FunctorKey used to get or set a geom::Point from an (x,y) pair of int or double Keys...
An ellipse defined by an arbitrary BaseCore and a center point.
CoordKey(Key< geom::Angle > const &ra, Key< geom::Angle > const &dec)
Construct from a pair of Keys.
bool isValid() const
Return True if both the x and y Keys are valid.
Key< geom::Angle > getDec() const
Return a constituent Key.
PointKey< double > getCenter() const
Return constituent FunctorKeys.
CoordinateType
Enum used to set units for geometric FunctorKeys.
bool operator!=(CovarianceMatrixKey const &other) const
Compare the FunctorKey for equality with another, using its constituent Keys.
Key< double > getIxy() const
Return a constituent Key.
Base class for all records.
std::vector< Key< T > > SigmaKeyArray
A class used as a handle to a particular field in a table.
PointKey()
Default constructor; instance will not be usable unless subsequently assigned to. ...
PointKey(SubSchema const &s)
Construct from a subschema, assuming x and y subfields.
bool operator!=(EllipseKey const &other) const
Compare the FunctorKey for equality with another, using the underlying Ixx, Iyy, Ixy Keys...
PointKey(Key< T > const &x, Key< T > const &y)
Construct from a pair of Keys.
CoordKey(SubSchema const &s)
Construct from a subschema, assuming ra and dec subfields.
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.
This is the base class for spherical coordinates.
bool operator!=(CoordKey const &other) const
Compare CoordKeys for equality using the constituent ra and dec Keys.
QuadrupoleKey(Key< double > const &ixx, Key< double > const &iyy, Key< double > const &ixy)
Construct from individual Keys.
Key< T > getY() const
Return the underlying y Key.
A FunctorKey used to get or set a geom::ellipses::Quadrupole from a tuple of constituent Keys...
A class to handle Icrs coordinates (inherits from Coord)
bool operator!=(PointKey< T > const &other) const
Compare the FunctorKey for equality with another, using the underlying x and y Keys.
A FunctorKey used to get or set celestial coordinates from a pair of Angle keys.
bool isValid() const
Return True if all the constituent Keys are valid.
bool isValid() const
Return True if all the constituent Keys are valid.