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

Adapter for the "translation" to typeless stub objects. More...

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

List of all members.

Public Member Functions

 TypelessStubAdapter (typename TypelessStub< R >::AP tm, bool in_delete=true)
 Creates the object.
virtual R invoke (const I &invocation)
 Mock the invocation.

Detailed Description

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

Adapter for the "translation" to typeless stub objects.

Definition at line 124 of file TypelessStub.h.


Constructor & Destructor Documentation

template<typename R, typename I>
mockpp::TypelessStubAdapter< R, I >::TypelessStubAdapter ( typename TypelessStub< R >::AP  tm,
bool  in_delete = true 
) [inline]

Creates the object.

Parameters:
tm pointer to stub object
in_delete true: delete stub when the object is destroyed

Definition at line 132 of file TypelessStub.h.


Member Function Documentation

template<typename R, typename I>
virtual R mockpp::TypelessStubAdapter< R, I >::invoke ( const I &  invocation  )  [inline, virtual]

Mock the invocation.

Parameters:
invocation invocation data
Returns:
return value from mocked invocation

Implements mockpp::Stub< R, I >.

Definition at line 140 of file TypelessStub.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:04 2010 for mockpp by  doxygen 1.6.1