BooleanArrayValue#
- class BooleanArrayValue#
Bases: ansys.tools.variableinterop.variable_value.CommonArrayValue[numpy.bool_]
Stores a value as a BooleanArrayValue variable type.
Overview#
Get a deep copy of this value. |
|
Invoke the visitor pattern of this object using the passed-in visitor |
|
Convert this value to a |
|
Convert this value to an |
|
Convert this value to a |
|
Convert the value to an API string. |
|
Convert the value to a formatted string. |
Variable type of the object. |
Convert an API-formatted string to a |
Return self==value. |
Import detail#
from ansys.tools.variableinterop.array_values import BooleanArrayValue
Property detail#
- property BooleanArrayValue.variable_type: VariableType#
Variable type of the object.
- Returns:
VariableTypeVariable type of the object.
Method detail#
- BooleanArrayValue.clone() BooleanArrayValue#
Get a deep copy of this value.
- BooleanArrayValue.accept(visitor: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor[T]) T#
Invoke the visitor pattern of this object using the passed-in visitor implementation.
- Parameters:
- visitor
IVariableValueVisitor Visitor object to call.
- visitor
- Returns:
TResults of the visitor invocation.
- BooleanArrayValue.to_real_array_value() RealArrayValue#
Convert this value to a
RealArrayValuetype.- Returns:
RealArrayValueRealArrayValuetype with the same values converted to real numbers.
- BooleanArrayValue.to_integer_array_value() IntegerArrayValue#
Convert this value to an
IntegerArrayValuetype.- Returns:
IntegerArrayValueIntegerArrayValuetype with the same values converted to integers.
- BooleanArrayValue.to_string_array_value() StringArrayValue#
Convert this value to a
StringArrayValuetype.- Returns:
StringArrayValueStringArrayValuetype with the same values converted to strings.
- BooleanArrayValue.to_api_string(context: ansys.tools.variableinterop.isave_context.ISaveContext | None = None) str#
Convert the value to an API string.
- Returns:
strString appropriate for use in files and APIs.
- static BooleanArrayValue.from_api_string(value: str) BooleanArrayValue#
Convert an API-formatted string to a
BooleanArrayValuetype.- Parameters:
- value
str API string to parse.
- value
- Returns:
BooleanArrayValueResult of parsing the
BooleanArrayValuetype.