Return the number of nodes of the dictionary, namely the dictionary length.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dictionary), | intent(in) | :: | self | The dictionary. |
The dictionary length.
elemental function dictionary_len(self) result(length)
!---------------------------------------------------------------------------------------------------------------------------------
!< Return the number of nodes of the dictionary, namely the dictionary length.
!---------------------------------------------------------------------------------------------------------------------------------
type(dictionary), intent(in) :: self !< The dictionary.
integer(I4P) :: length !< The dictionary length.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
length = self%nodes_number
!---------------------------------------------------------------------------------------------------------------------------------
endfunction dictionary_len