Iterator that print contents.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(*), | intent(in) | :: | key | The node key. |
||
class(*), | intent(in), | pointer | :: | content | The generic content. |
|
logical, | intent(out) | :: | done | Flag to set to true to stop traversing. |
subroutine print_content_iterator(key, content, done)
!---------------------------------------------------------------------------------------------------------------------------------
!< Iterator that print contents.
!---------------------------------------------------------------------------------------------------------------------------------
class(*), intent(in) :: key !< The node key.
class(*), pointer, intent(in) :: content !< The generic content.
logical, intent(out) :: done !< Flag to set to true to stop traversing.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (associated(content)) then
select type(content)
type is(integer(int32))
select type(key)
type is(key_base)
#ifdef CAF
write(error_unit, *) ' image: ', this_image(), 'key: ', key%stringify(), ' content: ', content
#endif
endselect
endselect
endif
done = .false.
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine print_content_iterator