A comparator for comparing a custom data type. More...
Inherited by IBookmarkComparator.
Public Member Functions
|virtual simba_int32||Compare (const simba_byte *in_left, simba_uint32 in_leftNumBytes, const simba_byte *in_right, simba_uint32 in_rightNumBytes) const =0|
|Does comparison for the data type represented by this ICellComparator. |
Protected Member Functions
A comparator for comparing a custom data type.
This interface needs to be implemented for all custom data types when a particular operation is to be supported.
For example, if the DSII has a custom data type - say, CustomType1, and the DSII wishes to support the '=' operation on CustomType1, the DSII needs to do the following:
(1) Implement an ICellComparator to support comparisons for CustomType1. (2) Implement CellComparatorFactory such that the ICellComparator from (1) is returned when MakeNewCellComparator() is called with the appropriate parameters from SimbaEngine.
|virtual simba_int32 Compare||(||const simba_byte *||in_left,|
|const simba_byte *||in_right,|
Does comparison for the data type represented by this ICellComparator.
|in_left||The first byte buffer to compare. Cannot be NULL. (NOT OWN)|
|in_leftNumBytes||The number of bytes in the left buffer. This length should be ignored if the underlying comparison type is fixed width, as the length should already be known.|
|in_right||The second byte buffer to compare with in_left. Cannot be NULL. (NOT OWN)|
|in_rightNumBytes||The number of bytes in the right buffer. This length should be ignored if the underlying comparison type is fixed width, as the length should already be known.|
Implemented in IBookmarkComparator.