API
Catch::Matchers::Floating::WithinUlpsMatcher Struct Referenceabstract

#include <catch.hpp>

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

Public Member Functions

 WithinUlpsMatcher (double target, uint64_t ulps, FloatingPointKind baseType)
 
bool match (double const &matchee) const override
 
std::string describe () const override
 
MatchAllOf< T > operator&& (MatcherBase const &other) const
 
MatchAnyOf< T > operator|| (MatcherBase const &other) const
 
MatchNotOf< T > operator! () const
 
std::string toString () const
 
virtual bool match (T const &arg) const=0
 

Protected Attributes

std::string m_cachedToString
 

Private Attributes

double m_target
 
uint64_t m_ulps
 
FloatingPointKind m_type
 

Detailed Description

Definition at line 3438 of file catch.hpp.

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() [1/2]

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

◆ match() [2/2]

virtual bool Catch::Matchers::Impl::MatcherMethod< T >::match ( ObjectT const &  arg) const
pure virtualinherited

◆ operator!()

template<typename T >
MatchNotOf< T > Catch::Matchers::Impl::MatcherBase< T >::operator!
inherited

Definition at line 3379 of file catch.hpp.

◆ operator&&()

template<typename T >
MatchAllOf< T > Catch::Matchers::Impl::MatcherBase< T >::operator&& ( MatcherBase< T > const &  other) const
inherited

Definition at line 3371 of file catch.hpp.

◆ operator||()

template<typename T >
MatchAnyOf< T > Catch::Matchers::Impl::MatcherBase< T >::operator|| ( MatcherBase< T > const &  other) const
inherited

Definition at line 3375 of file catch.hpp.

◆ toString()

std::string Catch::Matchers::Impl::MatcherUntypedBase::toString ( ) const
inherited

Member Data Documentation

◆ m_cachedToString

std::string Catch::Matchers::Impl::MatcherUntypedBase::m_cachedToString
mutableprotectedinherited

Definition at line 3253 of file catch.hpp.

◆ m_target

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

Definition at line 3443 of file catch.hpp.

◆ m_type

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

Definition at line 3445 of file catch.hpp.

◆ m_ulps

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

Definition at line 3444 of file catch.hpp.


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