Euphoria
eu::tests::custom::Approx< T > Struct Template Reference

#include <approx.h>

Public Member Functions

 Approx (T v)
 
Approxset_epsilon (float new_epsilon)
 
Approxset_margin (float new_margin)
 
Approxset_scale (float new_scale)
 
std::string to_string () const
 

Friends

bool operator== (T lhs, Approx< T > const &rhs)
 
bool operator== (Approx< T > const &lhs, T rhs)
 
bool operator!= (T lhs, Approx< T > const &rhs)
 
bool operator!= (Approx< T > const &lhs, T rhs)
 

Detailed Description

template<typename T>
struct eu::tests::custom::Approx< T >

Definition at line 40 of file approx.h.

Constructor & Destructor Documentation

◆ Approx()

template<typename T >
eu::tests::custom::Approx< T >::Approx ( v)
inlineexplicit

Definition at line 43 of file approx.h.

Member Function Documentation

◆ set_epsilon()

template<typename T >
Approx& eu::tests::custom::Approx< T >::set_epsilon ( float  new_epsilon)
inline

Definition at line 50 of file approx.h.

◆ set_margin()

template<typename T >
Approx& eu::tests::custom::Approx< T >::set_margin ( float  new_margin)
inline

Definition at line 57 of file approx.h.

◆ set_scale()

template<typename T >
Approx& eu::tests::custom::Approx< T >::set_scale ( float  new_scale)
inline

Definition at line 64 of file approx.h.

◆ to_string()

template<typename T >
std::string eu::tests::custom::Approx< T >::to_string ( ) const
inline

Definition at line 71 of file approx.h.

Friends And Related Function Documentation

◆ operator!= [1/2]

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

Definition at line 102 of file approx.h.

◆ operator!= [2/2]

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

Definition at line 96 of file approx.h.

◆ operator== [1/2]

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

Definition at line 90 of file approx.h.

◆ operator== [2/2]

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

Definition at line 80 of file approx.h.


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