Public Member Functions | Private Attributes | Friends | List of all members
doctest::Approx Class Reference

#include <doctest.h>

Public Member Functions

 Approx (double value)
 
Approxepsilon (double newEpsilon)
 
Approx operator() (double value) const
 
Approxscale (double newScale)
 

Private Attributes

double m_epsilon
 
double m_scale
 
double m_value
 

Friends

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

Detailed Description

Definition at line 881 of file doctest.h.

Constructor & Destructor Documentation

◆ Approx()

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

Member Function Documentation

◆ epsilon()

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

◆ operator()()

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

◆ scale()

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

Friends And Related Function Documentation

◆ operator!= [1/2]

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

◆ operator!= [2/2]

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

◆ operator< [1/2]

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

◆ operator< [2/2]

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

◆ operator<= [1/2]

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

◆ operator<= [2/2]

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

◆ operator== [1/2]

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

◆ operator== [2/2]

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

◆ operator> [1/2]

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

◆ operator> [2/2]

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

◆ operator>= [1/2]

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

◆ operator>= [2/2]

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

◆ toString

DOCTEST_INTERFACE friend String toString ( const Approx in)
friend

Member Data Documentation

◆ m_epsilon

double doctest::Approx::m_epsilon
private

Definition at line 957 of file doctest.h.

◆ m_scale

double doctest::Approx::m_scale
private

Definition at line 958 of file doctest.h.

◆ m_value

double doctest::Approx::m_value
private

Definition at line 959 of file doctest.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:23