mockpp::TypelessMatcherAdapter< I > Class Template Reference

Adapter for the "translation" to typeless matcher objects. More...

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

List of all members.

Public Member Functions

 TypelessMatcherAdapter (TypelessMatcher::AP tm)
 Creates 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 void verify ()
 Verify that the expected value is within the allowed bounds.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.
virtual bool hasDescription ()
 Does the object provide meaningful description via describeTo() ?.

Detailed Description

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

Adapter for the "translation" to typeless matcher objects.

Definition at line 91 of file TypelessMatcher.h.


Constructor & Destructor Documentation

template<typename I >
mockpp::TypelessMatcherAdapter< I >::TypelessMatcherAdapter ( TypelessMatcher::AP  tm  )  [inline]

Creates the object.

Parameters:
tm pointer to matcher object

Definition at line 98 of file TypelessMatcher.h.


Member Function Documentation

template<typename I >
virtual String mockpp::TypelessMatcherAdapter< 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 134 of file TypelessMatcher.h.

template<typename I >
virtual bool mockpp::TypelessMatcherAdapter< I >::hasDescription (  )  [inline, virtual]

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

Returns:
true: description is available

Implements mockpp::InvocationMatcher< I >.

Definition at line 142 of file TypelessMatcher.h.

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

Increments the invocation count.

Parameters:
invocation the invocation data

Implements mockpp::InvocationMatcher< I >.

Definition at line 116 of file TypelessMatcher.h.

template<typename I >
virtual bool mockpp::TypelessMatcherAdapter< 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 107 of file TypelessMatcher.h.

template<typename I >
virtual void mockpp::TypelessMatcherAdapter< I >::verify (  )  [inline, virtual]

Verify that the expected value is within the allowed bounds.

If it fails, an AssertionFailedError is thrown

Implements mockpp::Verifiable.

Definition at line 125 of file TypelessMatcher.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:09 2010 for mockpp by  doxygen 1.6.1