MONC
Private Member Functions | List of all members
collections_mod::c_next_string Interface Reference

Private Member Functions

character(len=string_length) function iterator_get_next_string (iterator)
 Returns the next string referenced by the iterator and advanced it, or an error if it has reached the end of iteration. More...
 

Detailed Description

Definition at line 594 of file collections.F90.

Member Function/Subroutine Documentation

◆ iterator_get_next_string()

character(len=string_length) function collections_mod::c_next_string::iterator_get_next_string ( type(iterator_type), intent(inout)  iterator)
private

Returns the next string referenced by the iterator and advanced it, or an error if it has reached the end of iteration.

Parameters
iteratorThe iterator of which to access and advance the next element
Returns
The next string

Definition at line 3210 of file collections.F90.

3210  type(iterator_type), intent(inout) :: iterator
3211 
3212  class(*), pointer :: generic
3213 
3214  generic=>iterator_get_next_generic(iterator)
3215  if (associated(generic)) then
3216  select type(generic)
3217  type is (setnode_type)
3218  iterator_get_next_string=generic%key
3219  class default
3220  iterator_get_next_string=conv_to_string(generic, .false., string_length)
3221  end select
3222  else
3223  call log_log(log_error, "Can not get next string in iterator as iterator has reached end of collection")
3224  end if

The documentation for this interface was generated from the following file: