equal
deleted
inserted
replaced
54 qDebug() << "start:" << start; |
54 qDebug() << "start:" << start; |
55 qDebug() << "offset:" << offset; |
55 qDebug() << "offset:" << offset; |
56 } |
56 } |
57 #endif |
57 #endif |
58 |
58 |
|
59 QContiguousCacheData *QContiguousCacheData::allocate(int size, int alignment) |
|
60 { |
|
61 return static_cast<QContiguousCacheData *>(qMallocAligned(size, alignment)); |
|
62 } |
|
63 |
|
64 void QContiguousCacheData::free(QContiguousCacheData *data) |
|
65 { |
|
66 qFreeAligned(data); |
|
67 } |
|
68 |
59 /*! \class QContiguousCache |
69 /*! \class QContiguousCache |
60 \brief The QContiguousCache class is a template class that provides a contiguous cache. |
70 \brief The QContiguousCache class is a template class that provides a contiguous cache. |
61 \ingroup tools |
71 \ingroup tools |
62 \ingroup shared |
72 \ingroup shared |
63 \reentrant |
73 \reentrant |
138 |
148 |
139 Destroys the cache. |
149 Destroys the cache. |
140 */ |
150 */ |
141 |
151 |
142 /*! \fn void QContiguousCache::detach() |
152 /*! \fn void QContiguousCache::detach() |
143 |
|
144 \internal |
153 \internal |
145 */ |
154 */ |
146 |
155 |
147 /*! \fn bool QContiguousCache::isDetached() const |
156 /*! \fn bool QContiguousCache::isDetached() const |
148 |
|
149 \internal |
157 \internal |
150 */ |
158 */ |
151 |
159 |
152 /*! \fn void QContiguousCache::setSharable(bool sharable) |
160 /*! \fn void QContiguousCache::setSharable(bool sharable) |
153 |
|
154 \internal |
161 \internal |
155 */ |
162 */ |
|
163 |
|
164 /*! \typedef QContiguousCache::value_type |
|
165 \internal |
|
166 */ |
|
167 |
|
168 /*! \typedef QContiguousCache::pointer |
|
169 \internal |
|
170 */ |
|
171 |
|
172 /*! \typedef QContiguousCache::const_pointer |
|
173 \internal |
|
174 */ |
|
175 |
|
176 /*! \typedef QContiguousCache::reference |
|
177 \internal |
|
178 */ |
|
179 |
|
180 /*! \typedef QContiguousCache::const_reference |
|
181 \internal |
|
182 */ |
|
183 |
|
184 /*! \typedef QContiguousCache::difference_type |
|
185 \internal |
|
186 */ |
|
187 |
|
188 /*! \typedef QContiguousCache::size_type |
|
189 \internal |
|
190 */ |
156 |
191 |
157 /*! \fn QContiguousCache<T> &QContiguousCache::operator=(const QContiguousCache<T> &other) |
192 /*! \fn QContiguousCache<T> &QContiguousCache::operator=(const QContiguousCache<T> &other) |
158 |
193 |
159 Assigns \a other to this cache and returns a reference to this cache. |
194 Assigns \a other to this cache and returns a reference to this cache. |
160 */ |
195 */ |