mockpp::RandomStub< R, T > Class Template Reference
[Stubs]

Return a random value. More...

Inheritance diagram for mockpp::RandomStub< R, T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 RandomStub (T low, T high)
 Creates the object.
 RandomStub (T high)
 Creates the object.
virtual R typelessInvoke ()
 Mock the invocation without passing parameters.
virtual mockpp::String describeTo (mockpp::String &buffer) const
 Appends the description of this object to the buffer.

Static Public Member Functions

static R getNumber (T low, T high)
 Creates a random number within a given range.

Detailed Description

template<typename R, typename T = int>
class mockpp::RandomStub< R, T >

Return a random value.

See also:
mockpp::randomValue

Definition at line 49 of file RandomStub.h.


Constructor & Destructor Documentation

template<typename R, typename T = int>
mockpp::RandomStub< R, T >::RandomStub ( low,
high 
) [inline]

Creates the object.

Parameters:
low lower bound of random values
high upper bound of random values

Definition at line 57 of file RandomStub.h.

template<typename R, typename T = int>
mockpp::RandomStub< R, T >::RandomStub ( high  )  [inline]

Creates the object.

Parameters:
high upper bound of random values

Definition at line 66 of file RandomStub.h.


Member Function Documentation

template<typename R, typename T = int>
virtual mockpp::String mockpp::RandomStub< R, T >::describeTo ( mockpp::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::TypelessStub< R >.

Definition at line 94 of file RandomStub.h.

template<typename R, typename T = int>
static R mockpp::RandomStub< R, T >::getNumber ( low,
high 
) [inline, static]

Creates a random number within a given range.

Parameters:
low lower bound of random values
high upper bound of random values

Definition at line 76 of file RandomStub.h.

template<typename R, typename T = int>
virtual R mockpp::RandomStub< R, T >::typelessInvoke (  )  [inline, virtual]

Mock the invocation without passing parameters.

Returns:
random value from mocked invocation

Implements mockpp::TypelessStub< R >.

Definition at line 85 of file RandomStub.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:02 2010 for mockpp by  doxygen 1.6.1