Sign in Join
FPDoc Onlineexperiment

TAggregateMax.InitAggregate procedure

Member of TAggregateMaxpublicIn unit fpExprPars

Initialize maximum aggregation

Declaration

pascal
procedure InitAggregate; override

Description

The InitAggregate method initializes the maximum aggregate for a new aggregation cycle. It sets up the internal state needed to track the maximum value across multiple value updates.

The method resets an internal flag, indicating that the next value processed will be the first value in the aggregation sequence. It also prepares any internal storage needed for the maximum calculation.

The InitAggregate method must be called before starting a new aggregation cycle to ensure proper initialization of the aggregate state.

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