Oracle® Objects for OLE C++ Class Library Developer's Guide 10g Release 2 (10.2) Part Number B14308-01 |
|
Applies To
OAdvise, OClient, OConnection, OConnectionCollection, ODatabase, ODatabaseCollection, ODynaset, ODynasetMark, OField, OFieldCollection, OParameter, OParameterCollection, OSession, OSessionCollection, OValue, OAQ, OAQAgent, OAQMsg, OBfile, OBlob, OClob, OCollection, OException, OMDAttribute, OMetaData, OObject, ORef, OServer, OSnapshotID
Description
Equivalence operator
Usage
int OOracleObject::operator==(const OOracleObject &other)
int ODynasetMark::operator==(const ODynasetMark &other)
int OValue::operator==(const OValue &other)
Arguments
other |
The other object to which this object is being compared. |
For the subclasses of OOracleObject - namely OAdvise, OClient, OConnection, OConnectionCollection, ODatabase, ODynaset, ODynasetMark, OField, OFieldCollection, OParameter, OParameterCollection, OSession, and OSessionCollection - two objects are the same if they refer to the same underlying implementation object. If one object was assigned from the other or copy constructed from the other, or if they were both obtained from some other object in the same way, they are equal.
If either of the objects is closed (and even if they are both closed), they are considered unequal.
Two OValue objects are equal if their values are equal. This equality crosses over type boundaries: integer 34 equals double 34.0 equals string "34".
Return Value