spdlog
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Private Attributes | List of all members
Catch::Matchers::Floating::WithinAbsMatcher Struct Referenceabstract

Detailed Description

Definition at line 3258 of file catch.hpp.

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Floating::WithinAbsMatcher:
[legend]

Public Member Functions

 WithinAbsMatcher (double target, double margin)
 
bool match (double const &matchee) const override
 
std::string describe () const override
 
MatchAllOf< Toperator&& (MatcherBase const &other) const
 
MatchAnyOf< Toperator|| (MatcherBase const &other) const
 
MatchNotOf< Toperator! () const
 
std::string toString () const
 
virtual bool match (T const &arg) const=0
 

Protected Attributes

std::string m_cachedToString
 

Private Attributes

double m_target
 
double m_margin
 

Constructor & Destructor Documentation

◆ WithinAbsMatcher()

Catch::Matchers::Floating::WithinAbsMatcher::WithinAbsMatcher ( double  target,
double  margin 
)

Member Function Documentation

◆ describe()

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

◆ match() [1/2]

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

◆ match() [2/2]

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

◆ operator!()

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

Definition at line 3232 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 3224 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 3228 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 3117 of file catch.hpp.

◆ m_margin

double Catch::Matchers::Floating::WithinAbsMatcher::m_margin
private

Definition at line 3264 of file catch.hpp.

◆ m_target

double Catch::Matchers::Floating::WithinAbsMatcher::m_target
private

Definition at line 3263 of file catch.hpp.


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