JCL Help:TStringHashMap

From Project JEDI Wiki
Jump to navigationJump to search

Class Hierarchy

TStringHashMap


Summary

TStringHashMap is a string-pointer associative array.


Pascal

 public TStringHashMap = class(TObject);


Description

TStringHashMap is a string-pointer associative array. It uses a hash table for its implementation, which has several ramifications for its behaviour:

  • Lookup by string takes a constant time, i.e. if the map is big enough it takes just as long to find an item from 10 as from 10 million (ignoring cache and paging effects).
  • Items are unordered. An iteration of all the items using the Iterate or IterateMethod methods won't go through all the items in any order that has meaning, i.e. the ordering is essentially random.


About

Unit

JclStrHashMap


Navigation

Donator

Barry Kelly


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page