Content


NTL
Core
CFunctionDivideAssign

CFunctionDivideAssign


Class provides implementation of the divide and assignment operator /= for expressions. It is being used by expression runners.

If one of the operands is a float number, both operands are converted to float numbers and the result is float number. Otherwise all operands are converted to integer numbers and the result is integer number.

modify parameter is the function (usually representing variable) which result should be modified after calculation.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CFunctionDivideAssign :public CFunction
{
public:
    // IFunction methods 
    bool Run() override;

    CFunctionDivideAssign(IErrorListener *error_listener, IFunction *operand1, IFunction *operand2, IFunction *modify);
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Functions/Assignment/FunctionDivideAssign.h