CASTypeFinder_EQ Class Reference
[SupportClasses]

Compares the type of two CASObject. More...

#include <casfuncobj.h>

List of all members.

Public Member Functions

 CASTypeFinder_EQ (const CASObject *o)
 Takes the CASObject to which the others are compared.
bool operator() (const CASObject *o) const
 Compares two CASObjects for identical type.

Private Attributes

const CASObjectobject
 Holds the pointer to the CASObject.


Detailed Description

Used in conjunction with the find() method. It checks the type of the object for equality. This is done by only checking GetType() of both objects. The CASObject compared against the others has to be passed to the constructor.

In short, it can be used to find CASObject of the same type. However, the objects do not necessarily represent the same term or value.

Definition at line 143 of file casfuncobj.h.


Constructor & Destructor Documentation

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

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

Parameters:
o The pointer to the CASObject to which the others are compared against by calling operator().

Definition at line 163 of file casfuncobj.h.


Member Function Documentation

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

It takes a pointer to a CASObject and compares the type of that object to the one pointed to by o.

Parameters:
o Pointer to the CASObject of which the type is compared to the one stored in o.
Returns:
true if the type of both objects are equal, e.g. GetType() yields the same value. Else it returns false.

Definition at line 178 of file casfuncobj.h.


Member Data Documentation

const CASObject* CASTypeFinder_EQ::object [private]

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

Definition at line 151 of file casfuncobj.h.


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