AddRule Data Member Function

Adds a rule that specifies the parameters for a binary expression. The rule requires the binary operator ( from the BinaryOperator enum. See TYPE_SERVICE_ENUMERATION_UTIL.SSL for more information. ), a <TypeInformation> pointer for the left operand, a <TypeInformation> pointer for the right operand, a <TypeInformation> pointer for the result, and an <Int32Array> pointer containing the dimension information for the operands and the result.

Prototype

int32 AddRule( int32 p_eOperator, TypeInformation p_oLeft, TypeInformation p_oRight, TypeInformation p_oResult, Int32Array p_aiDimensions )

Parameters

Parameter Type Parameter Name Documentation
int32p_eOperatorAn <int32> value representing an operator from the BinaryOperator enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
TypeInformationp_oLeftA pointer to a <TypeInformation> object representing the type of the left operand.
TypeInformationp_oRightA pointer to a <TypeInformation> object representing the type of the right operand.
TypeInformationp_oResultA pointer to a <TypeInformation> object representing the type of the expression result.
<Int32Array>p_aiDimensionsA pointer to an <Int32Array> containing the row and column dimensions for the left operand, right operand, and expression result.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.