FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catch::Detail::Approx Class Reference

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

Private Member Functions

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

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

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

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
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
template<typename T , typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
Approx Catch::Detail::Approx::operator() ( T const &  value)
inline

References m_epsilon, m_margin, and m_scale.

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

Field Documentation

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

Referenced by operator()().

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

Referenced by operator()().

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

Referenced by operator()().

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