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
BooleanArrayValue
type.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
BooleanArrayValue
type.
- other
- Returns:
BooleanArrayValue
Value as a
BooleanArrayValue
type.
- 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
IntegerArrayValue
type.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
IntegerArrayValue
type.
- other
- Returns:
IntegerArrayValue
Value as an
IntegerArrayValue
type.
- 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
RealArrayValue
type.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
RealArrayValue
type.
- other
- Returns:
RealArrayValue
Value as a
RealArrayValue
type.
- 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
StringArrayValue
type.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
StringArrayValue
type.
- other
- Returns:
StringArrayValue
Value as a
StringArrayValue
type.