caches.py
Others:
Bases: foundations.dataStructures.Structure
This class represents a storage object for cache metrics.
Parameters: | kwargs – type, content. ( Key / Value pairs ) |
---|
Bases: PyQt4.QtCore.QObject
This class is a QObject subclass used as an abstract resources cache.
Parameters: | parent – Object parent. ( QObject ) |
---|
This signal is emited by the AsynchronousGraphicsItemsCache class whenever content has been added. ( pyqtSignal )
Returns: | Content added to the cache. ( List ) |
---|
This signal is emited by the AsynchronousGraphicsItemsCache class whenever content has been removed. ( pyqtSignal )
Returns: | Content removed from the cache. ( List ) |
---|
This method is the property for self.__mapping attribute.
Returns: | self.__mapping. ( Dictionary ) |
---|
This method returns if given content is cached.
Parameters: | key – Content to retrieve. ( Object ) |
---|---|
Returns: | Is content cached. ( Boolean ) |
This method adds given content to the cache.
Parameters: | **content – Content to add. ( ** ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method removes given content from the cache.
Parameters: | *keys – Content to remove. ( * ) |
---|---|
Returns: | Method success. ( Boolean ) |
Bases: sibl_gui.ui.caches.AbstractResourcesCache
This class provides an asynchronous graphics items cache.
Parameters: |
|
---|
This method is the property for self.__type attribute.
Returns: | self.__type. ( QObject ) |
---|
This method is the property for self.__placeholder attribute.
Returns: | self.__placeholder. ( String ) |
---|
This method is the property for self.__placeholderGraphicsItem attribute.
Returns: | self.__placeholderGraphicsItem. ( QObject ) |
---|
This method is the property for self.__worker attribute.
Returns: | self.__worker. ( QThread ) |
---|
This method reimplements the AbstractResourcesCache.getContent() method.
Parameters: |
|
---|---|
Returns: | Content. ( Object ) |
This method reimplements the AbstractResourcesCache.flushContent() method.
Returns: | Method success. ( Boolean ) |
---|
This method loads given content into the cache.
Parameters: | **content – Content to add. ( ** ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method loads given content asynchronously into the cache.
Parameters: | **content – Content to add. ( ** ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method reimplements the AbstractResourcesCache.getMetrics() method.
Returns: | Cache metrics. ( Dictionary ) |
---|