SPH
Public Member Functions | Friends | List of all members
Approx< Type > Class Template Reference

This is more or less stolen from Catch unit-testing framework. More...

#include <Approx.h>

Public Member Functions

INLINE Approx (const Type value)
 
INLINE Approx operator() (const Type &value)
 
INLINE ApproxsetEpsilon (const Float newEps)
 

Friends

INLINE friend bool operator== (const Type &lhs, const Approx &rhs)
 
INLINE friend bool operator== (const Approx &lhs, const Type &rhs)
 
INLINE friend bool operator!= (const Type &lhs, const Approx &rhs)
 
INLINE friend bool operator!= (const Approx &lhs, const Type &rhs)
 
std::ostream & operator<< (std::ostream &stream, const Approx &approx)
 

Detailed Description

template<typename Type>
class Approx< Type >

This is more or less stolen from Catch unit-testing framework.

Definition at line 14 of file Approx.h.

Constructor & Destructor Documentation

◆ Approx()

template<typename Type >
INLINE Approx< Type >::Approx ( const Type  value)
inlineexplicit

Definition at line 20 of file Approx.h.

Member Function Documentation

◆ operator()()

template<typename Type >
INLINE Approx Approx< Type >::operator() ( const Type &  value)
inline

Definition at line 24 of file Approx.h.

◆ setEpsilon()

template<typename Type >
INLINE Approx& Approx< Type >::setEpsilon ( const Float  newEps)
inline

Definition at line 46 of file Approx.h.

Friends And Related Function Documentation

◆ operator!= [1/2]

template<typename Type >
INLINE friend bool operator!= ( const Approx< Type > &  lhs,
const Type &  rhs 
)
friend

Definition at line 42 of file Approx.h.

◆ operator!= [2/2]

template<typename Type >
INLINE friend bool operator!= ( const Type &  lhs,
const Approx< Type > &  rhs 
)
friend

Definition at line 38 of file Approx.h.

◆ operator<<

template<typename Type >
std::ostream& operator<< ( std::ostream &  stream,
const Approx< Type > &  approx 
)
friend

Definition at line 51 of file Approx.h.

◆ operator== [1/2]

template<typename Type >
INLINE friend bool operator== ( const Approx< Type > &  lhs,
const Type &  rhs 
)
friend

Definition at line 34 of file Approx.h.

◆ operator== [2/2]

template<typename Type >
INLINE friend bool operator== ( const Type &  lhs,
const Approx< Type > &  rhs 
)
friend

Definition at line 30 of file Approx.h.


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