mockpp::TypelessConstraintAdapter< T > Class Template Reference

An adapter for the "translation" typeless constrains. More...

Inheritance diagram for mockpp::TypelessConstraintAdapter< T >:
Inheritance graph

List of all members.

Public Member Functions

 TypelessConstraintAdapter (typename TypelessConstraint::AP tc)
 Creates the object.
virtual ~TypelessConstraintAdapter ()
 Destroys the object.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.
virtual bool eval (const T &o) const
 Evaluates the constraint.

Detailed Description

template<typename T>
class mockpp::TypelessConstraintAdapter< T >

An adapter for the "translation" typeless constrains.

Definition at line 69 of file TypelessConstraint.h.

Constructor & Destructor Documentation

template<typename T >
mockpp::TypelessConstraintAdapter< T >::TypelessConstraintAdapter ( typename TypelessConstraint::AP  tc  )  [inline]

Creates the object.

tc pointer to the constraint

Definition at line 76 of file TypelessConstraint.h.

Member Function Documentation

template<typename T >
virtual String mockpp::TypelessConstraintAdapter< T >::describeTo ( String buffer  )  const [inline, virtual]

Appends the description of this object to the buffer.

buffer The buffer that the description is appended to.
The buffer passed to the object.

Implements mockpp::SelfDescribing.

Definition at line 91 of file TypelessConstraint.h.

template<typename T >
virtual bool mockpp::TypelessConstraintAdapter< T >::eval ( const T &  o  )  const [inline, virtual]

Evaluates the constraint.

o The object against which the constraint is evaluated. Actually only a dummy value for syntactical reasons.
true: the underlying expression meets the constraint,
false if it does not.

Implements mockpp::Constraint< T >.

Definition at line 102 of file TypelessConstraint.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:07 2010 for mockpp by  doxygen 1.6.1