mockpp::NoArgumentsMatcher< I > Class Template Reference

Matches no arguments at all. More...

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

List of all members.

Public Member Functions

virtual bool matches (const I &invocation)
 Checks if an invocation matches the expectaton.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

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

Matches no arguments at all.

Not too useful but may be nice to express the intent.

Definition at line 50 of file NoArgumentsMatcher.h.


Member Function Documentation

template<typename I >
virtual String mockpp::NoArgumentsMatcher< 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 69 of file NoArgumentsMatcher.h.

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

Checks if an invocation matches the expectaton.

Parameters:
invocation the invocation data (only dummy data)
Returns:
always false for methods with at least one argument
always true for methods without arguments

Implements mockpp::InvocationMatcher< I >.

Definition at line 59 of file NoArgumentsMatcher.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