ManaPlus
Public Member Functions | Private Attributes | Friends
doctest::Approx Class Reference

#include <doctest.h>

Public Member Functions

 Approx (double value)
 
 Approx (const Approx &)
 
Approxoperator= (const Approx &)
 
Approx operator() (double value) const
 
Approxepsilon (double newEpsilon)
 
Approxscale (double newScale)
 

Private Attributes

double m_epsilon
 
double m_scale
 
double m_value
 

Friends

bool operator== (double lhs, const Approx &rhs)
 
bool operator== (const Approx &lhs, double rhs)
 
bool operator!= (double lhs, const Approx &rhs)
 
bool operator!= (const Approx &lhs, double rhs)
 
bool operator<= (double lhs, const Approx &rhs)
 
bool operator<= (const Approx &lhs, double rhs)
 
bool operator>= (double lhs, const Approx &rhs)
 
bool operator>= (const Approx &lhs, double rhs)
 
bool operator< (double lhs, const Approx &rhs)
 
bool operator< (const Approx &lhs, double rhs)
 
bool operator> (double lhs, const Approx &rhs)
 
bool operator> (const Approx &lhs, double rhs)
 
String toString (const Approx &in)
 

Detailed Description

Definition at line 909 of file doctest.h.

Constructor & Destructor Documentation

◆ Approx() [1/2]

doctest::Approx::Approx ( double  value)
explicit

◆ Approx() [2/2]

doctest::Approx::Approx ( const Approx )

Member Function Documentation

◆ epsilon()

Approx& doctest::Approx::epsilon ( double  newEpsilon)

◆ operator()()

Approx doctest::Approx::operator() ( double  value) const

◆ operator=()

Approx& doctest::Approx::operator= ( const Approx )

◆ scale()

Approx& doctest::Approx::scale ( double  newScale)

Friends And Related Function Documentation

◆ operator!= [1/2]

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

◆ operator!= [2/2]

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

◆ operator< [1/2]

bool operator< ( const Approx lhs,
double  rhs 
)
friend

◆ operator< [2/2]

bool operator< ( double  lhs,
const Approx rhs 
)
friend

◆ operator<= [1/2]

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

◆ operator<= [2/2]

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

◆ operator== [1/2]

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

◆ operator== [2/2]

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

◆ operator> [1/2]

bool operator> ( const Approx lhs,
double  rhs 
)
friend

◆ operator> [2/2]

bool operator> ( double  lhs,
const Approx rhs 
)
friend

◆ operator>= [1/2]

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

◆ operator>= [2/2]

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

◆ toString

String toString ( const Approx in)
friend

Field Documentation

◆ m_epsilon

double doctest::Approx::m_epsilon
private

Definition at line 987 of file doctest.h.

◆ m_scale

double doctest::Approx::m_scale
private

Definition at line 988 of file doctest.h.

◆ m_value

double doctest::Approx::m_value
private

Definition at line 989 of file doctest.h.


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