Remove child from this frame's children. Returns false if it is not one.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout), | target | :: | self | ||
| class(ReferenceFrame), | intent(inout), | target | :: | child |
the child to remove |
logical function remove_child(self, child) result(ok) class(ReferenceFrame), intent(inout), target :: self class(ReferenceFrame), intent(inout), target :: child !! the child to remove ok = remove(self%children, self%n_children, child) if (ok) ok = remove(child%parents, child%n_parents, self) if (ok) child%stamp_ = next_motion_stamp() ! (its first parent may have changed) if (ok .and. self%realized .and. child%realized) call check_status(vkf_node_remove_child(self%node_, child%node_)) end function remove_child