Public Member Functions | |
| CachedFileFactory (u_long m) | |
| CachedFileFactory () | |
| void | clean () |
| u_long | getMaxSize () |
| u_long | getMinSize () |
| void | initialize (u_long size) |
| void | nullReferences (CachedFileBuffer *cfb) |
| File * | open (const char *file) |
| void | setMaxSize (u_long maxSize) |
| void | setMinSize (u_long minSize) |
| void | setSize (u_long m) |
| ~CachedFileFactory () | |
Protected Member Functions | |
| u_long | purgeRecords () |
Protected Attributes | |
| HashMap< char *, CachedFileFactoryRecord * > | buffers |
| list< CachedFileFactoryRecord * > | buffersToRemove |
| u_long | created |
| u_long | maxSize |
| u_long | minSize |
| Mutex | mutex |
| u_long | size |
| u_long | used |
| u_long | usedSize |
|
|
Default constructor. |
|
|
Destructor. |
|
|
Class constructor.
|
|
|
Clean the used resources. |
|
|
Get the max dimension for a file in the cache.
|
|
|
Get the min dimension for a file in the cache.
|
|
|
Initialize the structure. |
|
|
Called by CachedFileBuffer when its counter reaches zero references.
|
|
|
Open a new file in read-only mode, if the file is present in the cache then use the cache instead of a real file.
|
|
|
Remove pending records from the list. |
|
|
Set the max dimension for a file in the cache.
|
|
|
Set the min dimension for a file in the cache.
|
|
|
|
|
|
|
|
|
|
|
|
Cache creation time. |
|
|
Max size for single file. |
|
|
Min size for single file. |
|
|
|
|
|
Max elements count for this cache. |
|
|
Number of times the cache was used. |
|
|
Size currently used. |
1.3.9.1