OmniSciDB  c07336695a
TestHelpers::GeoTargetComparator Struct Reference

#include <TestHelpers.h>

Static Public Member Functions

static void compare (const GeoPointTargetValue &a, const GeoPointTargetValue &b, const double tol=-1.)
 
static void compare (const GeoLineStringTargetValue &a, const GeoLineStringTargetValue &b, const double tol=-1.)
 
static void compare (const GeoPolyTargetValue &a, const GeoPolyTargetValue &b, const double tol=-1.)
 
static void compare (const GeoMultiPolyTargetValue &a, const GeoMultiPolyTargetValue &b, const double tol=-1.)
 

Detailed Description

Definition at line 91 of file TestHelpers.h.

Member Function Documentation

◆ compare() [1/4]

static void TestHelpers::GeoTargetComparator::compare ( const GeoPointTargetValue a,
const GeoPointTargetValue b,
const double  tol = -1. 
)
inlinestatic

Definition at line 92 of file TestHelpers.h.

References TestHelpers::compare_array(), GeoPointTargetValue::coords, and tol().

Referenced by TestHelpers::compare_geo_target().

94  {
95  compare_array(*a.coords, *b.coords, tol);
96  }
std::shared_ptr< std::vector< double > > coords
Definition: TargetValue.h:100
void compare_array(const TargetValue &r, const std::vector< T > &arr, const double tol=-1.)
Definition: TestHelpers.h:33
DEVICE ALWAYS_INLINE double tol(int32_t ic)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compare() [2/4]

static void TestHelpers::GeoTargetComparator::compare ( const GeoLineStringTargetValue a,
const GeoLineStringTargetValue b,
const double  tol = -1. 
)
inlinestatic

Definition at line 97 of file TestHelpers.h.

References TestHelpers::compare_array(), GeoLineStringTargetValue::coords, and tol().

99  {
100  compare_array(*a.coords, *b.coords, tol);
101  }
std::shared_ptr< std::vector< double > > coords
Definition: TargetValue.h:107
void compare_array(const TargetValue &r, const std::vector< T > &arr, const double tol=-1.)
Definition: TestHelpers.h:33
DEVICE ALWAYS_INLINE double tol(int32_t ic)
+ Here is the call graph for this function:

◆ compare() [3/4]

static void TestHelpers::GeoTargetComparator::compare ( const GeoPolyTargetValue a,
const GeoPolyTargetValue b,
const double  tol = -1. 
)
inlinestatic

Definition at line 102 of file TestHelpers.h.

References TestHelpers::compare_array(), GeoPolyTargetValue::coords, GeoPolyTargetValue::ring_sizes, and tol().

104  {
105  compare_array(*a.coords, *b.coords, tol);
107  }
std::shared_ptr< std::vector< int32_t > > ring_sizes
Definition: TargetValue.h:115
void compare_array(const TargetValue &r, const std::vector< T > &arr, const double tol=-1.)
Definition: TestHelpers.h:33
DEVICE ALWAYS_INLINE double tol(int32_t ic)
std::shared_ptr< std::vector< double > > coords
Definition: TargetValue.h:114
+ Here is the call graph for this function:

◆ compare() [4/4]

static void TestHelpers::GeoTargetComparator::compare ( const GeoMultiPolyTargetValue a,
const GeoMultiPolyTargetValue b,
const double  tol = -1. 
)
inlinestatic

Definition at line 108 of file TestHelpers.h.

References TestHelpers::compare_array(), GeoMultiPolyTargetValue::coords, GeoMultiPolyTargetValue::poly_rings, GeoMultiPolyTargetValue::ring_sizes, and tol().

110  {
111  compare_array(*a.coords, *b.coords, tol);
114  }
std::shared_ptr< std::vector< int32_t > > ring_sizes
Definition: TargetValue.h:125
std::shared_ptr< std::vector< double > > coords
Definition: TargetValue.h:124
std::shared_ptr< std::vector< int32_t > > poly_rings
Definition: TargetValue.h:126
void compare_array(const TargetValue &r, const std::vector< T > &arr, const double tol=-1.)
Definition: TestHelpers.h:33
DEVICE ALWAYS_INLINE double tol(int32_t ic)
+ Here is the call graph for this function:

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