The ivariable_type_pseudovisitor.py module#

Summary#

IVariableTypePseudoVisitor

Defines an interface for pseudo-visitors of the VariableType enumeration.

vartype_accept

Accept a visitor to the specified variable type.

T

Description#

Defines and implements a pseudo-visitor pattern for variable types.

Module detail#

ivariable_type_pseudovisitor.vartype_accept(visitor: IVariableTypePseudoVisitor[T], var_type: ansys.tools.variableinterop.variable_type.VariableType) T#

Accept a visitor to the specified variable type.

Parameters:
visitorT

Visitor to accept.

var_typeVariableType

Variable type that the visitor should visit.

Returns:
T

Visitor’s result.

ivariable_type_pseudovisitor.T#