mockpp::ThrowableWrapper< T > Class Template Reference

A helper template to wrap a throwable object in a uniform fashion. More...

Inheritance diagram for mockpp::ThrowableWrapper< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void throw_me ()
 Throws the object.
virtual bool hasThrown () const
 Queries if the object has been thrown.
void reset ()
 Resets the counter to 0.
 ThrowableWrapper (const T &o)
 Contructs the ThrowableWrapper.

Detailed Description

template<class T>
class mockpp::ThrowableWrapper< T >

A helper template to wrap a throwable object in a uniform fashion.

Definition at line 69 of file Throwable.h.


Constructor & Destructor Documentation

template<class T >
mockpp::ThrowableWrapper< T >::ThrowableWrapper ( const T &  o  )  [inline]

Contructs the ThrowableWrapper.

Parameters:
o object to throw

Definition at line 106 of file Throwable.h.


Member Function Documentation

template<class T >
virtual bool mockpp::ThrowableWrapper< T >::hasThrown (  )  const [inline, virtual]

Queries if the object has been thrown.

Returns:
true: object has been thrown at least once

Implements mockpp::Throwable.

Definition at line 87 of file Throwable.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:00 2010 for mockpp by  doxygen 1.6.1