Sign in Join
FPDoc Onlineexperiment

TBaseMapIterator.Validate procedure

Member of TBaseMapIteratorprotectedIn unit Maps

Validates the AVL Tree and the Current item in the iterator.

Declaration

pascal
procedure Validate

Description

Validate is a procedure used to validate the nodes in the AVL tree for the map, and the Current item for the iterator. Validate calls ValidateMap to check the nodes in the AVL Tree. It updates the values in Current and Invalid as the nodes are processed. Validate raises an EInvalidOperation exception if the value in Current is Nil, or the Invalid flag is set.

Errors

EInvalidOperation
Raised when Current is unassigned with the message 'No current item'.
EInvalidOperation
Raised when the Invalid flag is set with the message 'Current item removed'.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.