predictivesearch/PcsAlgorithm/Algorithm1/inc/CPcsAlgorithm1FilterHelper.h
branchRCL_3
changeset 21 b3431bff8c19
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
15:e8e3147d53eb 21:b3431bff8c19
    90 		CPcsAlgorithm1FilterHelper();
    90 		CPcsAlgorithm1FilterHelper();
    91 		
    91 		
    92 		/**
    92 		/**
    93 		 * 2nd phase construtor
    93 		 * 2nd phase construtor
    94 		 */
    94 		 */
    95 		void ConstructL(TSortType aSortType);   
    95 		void ConstructL(TSortType aSortType);
    96 		
    96 		
    97 		/**
    97 		/**
    98 		* Adds each result into respective pool based on match pattern
    98 		* Adds each result into respective pool based on match pattern
    99 		*/
    99 		*/
   100 		TInt AddToPoolL(CPsData* psData, RPointerArray<TDesC>& aPatternSequence);
   100 		TInt AddToPoolL(CPsData* psData, RPointerArray<TDesC>& aPatternSequence);
   101 		
   101 		
   102 		/**
   102 		/**
   103 		* Searches for for aSeq in iMatchPatternDetails and returns index 
   103 		* Searches for for aSeq in iMatchPatternDetails and returns index 
   104         * where input sequence is found. Returns -1 if not found
   104         * where input sequence is found. Returns -1 if not found
   105 		*/
   105 		*/
   106 		TInt FindSequence(TDesC* aSeq);
   106 		TInt FindSequence(const TDesC& aSeq);
   107 		
   107 		
   108 		
   108 		
   109 		/**
   109 		/**
   110 		* Searches for for seq in subpatterns of iMatchPatternDetails[aPatternIndex]
   110 		* Searches for for seq in subpatterns of iMatchPatternDetails[aPatternIndex]
   111         * and returns index where input sequence is found. 
   111         * and returns index where input sequence is found. 
   112         * Returns -1 if not found
   112         * Returns -1 if not found
   113 		*/
   113 		*/
   114 		TInt FindSubSequence(TDesC* aSeq,TInt aPatternIndex);
   114 		TInt FindSubSequence(const TDesC& aSeq, TInt aPatternIndex);
   115 		
   115 		
   116 		/**
   116 		/**
   117 		* Creates the Matchpattern aSeq in  iMatchPatternDetails.
   117 		* Creates the Matchpattern aSeq in  iMatchPatternDetails.
   118         * Returns the index of the sequence in iMatchPatternDetails
   118         * Returns the index of the sequence in iMatchPatternDetails
   119         */
   119         */
   120 		TInt CreateMatchPatternDetailsAndPoolsL(TDesC* aSeq);
   120 		TInt CreateMatchPatternDetailsAndPoolsL(const TDesC& aSeq);
   121 		
   121 		
   122 		/**
   122 		/**
   123 		* Searches for all the subsequences of aSeq and updates the 
   123 		* Searches for all the subsequences of aSeq and updates the 
   124 		* aFirstOccrVal in iMatchPatternDetails.
   124 		* aFirstOccrVal in iMatchPatternDetails.
   125         */
   125         */
   126 		void UpdateForSubSequencesL(TDesC& aSeq,TInt aFirstOccrVal);
   126 		void UpdateForSubSequencesL(const TDesC& aSeq, TInt aFirstOccrVal);
   127 
   127 
   128 	private:
   128 	private:
   129 		
   129 		
   130 		/**
   130 		/**
   131 		* Own. Array of TPsPatternDetails structure
   131 		* Own. Array of TPsPatternDetails structure