OwnedChildrenNodes

class OwnedChildrenNodes

Container that stores a vector of potentially owned children nodes.

OwnedChildrenNodes OwnedChildrenNodes syside.OwnedChildrenNodes ChildrenNodes ChildrenNodes syside.ChildrenNodes ChildrenNodes->OwnedChildrenNodes ChildrenNodesView ChildrenNodesView syside.ChildrenNodesView ChildrenNodesView->ChildrenNodes
Children
Members defined in OwnedChildrenNodes (3 members)

append

insert

replace

Members inherited from ChildrenNodes (5 members)
Members inherited from ChildrenNodesView (6 members)

elements

R

The related elements in this container.

relationships

R

The relationships in this container.

__bool__

__getitem__

__len__

at

Methods

append(relationship: type[syside.R], element: syside.M, name: syside.NameID = ...) tuple[syside.R, syside.M]

Append a new owned or referenced element, inferred from the relationship type and this container. Returns a pair of (relationship, element), only the relationship is newly constructed.

append(relationship: type[syside.R], element: type[syside.M]) tuple[syside.R, syside.M]

Append a new owned element. Relationship must be a subtype of OwningMembership or Annotation. Returns a newly constructed pair of (relationship, element) with the types provided.

insert(index: int, relationship: type[syside.R], element: syside.M, name: syside.NameID = ...) tuple[syside.R, syside.M]

Insert a relationship and a related element at the specified index. The related element may be owned or referenced depending on the relationship type and this container, see append for more details.

insert(index: int, relationship: type[syside.R], element: type[syside.M]) tuple[syside.R, syside.M]

Insert a relationship and a related element at the specified index. The related element must be owned so the same owning append limitations apply.

replace(index: int, relationship: type[syside.R], element: syside.M, name: syside.NameID = ...) tuple[syside.R, syside.M]

Replace the relationship and its related element at the specified index. The relationship may be reused if its type matches the current relationship at that index. The related element may be owned or referenced depending on the relationship type and this container, see append for more details.

replace(index: int, relationship: type[syside.R], element: type[syside.M]) tuple[syside.R, syside.M]

Replace the relationship and its related element at the specified index. The relationship may be reused if its type matches the current relationship at that index. The related element must be owned so the same owning append limitations apply.