mockpp::AbstractInvocationDispatcher< R, I > Class Template Reference

Base class for invocation dispatchers. More...

Inheritance diagram for mockpp::AbstractInvocationDispatcher< R, I >:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

template<typename R, typename I>
class mockpp::AbstractInvocationDispatcher< R, I >

Base class for invocation dispatchers.

Definition at line 56 of file AbstractInvocationDispatcher.h.


Member Function Documentation

template<typename R , typename I >
virtual void mockpp::AbstractInvocationDispatcher< R, I >::add ( typename Invokable< R, I >::AP  invokable  )  [inline, virtual]

Adds an invokable to the mock object.

Parameters:
invokable pointer to the invocable

Definition at line 95 of file AbstractInvocationDispatcher.h.

template<typename R , typename I >
virtual String mockpp::AbstractInvocationDispatcher< R, 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 122 of file AbstractInvocationDispatcher.h.

template<typename R , typename I >
virtual void mockpp::AbstractInvocationDispatcher< R, I >::setDefaultStub ( const mockpp::StubHolder< R, I > &  in_defaultStub  )  [inline, virtual]

Sets the default stub for the object.

Parameters:
in_defaultStub pointer to the default stub

Implements mockpp::InvocationDispatcher< R, I >.

Definition at line 87 of file AbstractInvocationDispatcher.h.

template<typename R , typename I >
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.


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