Return .true. if the node has a key (or id) set-up.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dictionary_node), | intent(in) | :: | self | The node. |
elemental logical function has_key(self)
!---------------------------------------------------------------------------------------------------------------------------------
!< Return .true. if the node has a key (or id) set-up.
!---------------------------------------------------------------------------------------------------------------------------------
class(dictionary_node), intent(in) :: self !< The node.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
has_key = allocated(self%key)
!---------------------------------------------------------------------------------------------------------------------------------
endfunction has_key