LcsCompare Class Reference

Theis class is passed to std::sort. More...

#include <LcsHash.h>

List of all members.

Public Member Functions

 LcsCompare (SharedLcsCompareColKeyUsingOffsetIndex compareInstanceInit)
 Constructor.
bool operator() (const uint16_t colKeyOffsetIndex1, const uint16_t colKeyOffsetIndex2)
 The less than operator.

Private Attributes

SharedLcsCompareColKeyUsingOffsetIndex compareInstance
 Reference to the class that keeps the compare context and implements the comparison method.


Detailed Description

Theis class is passed to std::sort.

It implements the "less than" operator.

Definition at line 402 of file LcsHash.h.


Constructor & Destructor Documentation

LcsCompare::LcsCompare ( SharedLcsCompareColKeyUsingOffsetIndex  compareInstanceInit  )  [inline, explicit]

Constructor.

Parameters:
[in] compareInstanceInit reference to the class LcsCompareColKeyUsingOffsetIndex

Definition at line 875 of file LcsHash.h.

References compareInstance.

00877 {
00878     compareInstance = compareInstanceInit;
00879 }


Member Function Documentation

bool LcsCompare::operator() ( const uint16_t  colKeyOffsetIndex1,
const uint16_t  colKeyOffsetIndex2 
) [inline]

The less than operator.

Parameters:
[in] colKeyOffsetIndex1 index into the offset of the first value
[in] colKeyOffsetIndex2 index into the offset of the second value
Returns:
true if value at offset located at colKeyOffsetIndex1 is less than value at offset loocated at colKeyOffsetIndex2

Definition at line 881 of file LcsHash.h.

References compareInstance.

00884 {
00885     return compareInstance->lessThan(colKeyOffsetIndex1, colKeyOffsetIndex2);
00886 }


Member Data Documentation

SharedLcsCompareColKeyUsingOffsetIndex LcsCompare::compareInstance [private]

Reference to the class that keeps the compare context and implements the comparison method.

Definition at line 410 of file LcsHash.h.

Referenced by LcsCompare(), and operator()().


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 04:00:37 2009 for Fennel by  doxygen 1.5.1