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

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

Determine the byte wise comparison of two objects. This is the default comparison operation for objects that do not explicitly override the Compare()# function.

The PCLASSINFO# macro declares an override of this function for the particular class. The user need not implement it.

Returns:
LessThan#, EqualTo# or GreaterThan# according to the result memcpy()# function.

Definition at line 413 of file object.cxx.

{
  int retval = memcmp(this, &obj, sizeof(PObject));
  if (retval < 0)
    return LessThan;
  if (retval > 0)
    return GreaterThan;
  return EqualTo;
}

Generated by  Doxygen 1.6.0   Back to index