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