/// <summary>
 /// Initializes a new instance of the <see cref="BinaryMultiplyOperation" /> class.
 /// </summary>
 /// <param name="left">The left hand <see cref="Operation" />.</param>
 /// <param name="right">The right hand <see cref="Operation" />.</param>
 internal BinaryMultiplyOperation(Operation left, Operation right)
     : base(left, new MultiplyOperator(), right)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryAddOperation" /> class.
 /// </summary>
 /// <param name="left">The left hand <see cref="Operation" />.</param>
 /// <param name="right">The right hand <see cref="Operation" />.</param>
 internal BinaryAddOperation(Operation left, Operation right)
     : base(left, new AddOperator(), right)
 {
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnaryOperation" /> class.
 /// </summary>
 /// <param name="op">The <see cref="Operator" /> for this <see cref="UnaryOperation" />.</param>
 /// <param name="operation">The <see cref="Operation" /> for this <see cref="UnaryOperation" />.</param>
 internal UnaryOperation(Operator op, Operation operation)
 {
     this.op = op;
     this.operation = operation;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnaryAddOperation" /> class.
 /// </summary>
 /// <param name="operation">The <see cref="Operation" /> for the <see cref="UnaryAddOperation" />.</param>
 internal UnaryAddOperation(Operation operation)
     : base(new AddOperator(), operation)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BinarySubtractOperation" /> class.
 /// </summary>
 /// <param name="left">The left hand <see cref="Operation" />.</param>
 /// <param name="right">The right hand <see cref="Operation" />.</param>
 internal BinarySubtractOperation(Operation left, Operation right)
     : base(left, new SubtractOperator(), right)
 {
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryOperation" /> class.
 /// </summary>
 /// <param name="left">The left hand <see cref="Operation" /> for this <see cref="BinaryOperation" />.</param>
 /// <param name="op">The <see cref="Operator" /> for this <see cref="BinaryOperation" />.</param>
 /// <param name="right">The right hand <see cref="Operation" /> for this <see cref="BinaryOperation" />.</param>
 protected BinaryOperation(Operation left, Operator op, Operation right)
 {
     this.left = left;
     this.op = op;
     this.right = right;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryOperation" /> class.
 /// </summary>
 /// <param name="left">The left hand value for this <see cref="BinaryOperation" />.</param>
 /// <param name="op">The <see cref="Operator" /> for this <see cref="BinaryOperation" />.</param>
 /// <param name="right">The right hand <see cref="Operation" /> for this <see cref="BinaryOperation" />.</param>
 protected BinaryOperation(double left, Operator op, Operation right)
     : this(new OperandOperation(left), op, right)
 {
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinaryOperation" /> class.
 /// </summary>
 /// <param name="left">The left hand <see cref="Operation" /> for this <see cref="BinaryOperation" />.</param>
 /// <param name="op">The <see cref="Operator" /> for this <see cref="BinaryOperation" />.</param>
 /// <param name="right">The right hand value for this <see cref="BinaryOperation" />.</param>
 protected BinaryOperation(Operation left, Operator op, double right)
     : this(left, op, new OperandOperation(right))
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UnarySubtractOperation" /> class.
 /// </summary>
 /// <param name="operation">The <see cref="Operation" /> for the <see cref="UnarySubtractOperation" />.</param>
 internal UnarySubtractOperation(Operation operation)
     : base(new SubtractOperator(), operation)
 {
 }