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

Private Member Functions

logical function iterator_get_next_logical (iterator)
 Returns the next logical referenced by the iterator and advanced it, or an error if it has reached the end of iteration. More...
 

Detailed Description

Definition at line 602 of file collections.F90.

Member Function/Subroutine Documentation

◆ iterator_get_next_logical()

logical function collections_mod::c_next_logical::iterator_get_next_logical ( type(iterator_type), intent(inout)  iterator)
private

Returns the next logical 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 logical

Definition at line 3255 of file collections.F90.

3255  type(iterator_type), intent(inout) :: iterator
3256 
3257  class(*), pointer :: generic
3258 
3259  generic=>iterator_get_next_generic(iterator)
3260  if (associated(generic)) then
3261  iterator_get_next_logical=conv_to_logical(generic, .false.)
3262  else
3263  call log_log(log_error, "Can not get next logical in iterator as iterator has reached end of collection")
3264  end if

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