Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(aabb_node_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(aabb_node_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine aabb_node_assign_aabb_node(lhs, rhs)
!< Operator `=`.
class(aabb_node_object), intent(inout) :: lhs !< Left hand side.
type(aabb_node_object), intent(in) :: rhs !< Right hand side.
if (allocated(lhs%aabb)) then
call lhs%aabb%destroy
deallocate(lhs%aabb)
endif
if (allocated(rhs%aabb)) then
allocate(lhs%aabb)
lhs%aabb = rhs%aabb
endif
endsubroutine aabb_node_assign_aabb_node