3. System Classes : ButtonField Class : StringHashTable Class
 
Share this page                  
StringHashTable Class
StringHashTable Attributes
Attribute
Data Type
Description
Inherited From
AllowSubclassObjects
integer
If set to TRUE and ObjectClass is set to a class, objects of subclasses of the specified class are also allowed to be entered into the hash table (R)
HashTable
AutoResizeThreshold
integer
Represents the size threshold as a percentage (ObjectCount*100/Size) above which the hash table will automatically be resized. The new size will be 2*size+1. (R)
HashTable
ClassName
varchar(32)
Gives the name of an object's actual type (as opposed to its declared type) (R)
Object
ClientData
Object
Provides a way to associate data with an object (RW)
Object
IgnoreCase
integer
Indicates if the case for key values is ignored (R)
Defined
InstanceIdentifier
integer
Contains a value that uniquely identifies an instance of an allocated object (R)
Object
InstanceReferences
integer
Contains the current number of references to the object (R)
Object
ObjectClass
class
Contains the class of objects that are allowed to be entered into the hash table. If this attribute is NULL, then objects of all classes are allowed. (R)
HashTable
ObjectCount
integer
Contains the current number of objects contained within the hash table. This number is changed by using the methods InsertObject, RemoveObject, and Clear of IntegerHashTable Class or StringHashTable Class. (R)
HashTable
Size
integer
Represents the bucket size with which the hash table was created. (R)
HashTable
UniqueKey
integer
Indicates if uniqueness of key values must be ensured. (R)
HashTable
 
StringHashTable Methods
Method
Return
Value
Description
Inherited From
Clear()
integer
Removes all objects from the hash table
HashTable
Contains(key = varchar(2000) |
 object = Object | key = varchar(2000),
 object = Object)
integer
Checks the existence of an object within the hash table
HashTable
Duplicate()
Object
Makes a duplicate of the object, placing a reference to the new object in a reference variable
Object
Find(key = varchar(2000))
Object
Finds the first object with the given key in the hash table
HashTable
FindAll(results = ArrayObject
 [, key = varchar(2000)]
 [, noduplicates = integer])
integer
Inserts all objects (with the given key, if specified) from the hash table into the results array
HashTable
GetAttribute
(
attributename = byref(variable)
{,attributename = byref(variable)})
integer
Gets the values of any number of attributes for the object
Object
InsertObject(
 key =
varchar(2000),
 
object = Object)
integer
Inserts the object with the given key into the hash table
HashTable
IsA
(class =
classname)
integer
Returns TRUE if the object is of the same class as, or one of the subclasses of, the class specified by classname
Object
RemoveObject(
 key =
varchar(2000)
 [, allobjects = integer]
 [, removedcount =
byref(
integer_variable)])
integer
Removes the object (or all objects) with the specified key from the hash table
HashTable
SetAttribute
 (
attributename = value
{,attributename = value})
integer
Sets any number of attributes for the object
Object
Setup([size = integer]
 [, uniquekey = integer]
 [, autoresizethreshold = integer]
 [, objectclass = Class
 [, allowsubclassobjects = integer]]
 [, comparekeyfunction = varchar]
 [, hashkeyfunction = varchar]
 [,ignorecase = integer])
integer
Sets up the IntegerHashTable with the number of buckets specified in the size parameter
HashTable