Base class for invocation dispatchers. More...
Public Member Functions | |
AbstractInvocationDispatcher () | |
Constructs the invocation dispatcher. | |
virtual | ~AbstractInvocationDispatcher () |
Destroys the invocation dispatcher. | |
virtual void | setDefaultStub (const mockpp::StubHolder< R, I > &in_defaultStub) |
Sets the default stub for the object. | |
virtual void | add (typename Invokable< R, I >::AP invokable) |
Adds an invokable to the mock object. | |
virtual void | verify () |
Verify that the expected value is within the allowed bounds. | |
virtual void | reset () |
Clears all internal states. | |
virtual String | describeTo (String &buffer) const |
Appends the description of this object to the buffer. | |
Protected Types | |
typedef Invokable< R, I > | Item |
internal shorthand | |
typedef std::vector< Item * > | List |
internal shorthand | |
typedef List::iterator | Iterator |
internal shorthand | |
typedef List::reverse_iterator | ReverseIterator |
internal shorthand | |
typedef List::const_iterator | ConstIterator |
internal shorthand | |
Protected Attributes | |
Stub< R, I >::AP | defaultStub |
internal shared member | |
List | invokables |
internal shared member |
Base class for invocation dispatchers.
Definition at line 56 of file AbstractInvocationDispatcher.h.
virtual void mockpp::AbstractInvocationDispatcher< R, I >::add | ( | typename Invokable< R, I >::AP | invokable | ) | [inline, virtual] |
Adds an invokable to the mock object.
invokable | pointer to the invocable |
Definition at line 95 of file AbstractInvocationDispatcher.h.
virtual String mockpp::AbstractInvocationDispatcher< R, 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 122 of file AbstractInvocationDispatcher.h.
virtual void mockpp::AbstractInvocationDispatcher< R, I >::setDefaultStub | ( | const mockpp::StubHolder< R, I > & | in_defaultStub | ) | [inline, virtual] |
Sets the default stub for the object.
in_defaultStub | pointer to the default stub |
Implements mockpp::InvocationDispatcher< R, I >.
Definition at line 87 of file AbstractInvocationDispatcher.h.
virtual void mockpp::AbstractInvocationDispatcher< R, 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 103 of file AbstractInvocationDispatcher.h.