CASFindEqualObj Class Reference
[SupportClasses]

Used for finding an equal CASObject. More...

#include <casfuncobj.h>

List of all members.

Public Member Functions

 CASFindEqualObj (const CASObject *o)
 Constructor.
bool operator() (const CASObject *o) const
 Compares two CASObjects for equality.

Private Attributes

const CASObjectobject
 Holds the pointer to the CASObject.


Detailed Description

This function object is used for finding an equal CASObject in a list or vector. The object sought for equality has to be passed as argument to the constructor.

This class is derived from std::unary_function.

It relies on CASObject::IsEqual() for testing equality.

Definition at line 194 of file casfuncobj.h.


Constructor & Destructor Documentation

CASFindEqualObj::CASFindEqualObj ( const CASObject o  )  [inline, explicit]

Constructor. Initializes object with the CASObject to search for.

Parameters:
o Pointer to a CASObject which is sought for equality.

Definition at line 213 of file casfuncobj.h.


Member Function Documentation

bool CASFindEqualObj::operator() ( const CASObject o  )  const [inline]

It takes a pointer to a CASObject and compares this object to the one pointed to by object. If they are equal, * true is returned.

Parameters:
o Pointer to the CASObject of which is compared to the one stored in object.
Returns:
true both objects are equal, else it returns false.

Definition at line 229 of file casfuncobj.h.


Member Data Documentation

const CASObject* CASFindEqualObj::object [private]

Holds the pointer to the CASObject to which the other objects are compared.

Definition at line 202 of file casfuncobj.h.


The documentation for this class was generated from the following file:
Generated on Sun Dec 31 01:57:30 2006 for ECAS by  doxygen 1.4.7