Logo Search packages:      
Sourcecode: pwlib version File versions

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.

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

Definition at line 404 of file object.cxx.

Referenced by PObject::Compare().

  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