Adapter for the "translation" to typeless matcher objects. More...
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() ?. |
Adapter for the "translation" to typeless matcher objects.
Definition at line 91 of file TypelessMatcher.h.
mockpp::TypelessMatcherAdapter< I >::TypelessMatcherAdapter | ( | TypelessMatcher::AP | tm | ) | [inline] |
Creates the object.
tm | pointer to matcher object |
Definition at line 98 of file TypelessMatcher.h.
virtual String mockpp::TypelessMatcherAdapter< I >::describeTo | ( | String & | buffer | ) | const [inline, virtual] |
Appends the description of this object to the buffer.
buffer | The buffer that the description is appended to. |
Implements mockpp::SelfDescribing.
Definition at line 134 of file TypelessMatcher.h.
virtual bool mockpp::TypelessMatcherAdapter< I >::hasDescription | ( | ) | [inline, virtual] |
Does the object provide meaningful description via describeTo() ?.
Implements mockpp::InvocationMatcher< I >.
Definition at line 142 of file TypelessMatcher.h.
virtual void mockpp::TypelessMatcherAdapter< I >::incInvoked | ( | const I & | invocation | ) | [inline, virtual] |
Increments the invocation count.
invocation | the invocation data |
Implements mockpp::InvocationMatcher< I >.
Definition at line 116 of file TypelessMatcher.h.
virtual bool mockpp::TypelessMatcherAdapter< I >::matches | ( | const I & | invocation | ) | [inline, virtual] |
Checks if an invocation matches the expectaton.
invocation | the invocation data (only dummy data) |
Implements mockpp::InvocationMatcher< I >.
Definition at line 107 of file TypelessMatcher.h.
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.