Create a new instance of TFPObjectHashTable.
Source position: contnrs.pp line 503
public constructor TFPObjectHashTable.Create( |
AOwnsObjects: Boolean = True |
); |
AOwnsObjects |
|
Does the hash table own the objects stored in it? |
Create creates a new instance of TFPObjectHashTable on the heap. It sets the OwnsObjects property to AOwnsObjects, and then calls the inherited Create. If AOwnsObjects is set to True, then the hash table owns the objects: whenever an object is removed from the list, it is automatically freed.
If not enough memory is available on the heap, an exception may be raised.
|
Does the hash table own the objects ? |
|
|
Create a new hash table with given size and hash function. |
|
|
Key-based access to the objects. |