The array_value_conversion.py module#
Summary#
Convert the given value to a |
|
Convert the given value to an |
|
Convert the given value to a |
|
Convert the given value to a |
Description#
Defines array value visitors.
Module detail#
- array_value_conversion.to_boolean_array_value(other: ansys.tools.variableinterop.variable_value.IVariableValue) ansys.tools.variableinterop.array_values.BooleanArrayValue#
Convert the given value to a
BooleanArrayValuetype.The conversion is performed according to the type interoperability specifications. Note that some conversions are lossy (resulting in a loss of precision), and some conversions are not possible (raises
IncompatibleTypesException).- Parameters:
- other
IVariableValue Other value to convert to a
BooleanArrayValuetype.
- other
- Returns:
BooleanArrayValueValue as a
BooleanArrayValuetype.
- array_value_conversion.to_integer_array_value(other: ansys.tools.variableinterop.variable_value.IVariableValue) ansys.tools.variableinterop.array_values.IntegerArrayValue#
Convert the given value to an
IntegerArrayValuetype.The conversion is performed according to the type interoperability specifications. Note that some conversions are lossy (resulting in a loss of precision), and some conversions are not possible (raises
IncompatibleTypesException).- Parameters:
- other
IVariableValue Other value to convert to an
IntegerArrayValuetype.
- other
- Returns:
IntegerArrayValueValue as an
IntegerArrayValuetype.
- array_value_conversion.to_real_array_value(other: ansys.tools.variableinterop.variable_value.IVariableValue) ansys.tools.variableinterop.array_values.RealArrayValue#
Convert the given value to a
RealArrayValuetype.The conversion is performed according to the type interoperability specifications. Note that some conversions are lossy (resulting in a loss of precision), and some conversions are not possible (raises
IncompatibleTypesException).- Parameters:
- other
IVariableValue Other value to convert to a
RealArrayValuetype.
- other
- Returns:
RealArrayValueValue as a
RealArrayValuetype.
- array_value_conversion.to_string_array_value(other: ansys.tools.variableinterop.variable_value.IVariableValue) ansys.tools.variableinterop.array_values.StringArrayValue#
Convert the given value to a
StringArrayValuetype.The conversion is performed according to the type interoperability specifications. Note that some conversions are lossy (resulting in a loss of precision), and some conversions are not possible (raises
IncompatibleTypesException).- Parameters:
- other
IVariableValue Other value to convert to a
StringArrayValuetype.
- other
- Returns:
StringArrayValueValue as a
StringArrayValuetype.