Agora  1.2.0
Agora project
Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch > Struct Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >:
Collaboration diagram for Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >:

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 = 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)
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchAllOf< Toperator&& (MatcherBase const &other) const
 
MatchAnyOf< Toperator|| (MatcherBase const &other) const
 
MatchNotOf< Toperator! () 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
 

Public Attributes

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

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
 

Constructor & Destructor Documentation

◆ ApproxMatcher()

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

Member Function Documentation

◆ describe()

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

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

Here is the call graph for this function:

◆ epsilon()

template<typename T , typename AllocComp , typename AllocMatch >
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher& Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >::epsilon ( T const &  newEpsilon)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ margin()

template<typename T , typename AllocComp , typename AllocMatch >
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher& Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >::margin ( T const &  newMargin)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ match()

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

◆ scale()

template<typename T , typename AllocComp , typename AllocMatch >
template<typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
ApproxMatcher& Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >::scale ( T const &  newScale)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ approx

template<typename T , typename AllocComp , typename AllocMatch >
Catch::Detail::Approx Catch::Matchers::Vector::ApproxMatcher< T, AllocComp, AllocMatch >::approx = Catch::Detail::Approx::custom()
mutable

◆ m_comparator

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

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