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

Calculates the logical negation of a constraint. More...

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

List of all members.

Public Member Functions

 IsNot (const ConstraintHolder< T > &in_constraint)
 Constructs the object.
virtual ~IsNot ()
 Destroys the object.
virtual bool eval (const T &arg) const
 Evaluates the constraint.
virtual bool verify (const T &arg) const
 Evaluates the constraint at the end.
virtual String describeTo (String &buffer) const
 Appends the description of this object to the buffer.

Detailed Description

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

Calculates the logical negation of a constraint.

See also:
mockpp::ne

Definition at line 50 of file IsNot.h.


Constructor & Destructor Documentation

template<typename T >
mockpp::IsNot< T >::IsNot ( const ConstraintHolder< T > &  in_constraint  )  [inline]

Constructs the object.

Parameters:
in_constraint the constraint which will be negated

Definition at line 57 of file IsNot.h.


Member Function Documentation

template<typename T >
virtual String mockpp::IsNot< 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 91 of file IsNot.h.

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

Evaluates the constraint.

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

Implements mockpp::Constraint< T >.

Definition at line 72 of file IsNot.h.

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

Evaluates the constraint at the end.

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

Reimplemented from mockpp::Constraint< T >.

Definition at line 82 of file IsNot.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