IVariableValueVisitor ===================== .. py:class:: IVariableValueVisitor :canonical: ansys.tools.variableinterop.ivariable_visitor.IVariableValueVisitor Bases: :py:obj:`abc.ABC`, :py:obj:`Generic`\ [\ :py:obj:`T`\ ] Defines the interface to be implemented for using the visitor pattern with variable Overview -------- .. py:currentmodule:: IVariableValueVisitor .. tab-set:: .. tab-item:: Abstract methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~visit_integer` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_real` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_boolean` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_string` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_integer_array` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_file` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_real_array` - Method that is called if the `:meth:`IVariableValue.accept()` method is called * - :py:attr:`~visit_boolean_array` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_string_array` - Method that is called if the :meth:`IVariableValue.accept()` method is called on * - :py:attr:`~visit_file_array` - Method that is called if the :meth:`IVariableValue.accept()` method is called on Import detail ------------- .. code-block:: python from ansys.tools.variableinterop.ivariable_visitor import IVariableValueVisitor Method detail ------------- .. py:method:: visit_integer(value: ansys.tools.variableinterop.scalar_values.IntegerValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on an ``IntegerValue`` type. :Parameters: **value** : :obj:`IntegerValue` ``IntegerValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_real(value: ansys.tools.variableinterop.scalar_values.RealValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``RealValue`` type. :Parameters: **value** : :obj:`RealValue` ``RealValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_boolean(value: ansys.tools.variableinterop.scalar_values.BooleanValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``BooleanValue`` type. :Parameters: **value** : :obj:`BooleanValue` ``BooleanValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_string(value: ansys.tools.variableinterop.scalar_values.StringValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``StringValue`` type. :Parameters: **value** : :obj:`StringValue` ``StringValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_integer_array(value: ansys.tools.variableinterop.array_values.IntegerArrayValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on an ``IntegerArrayValue`` type. :Parameters: **value** : :obj:`IntegerArrayValue` ``IntegerArrayValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_file(value: ansys.tools.variableinterop.file_value.FileValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``FileValue`` type. :Parameters: **value** : :obj:`FileValue` ``FileValue`` type to visit. :Returns: :obj:`T` Result .. !! processed by numpydoc !! .. py:method:: visit_real_array(value: ansys.tools.variableinterop.array_values.RealArrayValue) -> T :abstractmethod: Method that is called if the `:meth:`IVariableValue.accept()` method is called on a ``RealArrayValue`` type. :Parameters: **value** : :obj:`RealArrayValue` ``RealArrayValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_boolean_array(value: ansys.tools.variableinterop.array_values.BooleanArrayValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``BooleanArrayValue`` type. :Parameters: **value** : :obj:`BooleanArrayValue` ``BooleanArrayValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_string_array(value: ansys.tools.variableinterop.array_values.StringArrayValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``StringArrayValue`` type. :Parameters: **value** : :obj:`StringArrayValue` ``StringArrayValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !! .. py:method:: visit_file_array(value: ansys.tools.variableinterop.file_array_value.FileArrayValue) -> T :abstractmethod: Method that is called if the :meth:`IVariableValue.accept()` method is called on a ``FileArrayValue`` type. :Parameters: **value** : :obj:`FileArrayValue` ``FileArrayValue`` type to visit. :Returns: :obj:`T` Result. .. !! processed by numpydoc !!