ArithmeticRepository
Derive from this class to provide custom arithmetic operator methods. Add any number of public, *static* methods which represent either binary operator logic, or unary/binary/ternary arithmetic function logic and decorate them with the appropriate Arithmetic.OperatorAttribute or Arithmetic.FunctionAttribute respectively.
Methods
UndefinedException
#Create an exception expressing an undefined binary function.
Parameters:
| fn (Arithmetic.Binary) | Function. |
| a (Type) | First operand type. |
| b (Type) | Second operand type. |
UndefinedException
#Create an exception expressing an undefined operation.
Parameters:
| op (Arithmetic.Operation) | Operation. |
| a (Type) | First operand type. |
| b (Type) | Second operand type. |
UndefinedException
#Create an exception expressing an undefined operation.
UndefinedException
#Create an exception expressing an undefined ternary function.
Parameters:
| fn (Arithmetic.Ternary) | Function. |
| a (Type) | First operand type. |
| b (Type) | Second operand type. |
| c (Type) | Third operand type. |