Template Struct Match

Struct Documentation

template<typename Record1, typename Record2>
struct Match

Lightweight representation of a geometric match between two records.

This is a template so it can hold derived record classes without a lot of casting and properly use lsst::geom::Angle for the distance when we do spherical coordinate matches.

Public Functions

Match()
Match(std::shared_ptr<Record1> const &r1, std::shared_ptr<Record2> const &r2, double dist)
template<typename R1, typename R2>
Match(Match<R1, R2> const &other)

Public Members

std::shared_ptr<Record1> first
std::shared_ptr<Record2> second
double distance