TMathOperation class
Internally used class for mathematical operations in expressions
Declaration
TMathOperation = class(TFPBinaryOperation)Inheritance
- TMathOperation
- TFPBinaryOperation
- TFPExprNode
- TObject
Descends from it: TFPAddOperation TFPDivideOperation TFPModuloOperation TFPMultiplyOperation TFPPowerOperation TFPSubtractOperation
Description
The TMathOperation class serves as a base class for mathematical operations that can be performed on numeric operands. It provides common functionality for arithmetic operations including type checking and result type determination.
Mathematical operations support various numeric types including integers, floats, and currency values, with automatic type promotion to ensure precision is maintained in calculations. The class ensures that operands are compatible for mathematical operations.
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.
See also
Methods
Check | public | Validate the mathematical operation for correctness |
NodeType | public | Get the result type for mathematical operations |
Inherited
From TFPBinaryOperation (8)
CheckSameNodeTypes Create Destroy HasAggregate InitAggregate left Right UpdateAggregate
From TFPExprNode (5)
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance 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.
