CASObject.
More...
#include <casfuncobj.h>
Public Member Functions | |
| CASFindEqualObj (const CASObject *o) | |
| Constructor. | |
| bool | operator() (const CASObject *o) const |
Compares two CASObjects for equality. | |
Private Attributes | |
| const CASObject * | object |
Holds the pointer to the CASObject. | |
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.
| CASFindEqualObj::CASFindEqualObj | ( | const CASObject * | o | ) | [inline, explicit] |
Constructor. Initializes object with the CASObject to search for.
| o | Pointer to a CASObject which is sought for equality. |
Definition at line 213 of file casfuncobj.h.
| 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.
| o | Pointer to the CASObject of which is compared to the one stored in object. |
true both objects are equal, else it returns false. Definition at line 229 of file casfuncobj.h.
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.
1.4.7