ARB
Public Member Functions | List of all members
arb_test::predicate_matcher< T, FUNC > Class Template Reference

#include <test_unit.h>

Inheritance diagram for arb_test::predicate_matcher< T, FUNC >:
Inheritance graph
[legend]
Collaboration diagram for arb_test::predicate_matcher< T, FUNC >:
Collaboration graph
[legend]

Public Member Functions

 predicate_matcher (bool wanted, predicate< FUNC > pred_, const matchable_value< T > &arg)
 
 MAKE_CLONABLE (predicate_matcher)
 
bool matches (const copy< T > &v1, const copy< T > &v2) const OVERRIDE
 
const charrelation (bool isMatch) const OVERRIDE
 
- Public Member Functions inherited from arb_test::value_matcher< T >
 value_matcher (const matchable_value< T > &expected_)
 
 ~value_matcher () OVERRIDE
 
const matchable_value< T > & get_expected () const
 
bool matches (const matchable &thing) const FINAL_OVERRIDE
 
void dump_expectation (const matchable &thing, int indent) const OVERRIDE
 
void dump_brief_description (const matchable &thing) const OVERRIDE
 
- Public Member Functions inherited from arb_test::matcher
virtual ~matcher ()
 can match things. More...
 
 HASTOBE_CLONABLE (matcher)
 

Detailed Description

template<typename T, typename FUNC>
class arb_test::predicate_matcher< T, FUNC >

Definition at line 755 of file test_unit.h.

Constructor & Destructor Documentation

template<typename T , typename FUNC >
arb_test::predicate_matcher< T, FUNC >::predicate_matcher ( bool  wanted,
predicate< FUNC >  pred_,
const matchable_value< T > &  arg 
)
inline

Definition at line 760 of file test_unit.h.

Member Function Documentation

template<typename T , typename FUNC >
arb_test::predicate_matcher< T, FUNC >::MAKE_CLONABLE ( predicate_matcher< T, FUNC >  )
template<typename T , typename FUNC >
bool arb_test::predicate_matcher< T, FUNC >::matches ( const copy< T > &  v1,
const copy< T > &  v2 
) const
inlinevirtual

Implements arb_test::value_matcher< T >.

Definition at line 767 of file test_unit.h.

References arb_test::predicate< FUNC >::matches().

template<typename T , typename FUNC >
const char* arb_test::predicate_matcher< T, FUNC >::relation ( bool  isMatch) const
inlinevirtual

Implements arb_test::value_matcher< T >.

Definition at line 768 of file test_unit.h.

References arb_test::predicate< FUNC >::describe().


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