mockpp::ReturnAndCallStub< R, F > Class Template Reference
[Stubs]

Always return the same specified value and call some functor. More...

Inheritance diagram for mockpp::ReturnAndCallStub< R, F >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ReturnAndCallStub (const R &in_result, F in_functor)
 Creates the object.
virtual R typelessInvoke ()
 Mock the invocation without passing parameters.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

template<typename R, typename F>
class mockpp::ReturnAndCallStub< R, F >

Always return the same specified value and call some functor.

See also:
mockpp::returnValueAndCall

Definition at line 50 of file ReturnAndCallStub.h.


Constructor & Destructor Documentation

template<typename R, typename F>
mockpp::ReturnAndCallStub< R, F >::ReturnAndCallStub ( const R &  in_result,
in_functor 
) [inline]

Creates the object.

Parameters:
in_result the return value
in_functor functor to call

Definition at line 58 of file ReturnAndCallStub.h.


Member Function Documentation

template<typename R, typename F>
virtual String mockpp::ReturnAndCallStub< R, F >::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::TypelessStub< R >.

Definition at line 79 of file ReturnAndCallStub.h.

template<typename R, typename F>
virtual R mockpp::ReturnAndCallStub< R, F >::typelessInvoke (  )  [inline, virtual]

Mock the invocation without passing parameters.

Calls the functor and returns the value.

Returns:
return value from mocked invocation

Implements mockpp::TypelessStub< R >.

Definition at line 69 of file ReturnAndCallStub.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:03 2010 for mockpp by  doxygen 1.6.1