Reference Guide
2.5.0
|
Public Member Functions | |
def | __init__ (self, container_symbol, orig_name=None) |
def | orig_name (self) |
def | container_symbol (self) |
def | container_symbol (self, value) |
def | __str__ (self) |
def | __eq__ (self, other) |
def | copy (self) |
Public Attributes | |
container_symbol | |
Describes the interface to a Symbol that is imported from an external PSyIR container. The symbol can be renamed on import and, if so, its original name in the Container is specified using the optional 'orig_name' argument. :param container_symbol: symbol representing the external container \ from which the symbol is imported. :type container_symbol: \ :py:class:`psyclone.psyir.symbols.ContainerSymbol` :param Optional[str] orig_name: the name of the symbol in the \ external container before it is renamed, or None (the default) if \ it is not renamed. :raises TypeError: if the orig_name argument is an unexpected type.
Definition at line 106 of file interfaces.py.
def psyclone.psyir.symbols.interfaces.ImportInterface.container_symbol | ( | self | ) |
:return: symbol representing the container containing this Symbol. :rtype: :py:class:`psyclone.psyir.symbols.ContainerSymbol`
Definition at line 144 of file interfaces.py.
References psyclone.psyir.symbols.interfaces.ImportInterface._container_symbol.
def psyclone.psyir.symbols.interfaces.ImportInterface.container_symbol | ( | self, | |
value | |||
) |
:param value: the ContainerSymbol that imports the symbol with this interface. :type value: :py:class:`psyclone.psyir.symbols.ContainerSymbol` :raises TypeError: if the provided value is not a ContainerSymbol.
Definition at line 152 of file interfaces.py.
References psyclone.psyir.symbols.interfaces.ImportInterface._container_symbol, psyclone.psyir.symbols.interfaces.ImportInterface.container_symbol, psyclone.domain.lfric.function_space.FunctionSpace.orig_name(), psyclone.dynamo0p3.DynamoPSy.orig_name(), and psyclone.psyir.symbols.interfaces.ImportInterface.orig_name().
def psyclone.psyir.symbols.interfaces.ImportInterface.copy | ( | self | ) |
:returns: a copy of this object. :rtype: :py:class:`psyclone.psyir.symbol.SymbolInterface`
Reimplemented from psyclone.psyir.symbols.interfaces.SymbolInterface.
Definition at line 190 of file interfaces.py.
References psyclone.psyir.symbols.symbol.Symbol.__class__, psyclone.psyir.symbols.interfaces.ImportInterface.container_symbol, psyclone.domain.lfric.function_space.FunctionSpace.orig_name(), psyclone.dynamo0p3.DynamoPSy.orig_name(), and psyclone.psyir.symbols.interfaces.ImportInterface.orig_name().
def psyclone.psyir.symbols.interfaces.ImportInterface.orig_name | ( | self | ) |
:returns: the symbol's original name if it is renamed on \ import, or None otherwise. :rtype: Optional[str]
Definition at line 134 of file interfaces.py.
References psyclone.domain.lfric.function_space.FunctionSpace._orig_name, psyclone.psyGen.Argument._orig_name, and psyclone.psyir.symbols.interfaces.ImportInterface._orig_name.