TResourceCache class
TResourceCache - a cache (linked list) for storing Resources.Declaration
TResourceCache = classDescends from it: TFontHandleCache THandleResourceCache TPenHandleCache
Description
Nothing more than the line above yet.
Properties
MaxUnusedItem | public | MaxUnusedItem - the largest permitted number of unused items. |
ResourceCacheItemClass | public | ResourceCacheItemClass - the Class of the current Cache Item. |
ResourceCacheDescriptorClass | public | ResourceCacheDescriptorClass - the class of the current cache item descriptor. |
Methods
RemoveItem | protected | RemoveItem from CacheItem list. |
RemoveDescriptor | protected | RemoveDescriptor from Cache Descriptor list. |
ItemUsed | protected | ItemUsed - method for signalling that the specified Item is being used. |
ItemUnused | protected | ItemUnused - method for signalling that the specified Item is unused. |
ItemIsUsed | protected | ItemIsUsed - returns True if specified Item is being used. |
Create | public | Constructor for the class instance. |
Clear | public | Clears the current entries in the Resource Cache. |
Destroy | public | Destructor for the class instance. |
CompareItems | public | CompareItems - returns 0 if items are equal, -1 if Item1 is less, 1 if Item1 is greater. |
CompareDescriptors | public | CompareDescriptors - returns 0 if descriptors are equal, -1 if Desc1 is less, 1 if Desc1 is greater. |
ConsistencyCheck | public | ConsistencyCheck - checks that Items have valid descriptors. |
Lock | public | |
Unlock | public |
Fields
FItems | protected | |
FDescriptors | protected | |
FDestroying | protected | FDestroying - local boolean variable to store Destroying status. |
FResourceCacheDescriptorClass | protected | FResourceCacheDescriptorClass - local variable for holding the class of the current descriptor. |
FResourceCacheItemClass | protected | FResourceCacheItemClass - local variable for holding the class of the current cache item. |
FMaxUnusedItem | protected | FMaxUnusedItem - how many freed resources to keep. |
FFirstUnusedItem | protected | FFirstUnusedItem - local variable storing location of first free item. |
FLastUnusedItem | protected | FLastUnusedItem - local variable storing location of last free item. |
FUnUsedItemCount | protected | FUnUsedItemCount - local variable with count of free items. |
FLock | protected |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
