![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcache.h>
Public Member Functions | |
QCache (qsizetype maxCost=100) noexcept | |
~QCache () | |
qsizetype | maxCost () const noexcept |
void | setMaxCost (qsizetype m) noexcept(std::is_nothrow_destructible_v< Node >) |
qsizetype | totalCost () const noexcept |
qsizetype | size () const noexcept |
qsizetype | count () const noexcept |
bool | isEmpty () const noexcept |
QList< Key > | keys () const |
void | clear () noexcept(std::is_nothrow_destructible_v< Node >) |
bool | insert (const Key &key, T *object, qsizetype cost=1) |
T * | object (const Key &key) const noexcept |
T * | operator[] (const Key &key) const noexcept |
bool | contains (const Key &key) const noexcept |
bool | remove (const Key &key) noexcept(std::is_nothrow_destructible_v< Node >) |
T * | take (const Key &key) noexcept(std::is_nothrow_destructible_v< Key >) |