Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

PObject::Comparison PObject::Compare ( const PObject obj ) const [virtual, inherited]

Compare the two objects and return their relative rank. This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object.

The default function is to use the CompareObjectMemoryDirect()# function to do a byte wise memory comparison of the two objects.

Returns:
LessThan#, EqualTo# or GreaterThan# according to the relative rank of the objects.

Reimplemented in PASN_Null, PASN_Boolean, PASN_Integer, PASN_Enumeration, PASN_Real, PASN_ObjectId, PASN_BitString, PASN_OctetString, PASN_ConstrainedString, PASN_BMPString, PASN_Choice, PASN_Sequence, PASN_Array, PHTTPField, PServiceMacro, PIpAccessControlEntry, PMemoryFile, PURL, PAbstractArray, PArrayObjects, PChannel, POrdinalKey, PHashTable, PFile, PIndirectChannel, PIPSocket::Address, PAbstractList, PAbstractSortedList, PPipeChannel, PProcess, PTime, PRemoteConnection, PSafePtrBase, PSmartPointer, PTimeInterval, and TestObject.

Definition at line 431 of file object.cxx.

Referenced by PASN_ConstrainedString::Compare(), PASN_OctetString::Compare(), PAbstractSortedList::GetValuesIndex(), PObject::operator!=(), PObject::operator<(), PObject::operator<=(), PObject::operator==(), PObject::operator>(), and PObject::operator>=().

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index