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

Proxy class to conveniently move Stubs into Stub related methods. More...

List of all members.

Public Member Functions

 StubHolder (const AutoPointer< TypelessStub< R > > &in_stub)
 Creates the object.
 StubHolder (TypelessStub< R > *in_stub)
 Creates the object.
 StubHolder (Stub< R, I > *in_stub)
 Creates the object.
 StubHolder (const AutoPointer< Stub< R, I > > &in_stub)
 Creates the object.
Stub< R, I > * release () const
 Returns the stub object.
 operator AutoPointer< Stub< R, I > > () const
 Returns the stub object.

Detailed Description

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

Proxy class to conveniently move Stubs into Stub related methods.

Definition at line 51 of file StubHolder.h.


Constructor & Destructor Documentation

template<typename R, typename I>
mockpp::StubHolder< R, I >::StubHolder ( const AutoPointer< TypelessStub< R > > &  in_stub  )  [inline]

Creates the object.

Parameters:
in_stub pointer to the stub

Definition at line 58 of file StubHolder.h.

template<typename R, typename I>
mockpp::StubHolder< R, I >::StubHolder ( TypelessStub< R > *  in_stub  )  [inline]

Creates the object.

Parameters:
in_stub pointer to the stub

Definition at line 65 of file StubHolder.h.

template<typename R, typename I>
mockpp::StubHolder< R, I >::StubHolder ( Stub< R, I > *  in_stub  )  [inline]

Creates the object.

Parameters:
in_stub pointer to the stub

Definition at line 72 of file StubHolder.h.

template<typename R, typename I>
mockpp::StubHolder< R, I >::StubHolder ( const AutoPointer< Stub< R, I > > &  in_stub  )  [inline]

Creates the object.

Parameters:
in_stub pointer to the stub

Definition at line 81 of file StubHolder.h.


Member Function Documentation

template<typename R, typename I>
mockpp::StubHolder< R, I >::operator AutoPointer< Stub< R, I > > (  )  const [inline]

Returns the stub object.

Attention:
After this method is called this object becomes invalid.
Returns:
the stub object

Definition at line 100 of file StubHolder.h.

template<typename R, typename I>
Stub<R, I>* mockpp::StubHolder< R, I >::release (  )  const [inline]

Returns the stub object.

Attention:
After this method is called this object becomes invalid.
Returns:
the stub object

Definition at line 91 of file StubHolder.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