type TVecIntCache = class(TAbstractMtxVecCache);
Implementation of object cache for TVecInt objects.
Constructors
| Name | Description |
|---|---|
| Create |
Properties
| Name | Type | Description |
|---|---|---|
| CacheElements | Integer | Returns the number of precreated objects inside object cache. |
| CacheFull | Boolean | Returns true, if currently there are no free objects in cache. |
| CacheSize | Integer | Returns the number of objects in the object cache. |
| CacheUsedCount | Integer | Returns the number of currently used objects in the object cache. |
| CacheWasFull | Boolean | Returns true, if object cache was too small. |
| ConditionCheck | Boolean | Sets ConditionCheck for all items in the list. |
| MaxCount | Integer | Read only property. Maximum number of objects used inside object cache. |
Methods
| Name | Description |
|---|---|
| Enter | Call Enter to enable thread exclusive access. |
| Leave | Call Leave to end thread exclusive access. |
| SetCacheSize | Sets the cache object count to ItemCount and allocates Elements count of data elements per object. |
| TryEnter | Call Enter to enable thread exclusive access. |
Constants
| Name | Type | Description |
|---|---|---|
| Int16CacheOffset | TIntegerArray | |
| Int16CachePointers | T2DSmallIntArray | |
| Int32Cache | TIntegerArray | |
| Int32CacheOffset | TIntegerArray | |
| Int32CachePointers | T2DIntegerArray | |
| Int8CacheOffset | TIntegerArray | |
| Int8CachePointers | T2DByteArray |