kblib 0.2.3
General utilities library for modern C++
Catch::Detail::Approx Class Reference

#include <catch/catch.hpp>

Public Member Functions

 Approx (double value)
 
Approx operator- () const
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx operator() (T const &value) const
 
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>
Approxscale (T const &newScale)
 
std::string toString () const
 
 Approx (double value)
 
Approx operator- () const
 
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx operator() (T const &value) const
 
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>
Approxscale (T const &newScale)
 
std::string toString () const
 

Static Public Member Functions

static Approx custom ()
 
static Approx custom ()
 

Friends

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)
 
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)
 
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)
 

Detailed Description

Definition at line 3078 of file catch.hpp.

Constructor & Destructor Documentation

◆ Approx() [1/4]

Catch::Detail::Approx::Approx ( double  value)
explicit

◆ Approx() [2/4]

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 3105 of file catch.hpp.

◆ Approx() [3/4]

Catch::Detail::Approx::Approx ( double  value)
explicit

◆ Approx() [4/4]

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 3105 of file catch.hpp.

Member Function Documentation

◆ custom() [1/2]

static Approx Catch::Detail::Approx::custom ( )
static

◆ custom() [2/2]

static Approx Catch::Detail::Approx::custom ( )
static

◆ epsilon() [1/2]

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 3150 of file catch.hpp.

◆ epsilon() [2/2]

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 3150 of file catch.hpp.

◆ margin() [1/2]

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 3157 of file catch.hpp.

◆ margin() [2/2]

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 3157 of file catch.hpp.

◆ operator()() [1/2]

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

Definition at line 3096 of file catch.hpp.

◆ operator()() [2/2]

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

Definition at line 3096 of file catch.hpp.

◆ operator-() [1/2]

Approx Catch::Detail::Approx::operator- ( ) const

◆ operator-() [2/2]

Approx Catch::Detail::Approx::operator- ( ) const

◆ scale() [1/2]

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 3164 of file catch.hpp.

◆ scale() [2/2]

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 3164 of file catch.hpp.

◆ toString() [1/2]

std::string Catch::Detail::Approx::toString ( ) const

◆ toString() [2/2]

std::string Catch::Detail::Approx::toString ( ) const

Friends And Related Function Documentation

◆ operator!= [1/4]

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 3125 of file catch.hpp.

◆ operator!= [2/4]

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 3125 of file catch.hpp.

◆ operator!= [3/4]

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 3120 of file catch.hpp.

◆ operator!= [4/4]

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 3120 of file catch.hpp.

◆ operator<= [1/4]

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 3135 of file catch.hpp.

◆ operator<= [2/4]

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 3135 of file catch.hpp.

◆ operator<= [3/4]

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 3130 of file catch.hpp.

◆ operator<= [4/4]

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 3130 of file catch.hpp.

◆ operator== [1/4]

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 3115 of file catch.hpp.

◆ operator== [2/4]

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 3115 of file catch.hpp.

◆ operator== [3/4]

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 3109 of file catch.hpp.

◆ operator== [4/4]

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 3109 of file catch.hpp.

◆ operator>= [1/4]

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 3145 of file catch.hpp.

◆ operator>= [2/4]

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 3145 of file catch.hpp.

◆ operator>= [3/4]

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 3140 of file catch.hpp.

◆ operator>= [4/4]

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 3140 of file catch.hpp.


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