Return storage status.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dictionary_node), | intent(in) | :: | self | The node. |
elemental logical function is_filled(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Return storage status.
!---------------------------------------------------------------------------------------------------------------------------------
class(dictionary_node), intent(in) :: self !< The node.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
is_filled = .false.
if (self%has_key()) then
if (associated(self%content_)) then
is_filled = .true.
associate(content=>self%content_)
select type(content)
class is(content_adt)
is_filled = content%is_filled()
endselect
endassociate
endif
endif
!---------------------------------------------------------------------------------------------------------------------------------
endfunction is_filled