ThspsDomStringPoolOptimizer Class Reference
class ThspsDomStringPoolOptimizer |
Member Functions Documentation
AddEntryL(ThspsDomStringPoolOptimizerEntry &)
Add entry to optimizer list.
Close()
Close allocated resources.
Entry(const TInt)
Parameters
const TInt aIndex | Index to Entry. |
FindEntry(const TDesC8 &, const TInt, const TInt)
Find entry from alphabetic list. Uses binary search.
Parameters
const TDesC8 & aString | Reference to string to be searched for. |
const TInt aLeft | Left limit for binary search |
const TInt aRight | Right limit for binary search. |
FindInsertionIndexEstimate(const TDesC8 &, const TInt, const TInt)
TInt
| FindInsertionIndexEstimate | ( | const TDesC8 & | aString, |
| const TInt | aLeft, |
| const TInt | aRight |
| ) | [private] |
Find a position clue for given string.
Will return index that can be used to initiate linear search. Uses binary search to limit required comparisons when string pools starts to fill.
Note: Returned index is not absolute! it must be only used as a start index for linear searching.
Returned index will be quite close to actual insertion position. it will be 0 - 2 steps backward from actual position.
Parameters
const TDesC8 & aString | Reference to string. |
const TInt aLeft | Left limit for binary search |
const TInt aRight | Right limit for binary search. |
GetIndex(const TDesC8 &)
Parameters
const TDesC8 & aString | Reference to given string. |
Member Data Documentation
RArray< ThspsDomStringPoolOptimizerEntry > iEntries
Array of optimizer entries.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.