CellModules
Catch::Detail::Approx Class Reference

#include <catch.hpp>

Public Member Functions

 Approx (double value)
 
 Approx (Approx const &other)
 
Approx operator() (double value)
 
Approxepsilon (double newEpsilon)
 
Approxscale (double newScale)
 
std::string toString () const
 

Static Public Member Functions

static Approx custom ()
 

Private Attributes

double m_epsilon
 
double m_scale
 
double m_value
 

Friends

bool operator== (double lhs, Approx const &rhs)
 
bool operator== (Approx const &lhs, double rhs)
 
bool operator!= (double lhs, Approx const &rhs)
 
bool operator!= (Approx const &lhs, double rhs)
 

Detailed Description

Definition at line 2113 of file catch.hpp.

Constructor & Destructor Documentation

◆ Approx() [1/2]

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

Definition at line 2115 of file catch.hpp.

◆ Approx() [2/2]

Catch::Detail::Approx::Approx ( Approx const &  other)
inline

Definition at line 2121 of file catch.hpp.

Member Function Documentation

◆ custom()

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

Definition at line 2127 of file catch.hpp.

◆ epsilon()

Approx & Catch::Detail::Approx::epsilon ( double  newEpsilon)
inline

Definition at line 2155 of file catch.hpp.

◆ operator()()

Approx Catch::Detail::Approx::operator() ( double  value)
inline

Definition at line 2131 of file catch.hpp.

◆ scale()

Approx & Catch::Detail::Approx::scale ( double  newScale)
inline

Definition at line 2160 of file catch.hpp.

◆ toString()

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

Definition at line 2165 of file catch.hpp.

Friends And Related Function Documentation

◆ operator!= [1/2]

bool operator!= ( Approx const &  lhs,
double  rhs 
)
friend

Definition at line 2151 of file catch.hpp.

◆ operator!= [2/2]

bool operator!= ( double  lhs,
Approx const &  rhs 
)
friend

Definition at line 2147 of file catch.hpp.

◆ operator== [1/2]

bool operator== ( Approx const &  lhs,
double  rhs 
)
friend

Definition at line 2143 of file catch.hpp.

◆ operator== [2/2]

bool operator== ( double  lhs,
Approx const &  rhs 
)
friend

Definition at line 2138 of file catch.hpp.

Member Data Documentation

◆ m_epsilon

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

Definition at line 2172 of file catch.hpp.

◆ m_scale

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

Definition at line 2173 of file catch.hpp.

◆ m_value

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

Definition at line 2174 of file catch.hpp.


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