Isis 3 Programmer Reference
Isis::RobustFloatCompare< K > Struct Template Reference

Provides a robust comparison of double/float values. More...

#include <CollectorMap.h>

Collaboration diagram for Isis::RobustFloatCompare< K >:
Collaboration graph

Public Member Functions

bool operator() (const K &v1, const K &v2) const
 Compares v1 and v2 as floating point values. More...
 

Detailed Description

template<typename K>
struct Isis::RobustFloatCompare< K >

Provides a robust comparison of double/float values.

This functor compares floating point values using a default epsilon of 1.0e-6. It can be used for doubles or floats, however floats will be promoted to double for the comparison.

Definition at line 93 of file CollectorMap.h.

Member Function Documentation

◆ operator()()

template<typename K >
bool Isis::RobustFloatCompare< K >::operator() ( const K &  v1,
const K &  v2 
) const
inline

Compares v1 and v2 as floating point values.

Parameters
v1
v2
Returns
bool

Definition at line 103 of file CollectorMap.h.

References Isis::E.


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