Gromacs  2021-beta2-UNCHECKED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::test::FloatTypeMatcher< FloatType > Class Template Reference

Inherits MatcherInterface< std::tuple< FloatType, FloatType > >.

Description

template<typename FloatType>
class gmx::test::FloatTypeMatcher< FloatType >

Implementation class for RealEq matcher.

See RealEq().

The implementation is templated so that we can support all of real, float and double in the same build without duplication.

Public Member Functions

 FloatTypeMatcher (const FloatingPointTolerance &tolerance)
 Constructor.
 
bool MatchAndExplain (std::tuple< FloatType, FloatType > arg, testing::MatchResultListener *listener) const override
 Compare the two elements of arg, return whether they are equal, and comment on listener when they are not.
 
void DescribeTo (::std::ostream *os) const override
 Describe to a human what matching means.
 
void DescribeNegationTo (::std::ostream *os) const override
 Describe to a human what failing to match means.
 

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