Hamcrest-Qt  0.0.1
Hamcrest matchers for C++/Qt
 All Classes Namespaces Functions
Public Member Functions | List of all members
HamcrestQt::AllOf< T > Class Template Reference

Calculates the logical conjunction of multiple matchers. More...

#include <allof.h>

Inheritance diagram for HamcrestQt::AllOf< T >:
HamcrestQt::DiagnosingMatcher< T > HamcrestQt::BaseMatcher< T > HamcrestQt::Matcher< T > HamcrestQt::SelfDescribing

Public Member Functions

 AllOf (const QList< QSharedPointer< Matcher< T > > > &m)
 
virtual bool matches (const T &item, Description &mismatch) const
 
virtual void describeTo (Description &description) const
 Generates a description of the object. More...
 
- Public Member Functions inherited from HamcrestQt::DiagnosingMatcher< T >
virtual bool matches (const T &item) const
 Evaluates the matcher for argument item. More...
 
virtual void describeMismatch (const T &item, Description &mismatchDescription) const
 Generate a description of why the matcher has not accepted the item. More...
 
- Public Member Functions inherited from HamcrestQt::BaseMatcher< T >
virtual QString toString () const
 

Additional Inherited Members

Detailed Description

template<typename T>
class HamcrestQt::AllOf< T >

Calculates the logical conjunction of multiple matchers.

Evaluation is shortcut, so subsequent matchers are not called if an earlier matcher returns false.

Member Function Documentation

template<typename T >
virtual void HamcrestQt::AllOf< T >::describeTo ( Description description) const
inlinevirtual

Generates a description of the object.

The description may be part of a description of a larger object of which this is just a component, so it should be worded appropriately.

Parameters
descriptionThe description to be built or appended to.

Implements HamcrestQt::SelfDescribing.


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