Sign in Join
FPDoc Onlineexperiment

TAggregateMax class

In unit fpExprPars

Internally used class for maximum aggregate functions

Declaration

pascal
TAggregateMax = class(TAggregateExpr)

Inheritance

  1. TAggregateMax
  2. TAggregateExpr
  3. TFPExprFunction
  4. TFPExprIdentifierNode
  5. TFPExprNode
  6. TObject

Description

The TAggregateMax class implements the maximum aggregate function, which finds the largest value among all processed values. It extends TAggregateExpr to provide maximum-specific aggregation logic.

The class maintains an internal state that tracks the maximum value encountered so far during the aggregation process. The first value encountered is used as the initial maximum, and subsequent values are compared to update the maximum when larger values are found.

The maximum function works with numeric types (integers, floats, currency) and can also compare string and date/time values using appropriate comparison logic for each data type.

See also

Methods

InitAggregatepublicInitialize maximum aggregation
UpdateAggregatepublicUpdate maximum aggregate with new value

Fields

FFirstprotectedFlag indicating first value in aggregation

Inherited

From TAggregateExpr (2)

GetNodeValue IsAggregate

From TFPExprFunction (9)

ArgumentNodes ArgumentParams AsString CalcParams Check ConvertArgument CreateFunction Destroy HasAggregate

From TFPExprIdentifierNode (3)

CreateIdentifier Identifier NodeType

From TFPExprNode (2)

CheckNodeType NodeValue

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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