API
Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc > Struct Template Referenceabstract

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >:
Inheritance graph
Collaboration diagram for Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >:
Collaboration graph

Public Member Functions

 ContainsElementMatcher (T const &comparator)
 
bool match (std::vector< T, Alloc > const &v) const override
 
std::string describe () const override
 
MatchAllOf< T > operator&& (MatcherBase const &other) const
 
MatchAnyOf< T > operator|| (MatcherBase const &other) const
 
MatchNotOf< T > operator! () const
 
std::string toString () const
 
virtual bool match (T const &arg) const=0
 

Public Attributes

T const & m_comparator
 

Protected Attributes

std::string m_cachedToString
 

Detailed Description

template<typename T, typename Alloc>
struct Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >

Definition at line 3607 of file catch.hpp.

Constructor & Destructor Documentation

◆ ContainsElementMatcher()

template<typename T , typename Alloc >
Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::ContainsElementMatcher ( T const &  comparator)
inline

Definition at line 3609 of file catch.hpp.

Member Function Documentation

◆ describe()

template<typename T , typename Alloc >
std::string Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::describe ( ) const
inlineoverridevirtual

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

Definition at line 3620 of file catch.hpp.

◆ match() [1/2]

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

Definition at line 3611 of file catch.hpp.

◆ match() [2/2]

virtual bool Catch::Matchers::Impl::MatcherMethod< T >::match ( ObjectT const &  arg) const
pure virtualinherited

◆ operator!()

template<typename T >
MatchNotOf< T > Catch::Matchers::Impl::MatcherBase< T >::operator!
inherited

Definition at line 3379 of file catch.hpp.

◆ operator&&()

template<typename T >
MatchAllOf< T > Catch::Matchers::Impl::MatcherBase< T >::operator&& ( MatcherBase< T > const &  other) const
inherited

Definition at line 3371 of file catch.hpp.

◆ operator||()

template<typename T >
MatchAnyOf< T > Catch::Matchers::Impl::MatcherBase< T >::operator|| ( MatcherBase< T > const &  other) const
inherited

Definition at line 3375 of file catch.hpp.

◆ toString()

std::string Catch::Matchers::Impl::MatcherUntypedBase::toString ( ) const
inherited

Member Data Documentation

◆ m_cachedToString

std::string Catch::Matchers::Impl::MatcherUntypedBase::m_cachedToString
mutableprotectedinherited

Definition at line 3253 of file catch.hpp.

◆ m_comparator

template<typename T , typename Alloc >
T const& Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::m_comparator

Definition at line 3624 of file catch.hpp.


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