Enforcer< Ref, P, R > Class Template Reference

This class is intended to be used as a runtime version of the assert macro. More...

#include <Enforce.h>

List of all members.

Public Member Functions

 Enforcer (Ref t, const char *locus)
 Constructor.
Ref operator * () const
 Dereferencing operator, throws an exception using the provided Raiser template parameter if locus_ is defined.
template<class MsgType>
Enforceroperator() (const MsgType &msg)
 Functor operator.
 Enforcer (const Enforcer &rhs)
 Copy constructor.


Detailed Description

template<typename Ref, typename P, typename R>
class Enforcer< Ref, P, R >

This class is intended to be used as a runtime version of the assert macro.


Constructor & Destructor Documentation

template<typename Ref, typename P, typename R>
Enforcer< Ref, P, R >::Enforcer Ref  t,
const char *  locus
[inline]
 

Constructor.

Parameters:
[in] t Object to test
[in] locus The expression string

template<typename Ref, typename P, typename R>
Enforcer< Ref, P, R >::Enforcer const Enforcer< Ref, P, R > &  rhs  )  [inline]
 

Copy constructor.

Parameters:
rhs The Enforcer object to copy from


Member Function Documentation

template<typename Ref, typename P, typename R>
template<class MsgType>
Enforcer& Enforcer< Ref, P, R >::operator() const MsgType &  msg  )  [inline]
 

Functor operator.

Parameters:
[in] msg The message to add to the exception


The documentation for this class was generated from the following file:
Generated on Wed Mar 8 14:43:32 2006 for Fountain by  doxygen 1.4.6