Class StaticProcessors
Static processors that operate on single values, do not require context, cannot be directly replaced with a BCL static method call, and cannot be trivially expanded in-line.
Inheritance
Namespace: MESL.SqlRace.Domain.Functions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class StaticProcessors : Object
  Methods
BitOfWord(Double, Double)
Gets a bit value from a given value.
Declaration
public static double BitOfWord(double pdaValue, double bit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | pdaValue | The pda value.  | 
      
| System.Double | bit | The bit.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | Returns 1 if bit number bit in the parameter is 1, otherwise returns 0. Bits count from 0 and from least significant to most significant.  | 
      
BitOfWord(Double, Int32)
Gets a bit value from a given value.
Declaration
public static double BitOfWord(double pdaValue, int bit)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | pdaValue | The pda value.  | 
      
| System.Int32 | bit | The bit.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | Returns 1 if bit number bit in the parameter is 1, otherwise returns 0. Bits count from 0 and from least significant to most significant.  | 
      
Remarks
Copied from MESL.SqlRace.Domain.VirtualParameters.FdlSharp.SfdlProcessors
ClearLog(String)
Clears the contents of the file specified.
Declaration
public static void ClearLog(string fullPath)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | fullPath | Full path to the file.  | 
      
Remarks
This processor will clear the contents of any file of any type without warning.
Div(Double, Double)
Calculates the quotient of the two values (evaluated as two 64-bit signed integers).
Declaration
public static double Div(double number, double denominator)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | number | The number.  | 
      
| System.Double | denominator | The denominator.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The quotient of the two values if denominator is not zero, else +ve or -ve Infinity.  | 
      
IsFirstPass()
Determines whether [is first pass].
Declaration
public static int IsFirstPass()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
  | 
      
IsGreaterThan(Double, Double)
Converts Boolean expression of greater-than into a numeric value.
Declaration
public static int IsGreaterThan(double left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | left | The left.  | 
      
| System.Double | right | The right.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | 1 if left is greater than right; 0 otherwise  | 
      
IsGreaterThanOrEqualTo(Double, Double)
Converts Boolean expression of greater-than-or-equal-to into a numeric value.
Declaration
public static int IsGreaterThanOrEqualTo(double left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | left | The left.  | 
      
| System.Double | right | The right.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | 1 if left is greater than or equal to right; 0 otherwise  | 
      
IsInRange(Double, Double, Double)
Determines whether a is in the range of b, where the range is defined by [b - epsilon, b + epsilon].
Declaration
public static int IsInRange(double a, double b, double epsilon)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | a | The value being tested.  | 
      
| System.Double | b | The centre of the range.  | 
      
| System.Double | epsilon | The epsilon that defines the range.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | 1 if a is in the range [b - epsilon, b + epsilon], 0 otherwise.  | 
      
IsLessThan(Double, Double)
Converts Boolean expression of less-than into a numeric value.
Declaration
public static int IsLessThan(double left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | left | The left.  | 
      
| System.Double | right | The right.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | 1 if left is less than or equal to right; 0 otherwise  | 
      
IsLessThanOrEqualTo(Double, Double)
Converts Boolean expression of less-than-or-equal-to into a numeric value.
Declaration
public static int IsLessThanOrEqualTo(double left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | left | The left.  | 
      
| System.Double | right | The right.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | 1 if left is less than or equal to right; 0 otherwise  | 
      
Mod(Double, Double)
Calculates the remainder of integer division.
Declaration
public static int Mod(double left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | left | The left.  | 
      
| System.Double | right | The right.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Int32 | The remainder of integer division.  | 
      
NoLog(Double)
Noes the log.
Declaration
public static double NoLog(double value)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | value | The value.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | The value passed in.  | 
      
Remarks
Copied from MESL.SqlRace.Domain.VirtualParameters.FdlSharp.SfdlProcessors
Not(Boolean)
Performs a logical not on the Boolean passed in.
Declaration
public static double Not(bool expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | expression | if set to   | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | 1 if expression is false; otherwise 0.  | 
      
Remarks
Copied from MESL.SqlRace.Domain.VirtualParameters.FdlSharp.SfdlProcessors
Not(Double)
Performs a logical not on the double passed in.
Declaration
public static double Not(double expression)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | expression | The expression.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Double | 1 if expression is 0; otherwise 0.  | 
      
Remarks
Copied from MESL.SqlRace.Domain.VirtualParameters.FdlSharp.SfdlProcessors