Public Member Functions | Private Attributes | List of all members
Catch::Matchers::Floating::WithinRelMatcher Struct Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Floating::WithinRelMatcher:
Inheritance graph
[legend]

Public Member Functions

std::string describe () const override
 
bool match (double const &matchee) const override
 
 WithinRelMatcher (double target, double epsilon)
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchNotOf< T > operator! () const
 
MatchAllOf< T > operator&& (MatcherBase const &other) const
 
MatchAnyOf< T > operator|| (MatcherBase const &other) 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_epsilon
 
double m_target
 

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
 

Detailed Description

Definition at line 3452 of file catch.hpp.

Constructor & Destructor Documentation

◆ WithinRelMatcher()

Catch::Matchers::Floating::WithinRelMatcher::WithinRelMatcher ( double  target,
double  epsilon 
)

Member Function Documentation

◆ describe()

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

◆ match()

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

Member Data Documentation

◆ m_epsilon

double Catch::Matchers::Floating::WithinRelMatcher::m_epsilon
private

Definition at line 3458 of file catch.hpp.

◆ m_target

double Catch::Matchers::Floating::WithinRelMatcher::m_target
private

Definition at line 3457 of file catch.hpp.


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


magic_enum
Author(s):
autogenerated on Fri Feb 21 2025 03:20:19