predictivesearch/PcsAlgorithm/Algorithm1/src/CPcsPoolElement.cpp
branchRCL_3
changeset 21 9da50d567e3c
parent 20 f4a778e096c2
equal deleted inserted replaced
20:f4a778e096c2 21:9da50d567e3c
    72 {
    72 {
    73 	return iPsData;
    73 	return iPsData;
    74 }
    74 }
    75 
    75 
    76 // ----------------------------------------------------------------------------
    76 // ----------------------------------------------------------------------------
    77 // CPcsPoolElement::CompareByData
    77 // CPcsPoolElement::CompareByDataL
    78 // Calls CPsData::CompareByData to compare CPsData objects
    78 //
    79 // ----------------------------------------------------------------------------
    79 // ----------------------------------------------------------------------------
    80 TInt CPcsPoolElement::CompareByData ( const CPcsPoolElement& aObject1,  const CPcsPoolElement& aObject2 )
    80 TInt CPcsPoolElement::CompareByDataL ( const CPcsPoolElement& aObject1,  const CPcsPoolElement& aObject2 )
    81 {
    81 {
    82     CPsData *data1 = const_cast<CPcsPoolElement&> (aObject1).GetPsData();
    82     CPsData *data1 = const_cast<CPcsPoolElement&> (aObject1).GetPsData();
    83     CPsData *data2 = const_cast<CPcsPoolElement&> (aObject2).GetPsData();  
    83     CPsData *data2 = const_cast<CPcsPoolElement&> (aObject2).GetPsData();  
    84     return (CPcsAlgorithm1Utils::CompareDataBySortOrderL(*(data1), *(data2)));
    84     return (CPcsAlgorithm1Utils::CompareDataBySortOrderL(*(data1), *(data2)));
    85 }
    85 }