Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Catch::Detail::Approx Class Reference

#include <catch.hpp>

Public Member Functions

 Approx (double value)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
 Approx (T const &value)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approxepsilon (T const &newEpsilon)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approxmargin (T const &newMargin)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx operator() (T const &value)
 
Approx operator- () const
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approxscale (T const &newScale)
 
std::string toString () const
 

Static Public Member Functions

static Approx custom ()
 

Private Member Functions

bool equalityComparisonImpl (double other) const
 
void setEpsilon (double epsilon)
 
void setMargin (double margin)
 

Private Attributes

double m_epsilon
 
double m_margin
 
double m_scale
 
double m_value
 

Friends

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator!= (T const &lhs, Approx const &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator!= (Approx const &lhs, T const &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator<= (T const &lhs, Approx const &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator<= (Approx const &lhs, T const &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator== (const T &lhs, Approx const &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator== (Approx const &lhs, const T &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator>= (T const &lhs, Approx const &rhs)
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator>= (Approx const &lhs, T const &rhs)
 

Detailed Description

Definition at line 3075 of file catch.hpp.

Constructor & Destructor Documentation

Catch::Detail::Approx::Approx ( double  value)
explicit
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Catch::Detail::Approx::Approx ( T const &  value)
inlineexplicit

Definition at line 3102 of file catch.hpp.

Member Function Documentation

static Approx Catch::Detail::Approx::custom ( )
static
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx& Catch::Detail::Approx::epsilon ( T const &  newEpsilon)
inline

Definition at line 3147 of file catch.hpp.

bool Catch::Detail::Approx::equalityComparisonImpl ( double  other) const
private
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx& Catch::Detail::Approx::margin ( T const &  newMargin)
inline

Definition at line 3154 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx Catch::Detail::Approx::operator() ( T const &  value)
inline

Definition at line 3093 of file catch.hpp.

Approx Catch::Detail::Approx::operator- ( ) const
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx& Catch::Detail::Approx::scale ( T const &  newScale)
inline

Definition at line 3161 of file catch.hpp.

void Catch::Detail::Approx::setEpsilon ( double  epsilon)
private
void Catch::Detail::Approx::setMargin ( double  margin)
private
std::string Catch::Detail::Approx::toString ( ) const

Friends And Related Function Documentation

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator!= ( T const &  lhs,
Approx const &  rhs 
)
friend

Definition at line 3117 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator!= ( Approx const &  lhs,
T const &  rhs 
)
friend

Definition at line 3122 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator<= ( T const &  lhs,
Approx const &  rhs 
)
friend

Definition at line 3127 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator<= ( Approx const &  lhs,
T const &  rhs 
)
friend

Definition at line 3132 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator== ( const T &  lhs,
Approx const &  rhs 
)
friend

Definition at line 3106 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator== ( Approx const &  lhs,
const T &  rhs 
)
friend

Definition at line 3112 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator>= ( T const &  lhs,
Approx const &  rhs 
)
friend

Definition at line 3137 of file catch.hpp.

template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
bool operator>= ( Approx const &  lhs,
T const &  rhs 
)
friend

Definition at line 3142 of file catch.hpp.

Member Data Documentation

double Catch::Detail::Approx::m_epsilon
private

Definition at line 3169 of file catch.hpp.

double Catch::Detail::Approx::m_margin
private

Definition at line 3170 of file catch.hpp.

double Catch::Detail::Approx::m_scale
private

Definition at line 3171 of file catch.hpp.

double Catch::Detail::Approx::m_value
private

Definition at line 3172 of file catch.hpp.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:35