Sign in Join
FPDoc Onlineexperiment

TBucketList class

In unit Contnrs

Default bucket list implementation.

Declaration

pascal
TBucketList = class(TCustomBucketList)

Inheritance

  1. TBucketList
  2. TCustomBucketList
  3. TObject

Descends from it: TObjectBucketList

Description

TBucketList is a descendent of TCustomBucketList which allows to specify a bucket count which is a multiple of 2, up to 256 buckets. The size is passed to the constructor and cannot be changed in the lifetime of the bucket list instance.

The buckets for an item is determined by looking at the last bits of the item pointer: For 2 buckets, the last bit is examined, for 4 buckets, the last 2 bits are taken and so on. The algorithm takes into account the average granularity (4) of heap pointers.

See also

Methods

BucketForprotected
CreatepublicCreate a new TBucketList instance.

Inherited

From TCustomBucketList (16)

Add AddItem Assign BucketCount Buckets Clear Data DeleteItem Destroy Error Exists Find FindItem ForEach GetBucketItem Remove

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.