[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Maps' (#lazutils)

TBaseMapIterator.Validate

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

Declaration

Source position: maps.pp line 145

protected procedure TBaseMapIterator.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'.

Version 4.0 Generated 2025-05-03 Home