Aspose::Cells::AbstractCalculationEngine class

AbstractCalculationEngine class

Represents user’s custom calculation engine to extend the default calculation engine of Aspose.Cells.

class AbstractCalculationEngine

Methods

MethodDescription
virtual Calculate(CalculationData& data)Calculates one function with given data.
virtual GetProcessBuiltInFunctions()Whether built-in functions that have been supported by the built-in engine should be checked and processed by this implementation. Default is false.
virtual IsParamArrayModeRequired()Indicates whether this engine needs the parameter to be calculated in array mode. Default value is false. If CalculationData.GetParamValueInArrayMode(int, int, int) is required when calculating custom functions and user has not updated the definition for them (by Workbook.UpdateCustomFunctionDefinition(CustomFunctionDefinition)), this property needs to be set as true.
virtual IsParamLiteralRequired()Indicates whether this engine needs the literal text of parameter while doing calculation. Default value is false.

Fields

FieldDescription
_implThe implementation object.

Remarks

User should not modify any part of the Workbook directly in this implementation(except the calculated result of the custom function, which can be set by CalculationData.CalculatedValue property). Otherwise unexpected result or Exception may be caused. If user needs to change other data than calculated result in the implementation for some custom functions, for example, change cell’s formula, style, …etc., user should gather those data in this implementation and change them out of the scope of formula calculation.

See Also