IntegerArrayValue#

class IntegerArrayValue#

Bases: ansys.tools.variableinterop.variable_value.CommonArrayValue[numpy.int64]

Stores a value as an IntegerArrayValue variable type.

Overview#

clone

Get a deep copy of this value.

accept

Invoke the visitor pattern of this object using the passed-in visitor

to_boolean_array_value

Convert this value to a BooleanArrayValue type.

to_real_array_value

Convert this value to a RealArrayValue type.

to_string_array_value

Convert this value to a StringArrayValue type.

to_api_string

Convert the value to an API string.

to_display_string

Convert the value to a formatted string.

variable_type

Variable type of the object.

from_api_string

Convert an API-formatted string to an IntegerArrayValue type.

__eq__

Return self==value.

Import detail#

from ansys.tools.variableinterop.array_values import IntegerArrayValue

Property detail#

property IntegerArrayValue.variable_type: VariableType#

Variable type of the object.

Returns:
VariableType

Variable type of the object.

Method detail#

IntegerArrayValue.__eq__(other)#

Return self==value.

IntegerArrayValue.clone() IntegerArrayValue#

Get a deep copy of this value.

IntegerArrayValue.accept(visitor: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor[T]) T#

Invoke the visitor pattern of this object using the passed-in visitor implementation.

Parameters:
visitorIVariableValueVisitor

Visitor object to call.

Returns:
T

Results of the visitor invocation.

IntegerArrayValue.to_boolean_array_value() BooleanArrayValue#

Convert this value to a BooleanArrayValue type.

Returns:
BooleanArrayValue

BooleanArrayValue type with the same values converted to Boolean values.

IntegerArrayValue.to_real_array_value() RealArrayValue#

Convert this value to a RealArrayValue type.

Returns:
RealArrayValue

RealArrayValue type with the same values converted to real values.

IntegerArrayValue.to_string_array_value() StringArrayValue#

Convert this value to a StringArrayValue type.

Returns:
StringArrayValue

StringArrayValue type converted to an array of strings.

IntegerArrayValue.to_api_string(context: ansys.tools.variableinterop.isave_context.ISaveContext | None = None) str#

Convert the value to an API string.

Returns:
str

String appropriate for use in files and APIs.

static IntegerArrayValue.from_api_string(value: str) IntegerArrayValue#

Convert an API-formatted string to an IntegerArrayValue type.

Parameters:
valuestr

API string to parse.

Returns:
IntegerArrayValue

Result of parsing the IntegerArrayValue type.

IntegerArrayValue.to_display_string(locale_name: str) str#

Convert the value to a formatted string.

Parameters:
locale_namestr

Locale to format the string in.

Returns:
str

String appropriate for use in user-facing areas.