Destroy the node content.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dictionary_node), | intent(inout) | :: | self | The node. |
elemental subroutine destroy_content(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Destroy the node content.
!---------------------------------------------------------------------------------------------------------------------------------
class(dictionary_node), intent(inout) :: self !< The node.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (associated(self%content_)) then
associate(content=>self%content_)
select type(content)
class is(content_adt)
call content%destroy
endselect
endassociate
deallocate(self%content_)
self%content_ => null()
endif
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine destroy_content