Agora  1.2.0
Agora project
Catch::Matchers::Floating::WithinUlpsMatcher Struct Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Floating::WithinUlpsMatcher:
Collaboration diagram for Catch::Matchers::Floating::WithinUlpsMatcher:

Public Member Functions

 WithinUlpsMatcher (double target, uint64_t ulps, FloatingPointKind baseType)
 
bool match (double const &matchee) const override
 
std::string describe () const override
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchAllOf< Toperator&& (MatcherBase const &other) const
 
MatchAnyOf< Toperator|| (MatcherBase const &other) const
 
MatchNotOf< Toperator! () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherMethod< T >
virtual bool match (T const &arg) const=0
 

Private Attributes

double m_target
 
uint64_t m_ulps
 
FloatingPointKind m_type
 

Additional Inherited Members

- Protected Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
virtual ~MatcherUntypedBase ()
 
- Protected Attributes inherited from Catch::Matchers::Impl::MatcherUntypedBase
std::string m_cachedToString
 

Constructor & Destructor Documentation

◆ WithinUlpsMatcher()

Catch::Matchers::Floating::WithinUlpsMatcher::WithinUlpsMatcher ( double  target,
uint64_t  ulps,
FloatingPointKind  baseType 
)

Member Function Documentation

◆ describe()

std::string Catch::Matchers::Floating::WithinUlpsMatcher::describe ( ) const
overridevirtual

◆ match()

bool Catch::Matchers::Floating::WithinUlpsMatcher::match ( double const &  matchee) const
override

Member Data Documentation

◆ m_target

double Catch::Matchers::Floating::WithinUlpsMatcher::m_target
private

◆ m_type

FloatingPointKind Catch::Matchers::Floating::WithinUlpsMatcher::m_type
private

◆ m_ulps

uint64_t Catch::Matchers::Floating::WithinUlpsMatcher::m_ulps
private

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