spdlog
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Catch::Matchers::Vector::ApproxMatcher< T > Struct Template Referenceabstract

Detailed Description

template<typename T>
struct Catch::Matchers::Vector::ApproxMatcher< T >

Definition at line 3489 of file catch.hpp.

Inheritance diagram for Catch::Matchers::Vector::ApproxMatcher< T >:
[legend]

Public Member Functions

 ApproxMatcher (std::vector< T > const &comparator)
 
bool match (std::vector< T > const &v) const override
 
std::string describe () const override
 
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcherepsilon (T const &newEpsilon)
 
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatchermargin (T const &newMargin)
 
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcherscale (T const &newScale)
 
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
 

Public Attributes

std::vector< T > const & m_comparator
 
Catch::Detail::Approx approx = Catch::Detail::Approx::custom()
 

Protected Attributes

std::string m_cachedToString
 

Constructor & Destructor Documentation

◆ ApproxMatcher()

template<typename T >
Catch::Matchers::Vector::ApproxMatcher< T >::ApproxMatcher ( std::vector< T > const &  comparator)
inline

Definition at line 3491 of file catch.hpp.

Member Function Documentation

◆ describe()

template<typename T >
std::string Catch::Matchers::Vector::ApproxMatcher< T >::describe ( ) const
inlineoverridevirtual

Implements Catch::Matchers::Impl::MatcherUntypedBase.

Definition at line 3501 of file catch.hpp.

◆ epsilon()

template<typename T >
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher & Catch::Matchers::Vector::ApproxMatcher< T >::epsilon ( T const &  newEpsilon)
inline

Definition at line 3505 of file catch.hpp.

◆ margin()

template<typename T >
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher & Catch::Matchers::Vector::ApproxMatcher< T >::margin ( T const &  newMargin)
inline

Definition at line 3510 of file catch.hpp.

◆ match() [1/2]

template<typename T >
bool Catch::Matchers::Vector::ApproxMatcher< T >::match ( std::vector< T > const &  v) const
inlineoverride

Definition at line 3493 of file catch.hpp.

◆ 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.

◆ scale()

template<typename T >
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher & Catch::Matchers::Vector::ApproxMatcher< T >::scale ( T const &  newScale)
inline

Definition at line 3515 of file catch.hpp.

◆ toString()

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

Member Data Documentation

◆ approx

Definition at line 3521 of file catch.hpp.

◆ m_cachedToString

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

Definition at line 3117 of file catch.hpp.

◆ m_comparator

template<typename T >
std::vector<T> const& Catch::Matchers::Vector::ApproxMatcher< T >::m_comparator

Definition at line 3520 of file catch.hpp.


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