ReferenceTemplate

Labs

class ReferenceTemplate

Description

A reference to a model element: the template form of = x.

Equality and hashing use the referenced element’s element_id, its place in the text, not the Python object’s identity: two ref values naming the element at one place compare equal, including in two loads of the same model.

Members defined in ReferenceTemplate (2 members)

element

RW

__hash__

Hash the referenced element’s element_id.

Members inherited from ExpressionTemplate (13 members)

__add__

__bool__

Raise: a template is an expression tree, not a truth value.

__mod__

__mul__

__neg__

__pos__

__radd__

__rmod__

__rmul__

__rsub__

__rtruediv__

__sub__

__truediv__

Attributes

element: syside.Element = None

Methods

__hash__() → int

Hash the referenced element’s element_id.

Used by