mockpp::InvokedBeforeMatcher< I > Class Template Reference
[Matchers]

Has the method been invoked before another? More...

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

List of all members.

Public Member Functions

 InvokedBeforeMatcher (InvokedRecorder *in_subsequentCallRecorder, const String &in_subsequentCallDescription)
 Constructs the object.
virtual bool matches (const I &invocation)
 Checks if an invocation matches the expectaton.
virtual void incInvoked (const I &invocation)
 Increments the invocation count.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

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

Has the method been invoked before another?

See also:
mockpp::MatchBuilder::before

Definition at line 47 of file InvokedBeforeMatcher.h.


Constructor & Destructor Documentation

template<typename I >
mockpp::InvokedBeforeMatcher< I >::InvokedBeforeMatcher ( InvokedRecorder in_subsequentCallRecorder,
const String in_subsequentCallDescription 
) [inline]

Constructs the object.

Parameters:
in_subsequentCallRecorder pointer to the invcation call recorder
in_subsequentCallDescription string describing the subsequent call

Definition at line 55 of file InvokedBeforeMatcher.h.


Member Function Documentation

template<typename I >
virtual String mockpp::InvokedBeforeMatcher< I >::describeTo ( String buffer  )  const [inline, virtual]

Appends the description of this object to the buffer.

Parameters:
buffer The buffer that the description is appended to.
Returns:
The current content of the buffer data

Implements mockpp::SelfDescribing.

Definition at line 86 of file InvokedBeforeMatcher.h.

template<typename I >
virtual void mockpp::InvokedBeforeMatcher< I >::incInvoked ( const I &  invocation  )  [inline, virtual]

Increments the invocation count.

Parameters:
invocation the invocation data

Reimplemented from mockpp::StatelessInvocationMatcher< I >.

Definition at line 74 of file InvokedBeforeMatcher.h.

template<typename I >
virtual bool mockpp::InvokedBeforeMatcher< I >::matches ( const I &  invocation  )  [inline, virtual]

Checks if an invocation matches the expectaton.

Parameters:
invocation the invocation data (only dummy data)
Returns:
true: the invocation matches

Implements mockpp::InvocationMatcher< I >.

Definition at line 65 of file InvokedBeforeMatcher.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:08 2010 for mockpp by  doxygen 1.6.1