mockpp::IsEqual< T > Class Template Reference
[Parameter Constraints]

Is the value equal to another value, as tested by the invoked method? Basically the same as IsSame which compares by reference and a specializable comparison template. More...

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

List of all members.

Public Member Functions

 IsEqual (const T &equalArg)
 Constructs the object.
virtual ~IsEqual ()
 Destroys the object.
virtual bool eval (const T &arg) const
 Evaluates the constraint.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

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

Is the value equal to another value, as tested by the invoked method? Basically the same as IsSame which compares by reference and a specializable comparison template.

See also:
mockpp::eq( const T& op )
mockpp::IsSame

Definition at line 70 of file IsEqual.h.


Constructor & Destructor Documentation

template<typename T>
mockpp::IsEqual< T >::IsEqual ( const T &  equalArg  )  [inline]

Constructs the object.

Parameters:
equalArg the value for the comparison

Definition at line 77 of file IsEqual.h.


Member Function Documentation

template<typename T>
virtual String mockpp::IsEqual< T >::describeTo ( 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::SelfDescribing.

Definition at line 100 of file IsEqual.h.

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

Evaluates the constraint.

Parameters:
arg the object against which the constraint is evaluated.
Returns:
true: o meets the constraint,
false if it does not.

Implements mockpp::Constraint< T >.

Definition at line 91 of file IsEqual.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:06 2010 for mockpp by  doxygen 1.6.1