Horizon
Loading...
Searching...
No Matches
Catch::Matchers::ApproxMatcher< T, AllocComp, AllocMatch > Class Template Referencefinal
Inheritance diagram for Catch::Matchers::ApproxMatcher< T, AllocComp, AllocMatch >:
Catch::Matchers::MatcherBase< std::vector< T, AllocMatch > > Catch::Matchers::MatcherUntypedBase

Public Member Functions

 ApproxMatcher (std::vector< T, AllocComp > const &comparator)
bool match (std::vector< T, AllocMatch > const &v) const override
std::string describe () const override
template<typename = std::enable_if_t<std::is_constructible<double, T>::value>>
ApproxMatcher & epsilon (T const &newEpsilon)
template<typename = std::enable_if_t<std::is_constructible<double, T>::value>>
ApproxMatcher & margin (T const &newMargin)
template<typename = std::enable_if_t<std::is_constructible<double, T>::value>>
ApproxMatcher & scale (T const &newScale)
Public Member Functions inherited from Catch::Matchers::MatcherBase< std::vector< T, AllocMatch > >
virtual bool match (T const &arg) const=0
Public Member Functions inherited from Catch::Matchers::MatcherUntypedBase
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 MatcherUntypedBase (MatcherUntypedBase &&)=default
MatcherUntypedBase & operator= (MatcherUntypedBase const &)=delete
MatcherUntypedBase & operator= (MatcherUntypedBase &&)=delete
std::string toString () const

Additional Inherited Members

Protected Attributes inherited from Catch::Matchers::MatcherUntypedBase
std::string m_cachedToString

Member Function Documentation

◆ describe()

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

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