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)
 

Private Attributes

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

Detailed Description

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

Definition at line 2634 of file catch.hpp.

Constructor & Destructor Documentation

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

Definition at line 2639 of file catch.hpp.

Member Function Documentation

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

Definition at line 2648 of file catch.hpp.

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

Definition at line 2644 of file catch.hpp.

Member Data Documentation

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

Definition at line 2636 of file catch.hpp.

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

Definition at line 2635 of file catch.hpp.


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


catch_ros
Author(s): Max Schwarz
autogenerated on Sat Jun 8 2019 17:59:58