ConnectorEndsAccessor
- class ConnectorEndsAccessor[R: FeatureMembership, M: Feature]
-
Children
Members defined in
ConnectorEndsAccessor(7 members)
RReturns
Trueif the contents of this accessor can be modified. In such a case,try_methods will return values, and corresponding modification methods will not raiseValueErrors.
Members inherited from
ChildrenNodesView(6 members)
RThe related elements in this container.
RThe relationships in this container.
Attributes
- property modifiable: bool
Returns
Trueif the contents of this accessor can be modified. In such a case,try_methods will return values, and corresponding modification methods will not raiseValueErrors.Falseis returned when the corresponding textual syntax position is already occupied by other elements, e.g.FlowConnectionUsagedeclared_messagesanddeclared_endsshare the same position.
Methods
- append(arg0: syside.M, /) tuple[syside.R, syside.M]
Same as
try_appendbut will raiseValueErrorif the contents cannot be modified.
- append(/) tuple[syside.R, syside.M]
- clear() None
Clear the contents accessed by this accessor. Does nothing if the contents cannot be modified.
- erase(arg: int, /) None
Erase
Featureat the specified index. RaisesValueErrorif the index is out of bounds.
- insert(arg0: int, arg1: syside.M, /) tuple[syside.R, syside.M]
Same as
insertbut will raiseValueErrorif the contents cannot be modified.
- insert(arg0: int, /) tuple[syside.R, syside.M]
- try_append(arg0: syside.M, /) tuple[syside.R, syside.M] | None
Try appending a new
Feature. Ownership constraints apply.Returns a pair of (
membership,feature) wherefeatureis the argument passed in if the contents can be modified. Note that generally emptyFeaturesare not syntactically correct, and the correct syntax depends on the owner type.
- try_append() tuple[syside.R, syside.M] | None
Try appending a new default constructed
Featurewith type inferred from the corresponding member type in the textual syntax dependent on the owner of this accessor.Returns a pair of (
membership,feature) if the contents can be modified. Note that generally emptyFeaturesare not syntactically correct, and the correct syntax depends on the owner type.
- try_insert(arg0: int, arg1: syside.M, /) tuple[syside.R, syside.M] | None
Try inserting a new
Featureat the specified index. Ownership constraints apply.Returns a pair of (
membership,feature) wherefeatureis the argument passed in if the contents can be modified. Note that generally emptyFeaturesare not syntactically correct, and the correct syntax depends on the owner type.
- try_insert(arg0: int, /) tuple[syside.R, syside.M] | None
Try inserting a new default constructed
Featureat the index specified with type inferred from the corresponding member type in the textual syntax dependent on the owner of this accessor.Returns a pair of (
membership,feature) if the contents can be modified. Note that generally emptyFeaturesare not syntactically correct, and the correct syntax depends on the owner type.