Skip to content

TFPOrderingOperation

Internally used class for ordering comparison operations

Declaration

Source position: fpexprpars.pp line 216

type

  TFPOrderingOperation = class(TFPBooleanResultOperation)
  public
    procedure Check;
  end;

Description

The TFPOrderingOperation class is the base class for comparison operations that determine the ordering relationship between two values. It extends TFPBooleanResultOperation to provide the foundation for less-than, greater-than, and related comparison operations.

The class handles the common aspects of ordering comparisons such as type checking and ensuring that the operands can be meaningfully compared. It provides the framework for operations that determine relative order rather than equality.

Derived classes implement specific ordering operations like <, >, <=, and >= while leveraging the common ordering infrastructure for validation and type management.

This class is used internally by the TFPExpressionParser class to construct an AST (Abstract Syntax Tree). There is normally no need for you to use or instantiate this class directly.

Methods

Member Visibility Description
Check public Validate the ordering operation for correctness
See all Methods

See also

Name Description
TFPExprNode Class for representing nodes in expression trees