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

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

List of all members.

Public Types

typedef AutoPointer< Stub< R, I > > AP
 internal shorthand
typedef R ReturnType
 internal shorthand
typedef I InvocationType
 internal shorthand

Public Member Functions

virtual ~Stub ()
 Destroys the object.
virtual R invoke (const I &invocation)=0
 Mock the invocation.

Detailed Description

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

Definition at line 57 of file Stub.h.


Constructor & Destructor Documentation

template<typename R, typename I>
virtual mockpp::Stub< R, I >::~Stub (  )  [inline, virtual]

Destroys the object.

Also ensure virtual destructor.

Definition at line 67 of file Stub.h.


Member Function Documentation

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

Mock the invocation.

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

Implemented in mockpp::StubSequence< R, I >, mockpp::TestFailureStub< R, I >, mockpp::TypelessStubAdapter< R, I >, and mockpp::TypelessStubAdapter< void, I >.


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