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

Is the value the same object as another value? Basically the same as IsEqual which compares with a value. More...

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

List of all members.

Public Member Functions

 IsSame (const T &object)
 Constructs the object.
virtual ~IsSame ()
 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::IsSame< T >

Is the value the same object as another value? Basically the same as IsEqual which compares with a value.

IsSame compares by reference and a comparison template which can be specialized.

See also:
mockpp::same
mockpp::IsEqual
mockpp::isSameComparison

Definition at line 72 of file IsSame.h.


Constructor & Destructor Documentation

template<typename T >
mockpp::IsSame< T >::IsSame ( const T &  object  )  [inline]

Constructs the object.

Parameters:
object the object to compare with

Definition at line 79 of file IsSame.h.


Member Function Documentation

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

template<typename T >
virtual bool mockpp::IsSame< 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 93 of file IsSame.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