Loading [MathJax]/extensions/tex2jax.js
LSST Applications 29.0.0,g04dff08e69+0440ebfea4,g0fba68d861+39c7333094,g1ec0fe41b4+f536777771,g1fd858c14a+a9301854fb,g35bb328faa+fcb1d3bbc8,g4af146b050+f5e27e7465,g4d2262a081+0d1d1daf5f,g53246c7159+fcb1d3bbc8,g5a012ec0e7+3632fc3ff3,g60b5630c4e+197d614feb,g67b6fd64d1+ed4b5058f4,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g8352419a5c+fcb1d3bbc8,g87b7deb4dc+1a86cc64c8,g8852436030+620f385cd0,g89139ef638+ed4b5058f4,g9125e01d80+fcb1d3bbc8,g94187f82dc+197d614feb,g95f8561545+197d614feb,g989de1cb63+ed4b5058f4,g9d31334357+197d614feb,g9f33ca652e+a02529f034,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+c9f6ee41af,gb58c049af0+f03b321e39,gb89ab40317+ed4b5058f4,gc0bb628dac+6dec70b359,gcf25f946ba+620f385cd0,gcf6002c91b+54dde5f3ac,gd6cbbdb0b4+bb83cc51f8,gde0f65d7ad+588c1dba32,ge278dab8ac+d65b3c2b70,ge410e46f29+ed4b5058f4,gf23fb2af72+b9bd8e2eff,gf5e32f922b+fcb1d3bbc8,gf67bdafdda+ed4b5058f4
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst::afw::table::Match< Record1, Record2 > Struct Template Reference

Lightweight representation of a geometric match between two records. More...

#include <Match.h>

Public Member 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 Attributes

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

Detailed Description

template<typename Record1, typename Record2>
struct lsst::afw::table::Match< Record1, Record2 >

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.

Definition at line 67 of file Match.h.

Constructor & Destructor Documentation

◆ Match() [1/3]

template<typename Record1, typename Record2>
lsst::afw::table::Match< Record1, Record2 >::Match ( )
inline

Definition at line 72 of file Match.h.

72: first(), second(), distance(0.0) {}
std::shared_ptr< Record2 > second
Definition Match.h:69
std::shared_ptr< Record1 > first
Definition Match.h:68

◆ Match() [2/3]

template<typename Record1, typename Record2>
lsst::afw::table::Match< Record1, Record2 >::Match ( std::shared_ptr< Record1 > const & r1,
std::shared_ptr< Record2 > const & r2,
double dist )
inline

Definition at line 74 of file Match.h.

75 : first(r1), second(r2), distance(dist) {}
Lightweight representation of a geometric match between two records.
Definition Match.h:67

◆ Match() [3/3]

template<typename Record1, typename Record2>
template<typename R1, typename R2>
lsst::afw::table::Match< Record1, Record2 >::Match ( Match< R1, R2 > const & other)
inline

Definition at line 78 of file Match.h.

Member Data Documentation

◆ distance

template<typename Record1, typename Record2>
double lsst::afw::table::Match< Record1, Record2 >::distance

Definition at line 70 of file Match.h.

◆ first

template<typename Record1, typename Record2>
std::shared_ptr<Record1> lsst::afw::table::Match< Record1, Record2 >::first

Definition at line 68 of file Match.h.

◆ second

template<typename Record1, typename Record2>
std::shared_ptr<Record2> lsst::afw::table::Match< Record1, Record2 >::second

Definition at line 69 of file Match.h.


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