equal
deleted
inserted
replaced
35 * Returns a reference to the singleton instance. |
35 * Returns a reference to the singleton instance. |
36 * |
36 * |
37 * @return The pointer to the singleton instance |
37 * @return The pointer to the singleton instance |
38 */ |
38 */ |
39 IMPORT_C static COpenWfcStreamMap& InstanceL(); |
39 IMPORT_C static COpenWfcStreamMap& InstanceL(); |
40 /** |
|
41 * Expands the array to accommodate a specified number of key-value pairs. |
|
42 * If the hash map already has enough space for the specified number of elements, no |
|
43 * action is taken. Any elements already in the map are retained. |
|
44 * |
|
45 * @param aExpand The number of key-value pairs for which space should be allocated. |
|
46 * @return KErrNone if the operation completed aInternalVersion. |
|
47 * @return KErrNoMemory if sufficient memory could not be allocated. |
|
48 */ |
|
49 IMPORT_C TInt Reserve(TInt aExpand); |
|
50 /** |
40 /** |
51 * Look up a specified TSurfaceId key in the associative array and return a pointer to the |
41 * Look up a specified TSurfaceId key in the associative array and return a pointer to the |
52 * corresponding to a native stream. The reference counter of the native stream is incremented by one. |
42 * corresponding to a native stream. The reference counter of the native stream is incremented by one. |
53 * |
43 * |
54 * @param aSurfaceId The TSurfaceId key to look up |
44 * @param aSurfaceId The TSurfaceId key to look up |
104 /** |
94 /** |
105 * Returns a reference to the surface manager. |
95 * Returns a reference to the surface manager. |
106 * |
96 * |
107 * @return A reference to the local SurfaceManager |
97 * @return A reference to the local SurfaceManager |
108 */ |
98 */ |
109 RSurfaceManager& SurfaceManager(); |
99 IMPORT_C RSurfaceManager& SurfaceManager(); |
110 |
100 |
111 /** |
101 /** |
112 * Returns a pointer to the main heap |
102 * Returns a pointer to the main heap |
113 * |
103 * |
114 * @return A pointer to the main heap |
104 * @return A pointer to the main heap |
154 private: |
144 private: |
155 RFastLock& iLock; |
145 RFastLock& iLock; |
156 }; |
146 }; |
157 private: |
147 private: |
158 /** |
148 /** |
159 * Copy constructor |
|
160 */ |
|
161 COpenWfcStreamMap(const COpenWfcStreamMap&); |
|
162 /** |
|
163 * Assignment operator |
|
164 */ |
|
165 COpenWfcStreamMap& operator= (const COpenWfcStreamMap&); |
|
166 /** |
|
167 * Symbian constructor used with two stage construction pattern |
149 * Symbian constructor used with two stage construction pattern |
168 */ |
150 */ |
169 void ConstructL(); |
151 void ConstructL(); |
170 /** |
152 /** |
171 Forms a 32-bit hash value from a TSurfaceId. |
153 Forms a 32-bit hash value from a TSurfaceId. |