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

A stub returning the default value of the return type. More...

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

List of all members.

Public Member Functions

 DefaultResultStub ()
 Creates the object.
 DefaultResultStub (const R &val)
 Creates the object.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.
virtual R typelessInvoke ()
 Creates the object.

Detailed Description

template<typename R>
class mockpp::DefaultResultStub< R >

A stub returning the default value of the return type.

See also:
mockpp::returnValue

Definition at line 50 of file DefaultResultStub.h.


Constructor & Destructor Documentation

template<typename R >
mockpp::DefaultResultStub< R >::DefaultResultStub (  )  [inline]

Creates the object.

This returns the default value for the return type

Definition at line 57 of file DefaultResultStub.h.

template<typename R >
mockpp::DefaultResultStub< R >::DefaultResultStub ( const R &  val  )  [inline]

Creates the object.

Parameters:
val the default return value

Definition at line 65 of file DefaultResultStub.h.


Member Function Documentation

template<typename R >
virtual String mockpp::DefaultResultStub< 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 DefaultResultStub.h.

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

Creates the object.

Returns:
return a given default value
otherwise return the default for the return type

Implements mockpp::TypelessStub< R >.

Definition at line 84 of file DefaultResultStub.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:02 2010 for mockpp by  doxygen 1.6.1