Description | Hierarchy | Fields | Methods | Properties |
type TAdMap = class(TObject)
A simple bucket hash map class.
![]() |
constructor Create(ACapacity: integer=128); |
![]() |
destructor Destroy; override; |
![]() |
function Insert(AKey:TAdMapKey; AValue:TObject):Boolean; |
![]() |
function GetValue(AKey:TAdMapKey):TObject; |
![]() |
function Remove(AKey:TAdMapKey):Boolean; |
![]() |
property Count: integer read FCount; |
![]() |
property Capacity: integer read FCapacity; |
![]() |
constructor Create(ACapacity: integer=128); |
Creates a new instance of TAdMap. ACapacity specifies the size of the data array the elements are stored in. |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdMap |
![]() |
function Insert(AKey:TAdMapKey; AValue:TObject):Boolean; |
Inserts a key connected to a value in the hash map. |
![]() |
function GetValue(AKey:TAdMapKey):TObject; |
Returns the stored object or nil, if the object is not found. AKey specifies the key you search with. |
![]() |
function Remove(AKey:TAdMapKey):Boolean; |
Removes the object connected to the key from the hash map |
![]() |
property Count: integer read FCount; |
Returns the count of elements in the list |
![]() |
property Capacity: integer read FCapacity; |
Returns the capacity of the data array. |