DependencyEnds

class DependencyEnds

An accessor for dependency client and supplier references.

%3 DependencyEnds DependencyEnds syside.DependencyEnds ContainerView ContainerView syside.ContainerView ContainerView->DependencyEnds
Members defined in DependencyEnds (5 members)

append

Append a new reference to this container.

clear

Clear all references from this container.

pop

Pop and return the reference element at index. By default, the last reference is popped.

remove

Remove the referenced element. Returns True if the element was removed, and False otherwise.

replace_at

Replace reference element at index with element. Returns the previously referenced element.

Members inherited from ContainerView (11 members)

__bool__

Whether this container is not empty

__contains__

__getitem__

__iter__

__len__

__reversed__

__str__

at

Get the value at index.

count

Returns the number of value occurrences in this container

empty

Whether this container is empty

index

Returns the index of value in this container.

Methods

append(element: syside.Element, name: syside.NameID = NameID.Regular) None

Append a new reference to this container.

clear() None

Clear all references from this container.

Note that empty references cannot be represented in textual syntax, and is a semantic violation.

pop(index: int = -1) syside.Element

Pop and return the reference element at index. By default, the last reference is popped.

Raises ValueError if the index is out of bounds.

remove(arg: syside.Element, /) bool

Remove the referenced element. Returns True if the element was removed, and False otherwise.

replace_at(index: int, element: syside.Element, name: syside.NameID = NameID.Regular) syside.Element

Replace reference element at index with element. Returns the previously referenced element.

Raises IndexError if index is out-of-bounds.

Used in