Public Member Functions | Private Attributes | List of all members
Catch::Matchers::Generic::PredicateMatcher< T > Class Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Generic::PredicateMatcher< T >:
Inheritance graph
[legend]

Public Member Functions

std::string describe () const override
 
bool match (T const &item) const override
 
 PredicateMatcher (std::function< bool(T const &)> const &elem, std::string const &descr)
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchNotOf< T > operator! () const
 
MatchAllOf< T > operator&& (MatcherBase const &other) const
 
MatchAnyOf< T > operator|| (MatcherBase const &other) const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 

Private Attributes

std::string m_description
 
std::function< bool(T const &)> m_predicate
 

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
 

Detailed Description

template<typename T>
class Catch::Matchers::Generic::PredicateMatcher< T >

Definition at line 3093 of file catch.hpp.

Constructor & Destructor Documentation

◆ PredicateMatcher()

template<typename T>
Catch::Matchers::Generic::PredicateMatcher< T >::PredicateMatcher ( std::function< bool(T const &)> const &  elem,
std::string const &  descr 
)
inline

Definition at line 3098 of file catch.hpp.

Member Function Documentation

◆ describe()

template<typename T>
std::string Catch::Matchers::Generic::PredicateMatcher< T >::describe ( ) const
inlineoverridevirtual

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

Definition at line 3107 of file catch.hpp.

◆ match()

template<typename T>
bool Catch::Matchers::Generic::PredicateMatcher< T >::match ( T const &  item) const
inlineoverridevirtual

Implements Catch::Matchers::Impl::MatcherMethod< T >.

Definition at line 3103 of file catch.hpp.

Member Data Documentation

◆ m_description

template<typename T>
std::string Catch::Matchers::Generic::PredicateMatcher< T >::m_description
private

Definition at line 3095 of file catch.hpp.

◆ m_predicate

template<typename T>
std::function<bool(T const&)> Catch::Matchers::Generic::PredicateMatcher< T >::m_predicate
private

Definition at line 3094 of file catch.hpp.


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


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:03