TBaseMap.InternalAdd procedure
Adds a map item with the specified ID and Data to the AVL Tree.
Declaration
procedure InternalAdd(const AId; const AData)Arguments
AId | ID for the new map item. |
AData | Data for the new map item. |
Description
InternalAdd is a procedure used to add a map item with the specified ID and Data to the AVL Tree. InternalAdd raises an EListError exception if AId already exists in the internal AVL Tree, and no actions are performed in the method.
InternalAdd allocates and populates memory used for the TMapItem and its arbitrary data, and adds the new item to the internal AVL Tree. InternalAdd updates the pointers to the previous and next map items in the linked list.
Do not call InternalAdd directly. Use a descendant class, such as TMap, which implements the Add method.
Errors
Raises an EListError exception when a duplicate ID is found in the AVL Tree. Raised with the message in DUPLICATE_ID.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
