QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Base class for entries in a QgsAbstractContentCache. More...
#include <qgsabstractcontentcache.h>
Public Member Functions | |
QgsAbstractContentCacheEntry (const QgsAbstractContentCacheEntry &rh)=delete | |
QgsAbstractContentCacheEntry (const QString &path) | |
Constructor for QgsAbstractContentCacheEntry for an entry relating to the specified path. | |
virtual | ~QgsAbstractContentCacheEntry ()=default |
virtual int | dataSize () const =0 |
Returns the memory usage in bytes for the entry. | |
virtual void | dump () const =0 |
Dumps debugging strings containing the item's properties. | |
QgsAbstractContentCacheEntry & | operator= (const QgsAbstractContentCacheEntry &rh)=delete |
bool | operator== (const QgsAbstractContentCacheEntry &other) const |
Public Attributes | |
QDateTime | fileModified |
Timestamp when file was last modified. | |
QElapsedTimer | fileModifiedLastCheckTimer |
Time since last check of file modified date. | |
int | mFileModifiedCheckTimeout = 30000 |
Timeout before re-checking whether the file modified date has changed. | |
QgsAbstractContentCacheEntry * | nextEntry = nullptr |
Entries are kept on a linked list, sorted by last access. | |
QString | path |
Represents the absolute path to a file, a remote URL, or a base64 encoded string. | |
QgsAbstractContentCacheEntry * | previousEntry = nullptr |
Entries are kept on a linked list, sorted by last access. | |
Protected Member Functions | |
virtual bool | isEqual (const QgsAbstractContentCacheEntry *other) const =0 |
Tests whether this entry matches another entry. | |
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 51 of file qgsabstractcontentcache.h.
QgsAbstractContentCacheEntry::QgsAbstractContentCacheEntry | ( | const QString & | path | ) |
Constructor for QgsAbstractContentCacheEntry for an entry relating to the specified path.
Definition at line 27 of file qgsabstractcontentcache.cpp.
|
virtualdefault |
|
delete |
|
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 |
|
inline |
Definition at line 91 of file qgsabstractcontentcache.h.
QDateTime QgsAbstractContentCacheEntry::fileModified |
Timestamp when file was last modified.
Definition at line 71 of file qgsabstractcontentcache.h.
QElapsedTimer QgsAbstractContentCacheEntry::fileModifiedLastCheckTimer |
Time since last check of file modified date.
Definition at line 74 of file qgsabstractcontentcache.h.
int QgsAbstractContentCacheEntry::mFileModifiedCheckTimeout = 30000 |
Timeout before re-checking whether the file modified date has changed.
Definition at line 77 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 83 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 68 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 89 of file qgsabstractcontentcache.h.