TVecIntCache Class

TAbstractMtxVecCacheTVecIntCache

type TVecIntCache = class(TAbstractMtxVecCache);

Implementation of object cache for TVecInt objects.

Constructors

NameDescription
Create

Properties

NameTypeDescription
CacheElementsIntegerReturns the number of precreated objects inside object cache.
CacheFullBooleanReturns true, if currently there are no free objects in cache.
CacheSizeIntegerReturns the number of objects in the object cache.
CacheUsedCountIntegerReturns the number of currently used objects in the object cache.
CacheWasFullBooleanReturns true, if object cache was too small.
ConditionCheckBooleanSets ConditionCheck for all items in the list.
MaxCountIntegerRead only property. Maximum number of objects used inside object cache.

Methods

NameDescription
EnterCall Enter to enable thread exclusive access.
LeaveCall Leave to end thread exclusive access.
SetCacheSizeSets the cache object count to ItemCount and allocates Elements count of data elements per object.
TryEnterCall Enter to enable thread exclusive access.

Constants

NameTypeDescription
Int16CacheOffsetTIntegerArray
Int16CachePointersT2DSmallIntArray
Int32CacheTIntegerArray
Int32CacheOffsetTIntegerArray
Int32CachePointersT2DIntegerArray
Int8CacheOffsetTIntegerArray
Int8CachePointersT2DByteArray