mockpp::StubSequence< R, I > Class Template Reference
[Stubs]

Use one stub after the other from a sequence. More...

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

List of all members.

Public Member Functions

template<typename P >
 StubSequence (P start, P end)
 Constructs the object.
virtual ~StubSequence ()
 Destroys the object.
virtual R invoke (const I &invocation)
 Mock the invocation.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

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

Use one stub after the other from a sequence.

See also:
mockpp::onConsecutiveCalls

Definition at line 54 of file StubSequence.h.


Constructor & Destructor Documentation

template<typename R , typename I >
template<typename P >
mockpp::StubSequence< R, I >::StubSequence ( start,
end 
) [inline]

Constructs the object.

Parameters:
start interator for starting element
end interator for trailing element

Definition at line 63 of file StubSequence.h.

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

Destroys the object.

Also ensures a virtual destructor.

Definition at line 71 of file StubSequence.h.


Member Function Documentation

template<typename R , typename I >
virtual String mockpp::StubSequence< R, I >::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::SelfDescribing.

Definition at line 100 of file StubSequence.h.

template<typename R , typename I >
virtual R mockpp::StubSequence< 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 84 of file StubSequence.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