QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Base class for entries in a QgsAbstractContentCache. More...
#include <qgsabstractcontentcache.h>
Public Member Functions | |
QgsAbstractContentCacheEntry (const QgsAbstractContentCacheEntry &rh)=delete | |
QgsAbstractContentCacheEntry cannot be copied. More... | |
QgsAbstractContentCacheEntry (const QString &path) | |
Constructor for QgsAbstractContentCacheEntry for an entry relating to the specified path. More... | |
virtual | ~QgsAbstractContentCacheEntry ()=default |
virtual int | dataSize () const =0 |
Returns the memory usage in bytes for the entry. More... | |
virtual void | dump () const =0 |
Dumps debugging strings containing the item's properties. More... | |
QgsAbstractContentCacheEntry & | operator= (const QgsAbstractContentCacheEntry &rh)=delete |
QgsAbstractContentCacheEntry cannot be copied. More... | |
bool | operator== (const QgsAbstractContentCacheEntry &other) const |
Public Attributes | |
QDateTime | fileModified |
Timestamp when file was last modified. More... | |
QElapsedTimer | fileModifiedLastCheckTimer |
Time since last check of file modified date. More... | |
int | mFileModifiedCheckTimeout = 30000 |
Timeout before re-checking whether the file modified date has changed. More... | |
QgsAbstractContentCacheEntry * | nextEntry = nullptr |
Entries are kept on a linked list, sorted by last access. More... | |
QString | path |
Represents the absolute path to a file, a remote URL, or a base64 encoded string. More... | |
QgsAbstractContentCacheEntry * | previousEntry = nullptr |
Entries are kept on a linked list, sorted by last access. More... | |
Protected Member Functions | |
virtual bool | isEqual (const QgsAbstractContentCacheEntry *other) const =0 |
Tests whether this entry matches another entry. More... | |
Base class for entries in a QgsAbstractContentCache.
Subclasses must take care to correctly implement the isEqual() method, applying their own logic for testing extra cache properties (e.g. image size for an image-based cache).
Definition at line 47 of file qgsabstractcontentcache.h.
QgsAbstractContentCacheEntry::QgsAbstractContentCacheEntry | ( | const QString & | path | ) |
Constructor for QgsAbstractContentCacheEntry for an entry relating to the specified path.
Definition at line 24 of file qgsabstractcontentcache.cpp.
|
virtualdefault |
|
delete |
QgsAbstractContentCacheEntry cannot be copied.
|
pure virtual |
Returns the memory usage in bytes for the entry.
|
pure virtual |
Dumps debugging strings containing the item's properties.
For testing purposes only.
|
protectedpure virtual |
Tests whether this entry matches another entry.
Subclasses must take care to check that the type of other is of a matching class, and then test extra cache-specific properties, such as image size.
|
delete |
QgsAbstractContentCacheEntry cannot be copied.
|
inline |
Definition at line 89 of file qgsabstractcontentcache.h.
QDateTime QgsAbstractContentCacheEntry::fileModified |
Timestamp when file was last modified.
Definition at line 69 of file qgsabstractcontentcache.h.
QElapsedTimer QgsAbstractContentCacheEntry::fileModifiedLastCheckTimer |
Time since last check of file modified date.
Definition at line 72 of file qgsabstractcontentcache.h.
int QgsAbstractContentCacheEntry::mFileModifiedCheckTimeout = 30000 |
Timeout before re-checking whether the file modified date has changed.
Definition at line 75 of file qgsabstractcontentcache.h.
QgsAbstractContentCacheEntry* QgsAbstractContentCacheEntry::nextEntry = nullptr |
Entries are kept on a linked list, sorted by last access.
This point refers to the next entry in the cache.
Definition at line 81 of file qgsabstractcontentcache.h.
QString QgsAbstractContentCacheEntry::path |
Represents the absolute path to a file, a remote URL, or a base64 encoded string.
Definition at line 66 of file qgsabstractcontentcache.h.
QgsAbstractContentCacheEntry* QgsAbstractContentCacheEntry::previousEntry = nullptr |
Entries are kept on a linked list, sorted by last access.
This point refers to the previous entry in the cache.
Definition at line 87 of file qgsabstractcontentcache.h.