caches.py
Others:
Bases: foundations.dataStructures.Structure
Defines a storage object for cache metrics.
Initializes the class.
Parameters: | kwargs (dict) – type, content. |
---|
Bases: PyQt4.QtCore.QObject
Defines a QObject subclass used as an abstract resources cache.
Initializes the class.
Parameters: | parent (QObject) – Object parent. |
---|
This signal is emited by the AsynchronousGraphicsItemsCache class whenever content has been added. ( pyqtSignal )
Returns: | Content added to the cache. |
---|---|
Return type: | list |
This signal is emited by the AsynchronousGraphicsItemsCache class whenever content has been removed. ( pyqtSignal )
Returns: | Content removed from the cache. |
---|---|
Return type: | list |
Returns if given content is cached.
Parameters: | key (object) – Content to retrieve. |
---|---|
Returns: | Is content cached. |
Return type: | bool |
Adds given content to the cache.
Parameters: | **content (**) – Content to add. |
---|---|
Returns: | Method success. |
Return type: | bool |
Removes given content from the cache.
Parameters: | *keys (*) – Content to remove. |
---|---|
Returns: | Method success. |
Return type: | bool |
Bases: sibl_gui.ui.caches.AbstractResourcesCache
Defines an asynchronous graphics items cache.
Initializes the class.
Parameters: |
|
---|
Property for self.__placeholder attribute.
Returns: | self.__placeholder. |
---|---|
Return type: | unicode |
Property for self.__placeholderGraphicsItem attribute.
Returns: | self.__placeholderGraphicsItem. |
---|---|
Return type: | QObject |
Reimplements the AbstractResourcesCache.getContent() method.
Parameters: | |
---|---|
Returns: | Content. |
Return type: | object |
Reimplements the AbstractResourcesCache.flushContent() method.
Returns: | Method success. |
---|---|
Return type: | bool |
Loads given content into the cache.
Parameters: | **content (**) – Content to add. |
---|---|
Returns: | Method success. |
Return type: | bool |
Loads given content asynchronously into the cache.
Parameters: | **content (**) – Content to add. |
---|---|
Returns: | Method success. |
Return type: | bool |
Reimplements the AbstractResourcesCache.getMetrics() method.
Returns: | Cache metrics. |
---|---|
Return type: | dict |