mockpp::ReturnStub< R > Class Template Reference
[Stubs]

Always return the same specified value. More...

Inheritance diagram for mockpp::ReturnStub< R >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ReturnStub (const R &in_result)
 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>
class mockpp::ReturnStub< R >

Always return the same specified value.

See also:
mockpp::returnValue

Definition at line 51 of file ReturnStub.h.


Constructor & Destructor Documentation

template<typename R >
mockpp::ReturnStub< R >::ReturnStub ( const R &  in_result  )  [inline]

Creates the object.

Parameters:
in_result the return value

Definition at line 58 of file ReturnStub.h.


Member Function Documentation

template<typename R >
virtual String mockpp::ReturnStub< R >::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 74 of file ReturnStub.h.

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

Mock the invocation without passing parameters.

Returns:
return value from mocked invocation

Implements mockpp::TypelessStub< R >.

Definition at line 65 of file ReturnStub.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