14 private double doubleSum = 0;
15 private bool isDouble =
true;
43 this.doubleSum += D.Value;
44 else if (this.sum is
null)
46 this.isDouble =
false;
Base class for all types of elements.
Sum(v) iterative evaluator
override void RestartEvaluator()
Restarts the evaluator.
override void AggregateElement(IElement Element)
Aggregates one new element.
override IElement GetAggregatedResult()
Gets the aggregated result.
SumEvaluator(Sum Node)
Sum(v) iterative evaluator
An interative evaluator of a function or operation defined by a single ScriptNode.
ScriptNode Node
Node being iteratively evaluated.
static readonly ObjectValue Null
Null value.
static IElement EvaluateAddition(IElement Left, IElement Right, ScriptNode Node)
Adds two operands.
Basic interface for all types of elements.