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

Helper class to handle invocations. More...

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

List of all members.

Public Types

typedef AutoPointer< Invokable
< R, I > > 
AP
 internal shorthand

Public Member Functions

 Invokable ()
 Constructs the object.
virtual bool matches (const I &invocation)=0
 Checks if an invocation matches the expectaton.
virtual R invoke (const I &invocation)=0
 Mock the invocation.
virtual bool hasDescription ()=0
 Does the object provide meaningful description via describeTo() ?.

Detailed Description

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

Helper class to handle invocations.

Definition at line 56 of file Invokable.h.


Member Function Documentation

template<typename R, typename I>
virtual bool mockpp::Invokable< R, I >::hasDescription (  )  [pure virtual]

Does the object provide meaningful description via describeTo() ?.

Returns:
true: description is available

Implemented in mockpp::InvocationMockerBase< R, I >, and mockpp::InvocationMockerBase< void, I >.

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

Mock the invocation.

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

Implemented in mockpp::InvocationMocker< R, I >, and mockpp::InvocationMocker< void, I >.

template<typename R, typename I>
virtual bool mockpp::Invokable< R, I >::matches ( const I &  invocation  )  [pure virtual]

Checks if an invocation matches the expectaton.

Parameters:
invocation the invocation data
Returns:
true: the invocation matches

Implemented in mockpp::InvocationMockerBase< R, I >, and mockpp::InvocationMockerBase< 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:14 2010 for mockpp by  doxygen 1.6.1