<BinaryExpressionValidator> Data Interface

Provides script language access to C++ objects of this type. This object is for internal use only.

Class HierarchyType » BinaryExpressionValidator

Function Members

Function members are as follows:

Return Type Function Name Documentation
int32AddDimensionInfoAdds the dimensions of the left operand, right operand, and result. Dimensions are in rows and columns. For example, the dimension of a vec4 and vec4 addition is another vec4. In this case you would populate the <Int32Array> with 6 values: the left operand vec4 is 1 col and 4 rows, the right operand vec4 is 1 col and 4 rows, and the result operand is 1 col and 4 rows. This means the <Int32Array> values are as follows: 1,4,1,4,1,4. When formatting rules for a matrix multiply of the form mat4 * vec4 = mat4, the values of the operands are you would populate the <Int32Array> with 4,4,1,4,4,4. In this example, the first pair 4,4 represents the left operand mat4x4, the second pair 1,4 represents the right operand vec4, and the final pair 4,4 represents the resulting mat4.
int32AddRuleAdds 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.
int32ClearClears all the rules currently stored by this object. Performance notes: executing this function results in memory deallocations.
int32FindRuleSearches this object for a result that matches the binary operator, left operand, right operand, and dimension information submitted to this function.
int32GetBinaryOperatorReturns an <int32> representing the binary operator at the specified index. This value refers to the BinaryOperator enumeration. Please see TYPE_SERVICE_ENUMERATION_UTIL.SSL in the application scripts folder for more information.
int32GetDimensionInfoCountReturns the count of the underlying <Int32Array> object that stores all the dimensions for all the rules. Since each rule requires six dimension values, this value will be six times the number of rules.
int32GetExpressionTypeCountReturns the count of the underlying <TypeInfoArray> object that stores all the type information for the left operand, right operand, and result type for all the rules. Since each rule requires three type values, this value will be three times the number of rules.
TypeInformationGetLeftTypeReturns a <TypeInformation> pointer representing the type of the left operand at the specified index.
int32GetOperatorCountReturns the number of binary operators currently managed by this object. This is the same as the number of expressions stored by this object.
TypeInformationGetResultTypeReturns a <TypeInformation> pointer representing the type of the result operand at the specified index.
TypeInformationGetRightTypeReturns a <TypeInformation> pointer representing the type of the right operand at the specified index.