System.Contnrs.TCustomBucketList.BucketFor

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function BucketFor(AItem: Pointer): Integer; virtual; abstract;

C++

virtual int __fastcall BucketFor(void * AItem) = 0 ;

Properties

Type Visibility Source Unit Parent
function protected
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TCustomBucketList

Description

Returns the index of the bucket in which a specified item belongs.

TCustomBucketList uses BucketFor internally to determine the bucket into which an arbitrary item belongs. TCustomBucketList introduces BucketFor as an abstract (pure virtual) method, which means it has no implementation. Descendant classes must override BucketFor to provide an implementation that determines the bucket for an arbitrary item.

AItem is the item for which you want to find a bucket.

BucketFor returns the index of the bucket in the Buckets property array.

See Also