Skip to content

mw/com: Remove updating of service element in ProxyBase#593

Draft
bemerybmw wants to merge 1 commit into
mainfrom
brem_add_non_movable_ref_proxy
Draft

mw/com: Remove updating of service element in ProxyBase#593
bemerybmw wants to merge 1 commit into
mainfrom
brem_add_non_movable_ref_proxy

Conversation

@bemerybmw

Copy link
Copy Markdown
Contributor

Previously, each service element had to store a reference to the parent ProxyBase so that it could update the reference to itself in the ProxyBase when the service element was moved. This meant that both ProxyBase and the service elements had to store references to each other. Keeping these references in a valid state during moving was complex and error prone.

Each service element now inherits from EnableReferenceToMoveableFromThis which stores a ReferenceToMoveableOwner element which is updated when the service element moves. The ProxyBase stores a ReferenceToMoveable::Reference to each service element, instead of a regular reference which is now always valid, regardless of moving of the ProxyBase or service elements.

Depends-on: #572

Previously, each service element had to store a reference to the parent
ProxyBase so that it could update the reference to itself
in the ProxyBase when the service element was moved. This
meant that both ProxyBase and the service elements had to store
references to each other. Keeping these references in a valid state
during moving was complex and error prone.

Each service element now inherits from EnableReferenceToMoveableFromThis
which stores a ReferenceToMoveableOwner element which is
updated when the service element moves. The ProxyBase stores a
ReferenceToMoveable::Reference to each service element, instead of a regular
reference which is now always valid, regardless of moving of the
ProxyBase or service elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant