Contnrs unit
Various general purpose classes: stack, queue, objectlists.
The contnrs unit implements various general-purpose classes:
- Object lists
- lists that manage objects instead of pointers, and which automatically dispose of the objects.
- Component lists
- lists that manage components instead of pointers, and which automatically dispose the components.
- Class lists
- lists that manage class pointers instead of pointers.
- Stacks
- Stack classes to push/pop pointers or objects
- Queues
- Classes to manage a FIFO list of pointers or objects
- Hash lists
- General-purpose Hash lists.
Classes and records
EDuplicate | class | Exception raised when a key is stored twice in a hash table. |
EKeyNotFound | class | Exception raised when a key is not found. |
TBucket | record | Bucket record. |
TBucketItem | record | Record used in bucket list. |
TBucketList | class | Default bucket list implementation. |
TClassList | class | List of classes. |
TComponentList | class | List to manage component instances. |
TCustomBucketList | class | Custom bucket list class. |
TFPCustomHashTable | class | Hash class. |
TFPDataHashTable | class | Hash table for data pointers. |
TFPHashList | class | Hash list class for pointer data. |
TFPHashListItem | record | |
TFPHashObject | class | Hash-list aware object. |
TFPHashObjectList | class | |
TFPObjectHashTable | class | Hash table for object instances. |
TFPObjectList | class | TFPList descendent which manages objects. |
TFPStringHashTable | class | Hash table for string data. |
THTCustomNode | class | Single item in the hash table. |
THTDataNode | class | Data node for pointer hashtable. |
THTObjectNode | class | Node type for TFPObjectHashTable. |
THTOwnedObjectNode | class | Node type for owned objects. |
THTStringNode | class | Node type for TFPStringHashTable. |
TObjectBucketList | class | Bucket list using objects instead of pointers. |
TObjectList | class | List to manage object instances. |
TObjectQueue | class | |
TObjectStack | class | Object instances stack. |
TOrderedList | class | Base class for queues and stacks. |
TQueue | class | Pointer queue. |
TStack | class | Pointer Stack. |
Procedures and functions
HashString | function | |
RSHash | function | Standard hash value calculating function. |
ViDataSize | function | |
ViGet | function | |
ViSet | procedure |
Types
PBucket | type | Pointer to TBucket" type. |
PViHashListItem | type | |
TBucketArray | type | Array of TBucket records. |
TBucketItemArray | type | Array of TBucketItem records. |
TBucketListSizes | enumeration | Enumerated type to indicate bucket list size. |
TBucketProc | procedure type | Callback for the ForEach call. |
TBucketProcObject | procedure type | Callback for the ForEach call. |
TDataIteratorCallBack | procedure type | Data iterator CallBack. |
TDataIteratorMethod | procedure type | Data iterator method. |
THashFunction | procedure type | Hash calculation function. |
THTCustomNodeClass | type | Class of THTCustomNodeClass. |
THTNode | type | Alias for THTDataNode. |
TIteratorMethod | type | Iterator prototype for TFPCustomHashTable. |
TObjectIteratorCallback | procedure type | iterate callback prototype. |
TObjectIteratorMethod | procedure type | iterate callback prototype. |
TObjectListCallback | procedure type | Method callback type for TFPObjectList.ForEachCall. |
TObjectListStaticCallback | procedure type | Plan procedure callback type for TFPObjectList.ForEachCall. |
TStringIteratorCallback | procedure type | Iterator callback type. |
TStringIteratorMethod | procedure type | Iterator callback type. |
TViRehashMode | enumeration |
Constants
MaxHashListSize | constant | Maximum size of hash list. |
MaxHashStrSize | constant | Maximum string size. |
MaxHashTableSize | constant | Maximum size of the hash table. |
MaxItemsPerHash | constant | Maximum number of items in each hash bucket. |
ViEmpty | constant | |
ViRealIndexOffset | constant |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
