ListAllocatingPolicy Class

(Qt3D::ListAllocatingPolicy)

Allocates resources in a list. More...

Header: #include <ListAllocatingPolicy>
qmake: QT += 3dcore
Since: Qt 5.5

Public Functions

Detailed Description

Allocates resources in a list.

It is best to use it when you don't need to iterate over an entire set of resources, in which case ArrayAllocatingPolicy is faster. It can store a non predefined amount of resources, though there might not be enough handles at some point, depending on the INDEXBITS used. It's main use case is to manage resources that are accessed in an independent manner from other resources of the same type.

See also QResourceManager and ArrayAllocatingPolicy.

Member Function Documentation

ListAllocatingPolicy::ListAllocatingPolicy()

T * ListAllocatingPolicy::allocateResource()

void ListAllocatingPolicy::releaseResource(T * r)

void ListAllocatingPolicy::reset()

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.