cache.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.cache.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.__default attribute.
| Returns: | self.__default. ( String ) |
|---|
This method is the property for self.__defaultGraphicsItem attribute.
| Returns: | self.__defaultGraphicsItem. ( QObject ) |
|---|
This method is the property for self.__worker attribute.
| Returns: | self.__worker. ( QThread ) |
|---|
This method reimplements the AbstractResourcesCache.addContent() method.
| Parameters: | **content – Content to add. ( ** ) |
|---|---|
| Returns: | Method success. ( Boolean ) |
This method adds given content to the cache.
| Parameters: | *content – Paths to add. ( * ) |
|---|---|
| Returns: | Method success. ( Boolean ) |
This method reimplements the AbstractResourcesCache.getMetrics() method.