mockpp::InvocationMatcher< I > Class Template Reference

Inheritance diagram for mockpp::InvocationMatcher< I >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef AutoPointer
< InvocationMatcher< I > > 
AP
 internal shorthand

Public Member Functions

 InvocationMatcher ()
 Constructs the object.
virtual ~InvocationMatcher ()
 Destroys the object.
virtual bool matches (const I &invocation)=0
 Checks if an invocation matches the expectaton.
virtual void incInvoked (const I &invocation)=0
 Increments the invocation count.
virtual bool hasDescription ()=0
 Does the object provide meaningful description via describeTo() ?.
virtual void reset ()
 Sets all internal data to the state after construction.

Detailed Description

template<typename I>
class mockpp::InvocationMatcher< I >

Definition at line 57 of file InvocationMatcher.h.


Member Function Documentation

template<typename I>
virtual bool mockpp::InvocationMatcher< I >::hasDescription (  )  [pure virtual]

Does the object provide meaningful description via describeTo() ?.

Returns:
true: description is available

Implemented in mockpp::StatelessInvocationMatcher< I >, and mockpp::TypelessMatcherAdapter< I >.

template<typename I>
virtual void mockpp::InvocationMatcher< I >::incInvoked ( const I &  invocation  )  [pure virtual]

Increments the invocation count.

Parameters:
invocation the invocation data

Implemented in mockpp::InvokedAfterMatcher< I >, mockpp::InvokedBeforeMatcher< I >, mockpp::StatelessInvocationMatcher< I >, and mockpp::TypelessMatcherAdapter< I >.

template<typename I>
virtual bool mockpp::InvocationMatcher< I >::matches ( const I &  invocation  )  [pure virtual]

Checks if an invocation matches the expectaton.

Parameters:
invocation the invocation data
Returns:
true: the invocation matches

Implemented in mockpp::AnyArgumentsMatcher< I >, mockpp::ArgumentsMatcher< I >, mockpp::InvokedAfterMatcher< I >, mockpp::InvokedBeforeMatcher< I >, mockpp::NoArgumentsMatcher< I >, and mockpp::TypelessMatcherAdapter< I >.

template<typename I>
virtual void mockpp::InvocationMatcher< I >::reset (  )  [inline, virtual]

Sets all internal data to the state after construction.

Only a dummy as matchers don't have data to reset.

Implements mockpp::Verifiable.

Definition at line 95 of file InvocationMatcher.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:49:07 2010 for mockpp by  doxygen 1.6.1