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

Private Member Functions

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

Detailed Description

Definition at line 590 of file collections.F90.

Member Function/Subroutine Documentation

◆ iterator_get_next_integer()

integer function collections_mod::c_next_integer::iterator_get_next_integer ( type(iterator_type), intent(inout)  iterator)
private

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

Definition at line 3193 of file collections.F90.

3194  type(iterator_type), intent(inout) :: iterator
3195 
3196  class(*), pointer :: generic
3197 
3198  generic=>iterator_get_next_generic(iterator)
3199  if (associated(generic)) then
3200  iterator_get_next_integer=conv_to_integer(generic, .false.)
3201  else
3202  call log_log(log_error, "Can not get next integer in iterator as iterator has reached end of collection")
3203  end if

The documentation for this interface was generated from the following file:
logging_mod::log_error
integer, parameter, public log_error
Only log ERROR messages.
Definition: logging.F90:11
logging_mod::log_log
subroutine, public log_log(level, message, str)
Logs a message at the specified level. If the level is above the current level then the message is ig...
Definition: logging.F90:75